Open dragonlee97 opened 4 years ago
Hi @dragonlee97
Multilingual models including French are currently trained.
It appears that transformers cannot download the model. Is your transformers version to most recent? Can the system access the S3 bucket from HuggingFace?
Try this code:
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-base")
model = AutoModelWithLMHead.from_pretrained("xlm-roberta-base")
Hi @dragonlee97
Multilingual models including French are currently trained.
It appears that transformers cannot download the model. Is your transformers version to most recent? Can the system access the S3 bucket from HuggingFace?
Try this code:
from transformers import AutoTokenizer, AutoModelWithLMHead tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-base") model = AutoModelWithLMHead.from_pretrained("xlm-roberta-base")
Yes, my transformers version is 3.0.2. I think it's because of internet restriction in the company, how to test the access of S3 bucket ? Otherwise, is it possible to download the models manually?
With the above code.
You can find the model otherwise here: https://huggingface.co/xlm-roberta-base
There is a link 'List all files', where you can download the needed files for this model
With reference of these codes: examples/training_multilingual/make_multilingual.py, I want to have a french model, but encountered this when loading:
word_embedding_model = models.Transformer(student_model_name, max_seq_length=max_seq_length)
_OSError:
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)