Error during import

#2
by sophinikol - opened

I have the following error during import:

model = SentenceTransformer('yseop/roberta-base-finance-hypernym-identification')

OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory /home/jovyan/.cache/huggingface/hub/models--yseop--roberta-base-finance-hypernym-identification/snapshots/d489979593cfcb516764dc180418f55ce051e886/0_Transformer.

Hello, if I'm not mistaken this Error has to do with HF changing the way the model is loaded. The "pytorch_model.bin" file is present in the model files, it just needs to be moved to the "0_Transformer" sub-directory. Best.

Sign up or log in to comment