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 tf_model.h5 from allenai/longformer-base-4096: direct link, hf CLI and curl.
- Browser
- Download file 765 MB
-
https://huggingface.co/allenai/longformer-base-4096/resolve/main/tf_model.h5
- Command line
-
hf download hf://allenai/longformer-base-4096/tf_model.h5
-
curl -L -o tf_model.h5 https://huggingface.co/allenai/longformer-base-4096/resolve/main/tf_model.h5
765 MB
- Xet hash:
- 10f8cf94603c1f151c9374909220d45511efbbd05ebfe22c00b41d131526034b
- Size of remote file:
- 765 MB
- SHA256:
- 885545a75c7441431acfb64b9f7685c983bfd10db2e6253dba914127a2df05a2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.