-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
2.3.0 issues loading model from local dir #2459
Comments
Hello! Thanks for reporting & including the stack trace. The issue seems to originate here: sentence-transformers/sentence_transformers/util.py Lines 531 to 537 in b00b329
Normally, this code should not be reached for local models, as that is just after a check whether the model exists locally: sentence-transformers/sentence_transformers/util.py Lines 518 to 520 in b00b329
My theory is that I theorize that this is indeed related to #2458.
|
Hi there, Yes, it does have a specific directory listed in |
Awesome, thanks for the information. I had expected as much. That should mean that my fix from #2460 should also resolve this issue. I'll try to bring out a patch release. If you want, you can try it out for now via
Alternatively, you can create an empty
|
Thanks for the quick turnaround on this, Tom, I'll take a look. Glad I could be of help, and thanks for the support of a very useful toolkit! |
Encountering a problem that may be of similar origin with #2458, opening another issue as it may not be same exact source. Our issue was with loading some old models by model path where we have moved a .tar.gz of the file.
In my case, the failure got to
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/opt/ml/model'. Use
repo_typeargument if needed.
We were loading the model in question into/opt/ml/model
and loading it by dir name was not a problem prior to 2.3.0Not sure if this is an issue with sentence-transformers or with some intermediate point between sentence-transformers and huggingface/transformers updates, both of which were using newer versions on this failing buidl
Ultimately, reverting back to 2.2.2 fixed the issue.
The text was updated successfully, but these errors were encountered: