Problem while uploading a file
I am trying to upload our bert model for stack-overflow domain. I have used thetransformer-cli uploadcommand and I can access the uploaded files and see them .However in in thehttps://huggingface.co/web page I am always getting the errors that config,json is not foundAny help is really appreciated. Thanks.
2020-08-03T00:02:29Z
Maybe@julien-chas a solution.
2020-08-03T12:33:58Z
I’m having the same issue.Though i have uploaded the config.json, I am getting the same errorScreenshot 2020-08-03 at 8.33.51 AM1064×254 35.9 KB
2020-08-03T12:34:33Z
These are the uploaded filesScreenshot 2020-08-03 at 8.34.17 AM1018×674 82.5 KB
2020-08-03T12:37:44Z
following is the logs from the upload commandhttps://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/tokenizer_config.json
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/special_tokens_map.json
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/config.json
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/modelcard.json
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/README.md
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/merges.txt
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/pytorch_model.bin
Your file now lives at:                                                                                                                        
https://s3.amazonaws.com/models.huggingface.co/bert/bewgle/bart-large-mnli-bewgle/vocab.jsonCould it be that the/bert/should be/bart/in the s3 URL?
2020-08-03T16:12:08Z
@swarajraibagi, I am not sure if there is anyway to change the urls. how you did that?
2020-08-03T16:13:01Z
@julien-c, It will be really great if you can provide some solution/insight into this problem. I am kind of stuck for days
2020-08-03T16:23:28Z
@jeniyaI didn’t change the url, I was wondering if that is contributing to the bug.
2020-08-03T16:27:51Z
@julien-cworth notingthe model seems to have uploaded correctly since the below code runs without any errorIn [1]: from transformers import AutoModelForSequenceClassification

In [2]: model = AutoModelForSequenceClassification.from_pretrained('bewgle/bart-large-mnli-bewgle')
2020-08-04T21:59:22Z
Looking into it with@lysandre, should be fixed tomorrow.
2020-08-05T15:25:52Z
Should be fixed now.
2020-08-05T15:38:30Z
it’s working as expected nowThanks !
2020-08-05T15:58:38Z
I’m not sure if it’s related but it seems like the model does not load in exbert, for examplethis one.
2020-08-05T16:17:41Z
Its working now! Thanks
2021-01-01T02:00:28Z
I’m getting this same error with a model that I just uploaded. My model files arehere. If I try to use the same model files that I have saved locally, the tokenizer and the model load just fine. But when I try to download the model like:from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("a1noack/bart-large-gigaword")
model = AutoModelForSeq2SeqLM.from_pretrained("a1noack/bart-large-gigaword")I get the following error:OSError: Can't load config for 'a1noack/bart-large-gigaword'. Make sure that:
- 'a1noack/bart-large-gigaword' is a correct model identifier listed on 'https://huggingface.co/models'
- or 'a1noack/bart-large-gigaword' is the correct path to a directory containing a config.json fileWhat was actually done to fix the problem?
2021-01-09T00:19:44Z
Do you have any suggestions@julien-c?
2021-01-11T13:29:34Z
Yes Exbert model loading was never automatic, it’s a manual process that needs to be done by the Exbert authors.
2021-01-11T13:32:25Z
@a1noackwhich transformers version are you running? You should be on>=3.5.0for the new model hub system to work.Can you try this and let me know if it solves your problem? Thanks!
2021-01-11T20:03:46Z
So the downloaddoeswork now at least withtransformers 4.1.1. Thank you.I guess it’s the case though that models that were uploaded to the model hub using the new model hub system cannot be downloaded using versions oftransformers <3.5.0.Does this mean that there is no way to make this downloading of new models backwards compatible with older versions oftransformers? It would be great if I could download all models–including those that were uploaded using the new hub system–from the hub usingfrom_pretrainedwithtransformers <3.5.0.
2021-01-11T21:32:14Z
Yes you are correct. We were periodically backporting new models to the old system (S3 bucket), however it is costly and tedious, so we decided to stop.You can stillgit cloneyour new model and load it intransformers <3.5.0usingfrom_pretrained– is this a potential workaround for you?
No date available
No reply text available