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
File size: 132 Bytes
67187b0 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:a46ce084e7215c9bd38cac963cd41afd8c10a2401de60954d2c0a75a65cb48d2
size 6219599
|