Instructions to use khatrimann/longformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khatrimann/longformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="khatrimann/longformer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("khatrimann/longformer") model = AutoModelForSequenceClassification.from_pretrained("khatrimann/longformer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_args.bin from khatrimann/longformer: direct link, hf CLI and curl.
- Browser
- Download file 4.54 kB
-
https://huggingface.co/khatrimann/longformer/resolve/main/training_args.bin
- Command line
-
hf download hf://khatrimann/longformer/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/khatrimann/longformer/resolve/main/training_args.bin
4.54 kB
- Xet hash:
- 3f39ac81fec50698bd392da97b7d657409b3eade419bb0a2bfc59ca74bab8027
- Size of remote file:
- 4.54 kB
- SHA256:
- c2dfaf614e03090ec428685e207f68e175f645dc1cf869a1a16ee220a0719b5a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.