Instructions to use allenai/longformer-base-4096 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/longformer-base-4096 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("allenai/longformer-base-4096", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from allenai/longformer-base-4096: direct link, hf CLI and curl.
- Browser
- Download file 597 MB
-
https://huggingface.co/allenai/longformer-base-4096/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://allenai/longformer-base-4096/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/allenai/longformer-base-4096/resolve/main/pytorch_model.bin
597 MB
- Xet hash:
- b8f960923351575e1e641a8f113b4434998d820e02eff218286700aceb2cb342
- Size of remote file:
- 597 MB
- SHA256:
- 06c56757f0510de87c231acd03650ca204c5ed65c281cd1081b98288183f2468
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.