from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("allenai/dsp_roberta_base_dapt_news_tapt_hyperpartisan_news_5015")
model = AutoModel.from_pretrained("allenai/dsp_roberta_base_dapt_news_tapt_hyperpartisan_news_5015")
How to clone the model repo
git lfs install
git clone https://huggingface.co/allenai/dsp_roberta_base_dapt_news_tapt_hyperpartisan_news_5015
# 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