from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alberto")
model = AutoModelForMaskedLM.from_pretrained("m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alberto")
How to clone the model repo
git lfs install
git clone https://huggingface.co/m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alberto
# if you want to clone without large files β just their pointers
# prepend your git clone with the following env var:
GIT_LFS_SKIP_SMUDGE=1