echo-chatbot / chapter4.py
chanhen's picture
Upload folder using huggingface_hub
d0c1c22 verified
raw
history blame contribute delete
228 Bytes
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("camembert-base", force_download=True, resume_download=False)
model = AutoModelForMaskedLM.from_pretrained("camembert-base")