-
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
Loading private model with trust_remote_code=True
fails
#3115
Comments
Hello! I was able to reproduce this with a clone of https://huggingface.co/nomic-ai/nomic-embed-text-v1.5. This is part of the traceback:
Here, the issue is that Nomic's custom code calls An interesting solution is to set the
|
This model is a simple fine-tune of https://huggingface.co/jinaai/jina-embeddings-v2-small-en. The need for EDIT: Ah, I see you've answered how to remove the necessity for |
Ah, yes. Thanks for the details. A couple of possible fixes:
cc @bwanglzu - this isn't actionable as it's probably tricky to fix, but it might be useful to know in case any of your users/clients encounter this themselves.
|
Thanks, I'll do one of these solutions. I have a remaining question but it's more appropriate for the jina discussion board. |
The above fails with
Despite my passing a token. I realized that by setting
trust_remote_code=False
it works, but my weights get reset. I realized even further that if the model is already cached thentrust_remote_code=True
works again. So, a horrible work-around for me iswhere the first iteration caches it but resets the weights and the second iteration works properly.
Version:
The text was updated successfully, but these errors were encountered: