Closed Gab123789 closed 1 year ago
Can you provide me with the command you're running to get this error so I can reproduce?
python multivers/predict.py
model is scifact.ckpt, but same result when using healthvers
Got it - it may be just an issue of calling the wrong script. Can you follow the instructions in the inference section of the README
and let me know what this does? In particular, try calling bash script/predict.sh scifact
rather than running the Python script.
My bad Dave, had I installed sentence-transformers, which isn't compatible with transfromers 4.2.2. Uninstalled and is working now - thanks for the help and sorry for taking up your time!
No problem, I'm glad it worked!
I cloned from scratch and am encountering this error:
This is from line 168 in model.py:
ADD_TO_CHECKPOINT = ["embeddings.position_ids"]
So I tried changing this to:
ADD_TO_CHECKPOINT = ["embeddings.position_embeddings.weight"]
as this seemed to be the missing item from the Huggingface state_dict.However I then encountered this error:
Which I've been unable to resolve so far. This is the same for all checkpoints (e.g. scifact, healthvers). Thanks!