File size: 228 Bytes
d0c1c22
 
 
 
1
2
3
4
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("camembert-base", force_download=True, resume_download=False)
model = AutoModelForMaskedLM.from_pretrained("camembert-base")