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/encoder_model.onnx from hf-internal-testing/tiny-random-PegasusModel: direct link, hf CLI and curl.
- Browser
- Download file 6.22 MB
-
https://huggingface.co/hf-internal-testing/tiny-random-PegasusModel/resolve/refs%2Fpr%2F2/onnx/encoder_model.onnx
- Command line
-
hf download hf://hf-internal-testing/tiny-random-PegasusModel@refs/pr/2/onnx/encoder_model.onnx
-
curl -L -o encoder_model.onnx https://huggingface.co/hf-internal-testing/tiny-random-PegasusModel/resolve/refs%2Fpr%2F2/onnx/encoder_model.onnx
6.22 MB
- Xet hash:
- 6abd587d5a5f9a2d0f078958cab7e4c6eac37287993285c87c07a4f13e587cf9
- Size of remote file:
- 6.22 MB
- SHA256:
- a46ce084e7215c9bd38cac963cd41afd8c10a2401de60954d2c0a75a65cb48d2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.