Instructions to use Shaier/longformer_cosmos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shaier/longformer_cosmos with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("Shaier/longformer_cosmos") model = AutoModelForMultipleChoice.from_pretrained("Shaier/longformer_cosmos", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from Shaier/longformer_cosmos: direct link, hf CLI and curl.
- Browser
- Download file 2.11 MB
-
https://huggingface.co/Shaier/longformer_cosmos/resolve/main/tokenizer.json
- Command line
-
hf download hf://Shaier/longformer_cosmos/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Shaier/longformer_cosmos/resolve/main/tokenizer.json
2.11 MB
File too large to display, you can check the raw version instead.