Instructions to use hf-internal-testing/tiny-random-PegasusModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-PegasusModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-PegasusModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-PegasusModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-PegasusModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download onnx/decoder_model.onnx from hf-internal-testing/tiny-random-PegasusModel: direct link, hf CLI and curl.
- Browser
- Download file 6.28 MB
-
https://huggingface.co/hf-internal-testing/tiny-random-PegasusModel/resolve/refs%2Fpr%2F2/onnx/decoder_model.onnx
- Command line
-
hf download hf://hf-internal-testing/tiny-random-PegasusModel@refs/pr/2/onnx/decoder_model.onnx
-
curl -L -o decoder_model.onnx https://huggingface.co/hf-internal-testing/tiny-random-PegasusModel/resolve/refs%2Fpr%2F2/onnx/decoder_model.onnx
6.28 MB
- Xet hash:
- e7a2781ae48849842abcb9e817a247e8edfddd9d74e7d68a51065bc193d2e63e
- Size of remote file:
- 6.28 MB
- SHA256:
- 59e7e9eb21b292955cb66f9524684e2f0c145ee1434f7c5b62ac8a8f5bdcd356
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.