Instructions to use usakha/Prophetnet_multiNews_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usakha/Prophetnet_multiNews_model with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" 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("summarization", model="usakha/Prophetnet_multiNews_model")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("usakha/Prophetnet_multiNews_model") model = AutoModelForSeq2SeqLM.from_pretrained("usakha/Prophetnet_multiNews_model") - Notebooks
- Google Colab
- Kaggle
Commit ·
a4c4b7d
1
Parent(s): 5e0e1c6
Adding `safetensors` variant of this model (#2)
Browse files- Adding `safetensors` variant of this model (adc6628fa53fdc264c09b94c09c761066e875fc3)
Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>
- model.safetensors +3 -0
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c104b6576a0bad5bed453f92f3a05685f6abea2b98cefbe188c0d86852b2c6ee
|
| 3 |
+
size 1565355112
|