from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("marrrcin/PolBERTa-base-polish-cased-v1")
model = AutoModelForMaskedLM.from_pretrained("marrrcin/PolBERTa-base-polish-cased-v1")
How to clone the model repo
git lfs install
git clone https://huggingface.co/marrrcin/PolBERTa-base-polish-cased-v1
# 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