-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to download community models #2392
Comments
I confirm what you see... in current master code, but it works if you target it directly: AutoTokenizer.from_pretrained("https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-conll03-english-config.json")
AutoModel.from_pretrained("https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-conll03-english-pytorch_model.bin") |
Hmm, I think I see the issue. @stefan-it @mfuntowicz we could either:
What do you think? (also kinda related to #2281) |
@julien-c I think it would be better to move the model under the |
@julien-c moving to dbmdz is fine. We need to update the default NER pipeline's model provider to reflect the new path. |
Model now lives at https://huggingface.co/dbmdz/bert-large-cased-finetuned-conll03-english Let me know if everything works correctly! |
Works perfectly now, thanks! |
馃悰 Bug
Model I am using (Bert, XLNet....):
bert-base-cased-finetuned-conll03-english
Language I am using the model on (English, Chinese....): English
The problem arise when using:
The tasks I am working on is:
To Reproduce
Steps to reproduce the behavior:
I'm following the instructions at https://huggingface.co/bert-large-cased-finetuned-conll03-english but failing at the first hurdle. This is the snippet from the docs that I've run:
It fails with this message:
The message mentions looking at https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-conll03-english/config.json and finding nothing.
I also tried with the CLI:
transformers-cli download bert-base-cased-finetuned-conll03-english
but I'm afraid that failed with a similar message. However both methods work for the namespaced models, e.g.dbmdz/bert-base-italian-cased
.Expected behavior
The community model should download. :)
Environment
Additional context
I browsed https://s3.amazonaws.com/models.huggingface.co/ and see that the model is there, but paths are like:
https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-conll03-english-config.json
rather than:
https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-conll03-english/config.json
(note
-config.json
vs/config.json
)If I download the files manually and rename, the model loads. So it looks like just a naming problem.
The text was updated successfully, but these errors were encountered: