from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sshleifer/tiny-distilbert-base-uncased-finetuned-sst-2-english")
model = AutoModelForSequenceClassification.from_pretrained("sshleifer/tiny-distilbert-base-uncased-finetuned-sst-2-english")
How to clone the model repo
git lfs install
git clone https://huggingface.co/sshleifer/tiny-distilbert-base-uncased-finetuned-sst-2-english
# 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