-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load local trained cross encoder model #2372
Comments
Hello! This is indeed a bit of an inconsistency or bug, although it might be fairly niche. After all, to train a model that ends up saving as Now, I don't blame you for doing so, Although perhaps there is some other scenario where this might happen as well? Regardless, I'll add the dependency.
|
hello thanks for fast answer, yes you right, there are two Its weird. Thats why I wrote, "If my problem is not local,...". Also 100% agree with you and it bothered me too, Ones model is dumped with If anyone has an idea of something I should check, I'd be happy to do it. Lets wait for a while, one of the reasons for this issue was to check if it happened to anyone else. thanks again Samuel |
In the next version, So I'll close this for now :)
|
hi, I tried to load a cross encoder model I trained, but I got an Error message:
OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory
Yes, model is saved as
model.safetensors
not aspytorch_model.bin
. I found that my virtual environment is missing the librarysafetensors
. So fix was easy and fast:pip install safetensors
If my problem is not local, please add lib to dependencies.
Thanks
The text was updated successfully, but these errors were encountered: