from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-fi-efi") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-fi-efi")
git lfs install git clone https://huggingface.co/Helsinki-NLP/opus-mt-fi-efi # 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