Instructions to use nlp04/pad_left with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlp04/pad_left with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="nlp04/pad_left")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("nlp04/pad_left") model = AutoModelForQuestionAnswering.from_pretrained("nlp04/pad_left", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from nlp04/pad_left: direct link, hf CLI and curl.
- Browser
- Download file 440 MB
-
https://huggingface.co/nlp04/pad_left/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://nlp04/pad_left/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/nlp04/pad_left/resolve/main/pytorch_model.bin
440 MB
- Xet hash:
- 5bc221a89af74000fa359382d6f8cc176cebdb62b04a890c66e91e4674be4790
- Size of remote file:
- 440 MB
- SHA256:
- eb94bd470e167a039f7394cce5574d538583a03f7c46574bb30221510c63c062
路
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.