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")# 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") - Notebooks
- Google Colab
- Kaggle
[Awaiting approval] Upload ONNX weights
Browse files[Automated] Converted using [Optimum](https://github.com/huggingface/optimum). Models will be merged manually by @Xenova once they have been checked with [Transformers.js](https://github.com/xenova/transformers.js).
onnx/decoder_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59e7e9eb21b292955cb66f9524684e2f0c145ee1434f7c5b62ac8a8f5bdcd356
|
| 3 |
+
size 6284207
|
onnx/decoder_model_merged.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:872238f27654c7a3c07195f7a1c524e65b5ebbefff70f7f0cae188463d230ba0
|
| 3 |
+
size 6370459
|
onnx/decoder_with_past_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acc6e5c449b70a3be847e770a64aed44fdd461e6d330c46250eb4aef33e933f9
|
| 3 |
+
size 6260927
|
onnx/encoder_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a46ce084e7215c9bd38cac963cd41afd8c10a2401de60954d2c0a75a65cb48d2
|
| 3 |
+
size 6219599
|