401 Client Error: Unauthorized for url: https://huggingface.co./joeddav/xlm-roberta-large-xnli/resolve/main/sentencepiece.bpe.model

#9
by jianyiyang5 - opened

When execute the following command
import torch from transformers import XLMRobertaForSequenceClassification, XLMRobertaTokenizer R_tokenizer = XLMRobertaTokenizer.from_pretrained('joeddav/xlm-roberta-large-xnli')
got the issue
```

HTTPError Traceback (most recent call last)
in
3
4
----> 5 R_tokenizer = XLMRobertaTokenizer.from_pretrained('joeddav/xlm-roberta-large-xnli')
6 premise = "Jupiter's Biggest Moons Started as Tiny Grains of Hail"
7 hypothesis = 'This text is about space & cosmos'

/opt/conda/lib/python3.8/site-packages/transformers/tokenization_utils_base.py in from_pretrained(cls, pretrained_model_name_or_path, *init_inputs, **kwargs)
1715 "won't be possible anymore in v5. Use a model identifier or the path to a directory instead.",
1716 FutureWarning,
-> 1717 )
1718 file_id = list(cls.vocab_files_names.keys())[0]
1719

/opt/conda/lib/python3.8/site-packages/transformers/tokenization_utils_base.py in from_pretrained(cls, pretrained_model_name_or_path, *init_inputs, **kwargs)
1693 user_agent = {"file_type": "tokenizer", "from_auto_class": from_auto_class, "is_fast": "Fast" in cls.name}
1694 if from_pipeline is not None:
-> 1695 user_agent["using_pipeline"] = from_pipeline
1696
1697 if is_offline_mode() and not local_files_only:

/opt/conda/lib/python3.8/site-packages/transformers/file_utils.py in cached_path(url_or_filename, cache_dir, force_download, proxies, resume_download, user_agent, extract_compressed_file, force_extract, use_auth_token, local_files_only)

/opt/conda/lib/python3.8/site-packages/transformers/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, use_auth_token, local_files_only)

/opt/conda/lib/python3.8/site-packages/requests/models.py in raise_for_status(self)
939
940 if http_error_msg:
--> 941 raise HTTPError(http_error_msg, response=self)
942
943 def close(self):

HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co./joeddav/xlm-roberta-large-xnli/resolve/main/sentencepiece.bpe.model


I can download the file from webpage, any idea why this happened? Thanks!

Hi, I am facing the same issue. Have you found any solution to that ?
Thanks in advance

Owner

Should be fixed now.

joeddav changed discussion status to closed

Sign up or log in to comment