Summarization
Transformers
PyTorch
English
t5
text2text-generation
wikihow
t5-small
lm-head
seq2seq
pipeline:summarization
text-generation-inference
Instructions to use deep-learning-analytics/wikihow-t5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deep-learning-analytics/wikihow-t5-small 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="deep-learning-analytics/wikihow-t5-small")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("deep-learning-analytics/wikihow-t5-small") model = AutoModelForSeq2SeqLM.from_pretrained("deep-learning-analytics/wikihow-t5-small") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +0 -18
config.json
CHANGED
|
@@ -28,24 +28,6 @@
|
|
| 28 |
"no_repeat_ngram_size": 3,
|
| 29 |
"num_beams": 4,
|
| 30 |
"prefix": "summarize: "
|
| 31 |
-
},
|
| 32 |
-
"translation_en_to_de": {
|
| 33 |
-
"early_stopping": true,
|
| 34 |
-
"max_length": 300,
|
| 35 |
-
"num_beams": 4,
|
| 36 |
-
"prefix": "translate English to German: "
|
| 37 |
-
},
|
| 38 |
-
"translation_en_to_fr": {
|
| 39 |
-
"early_stopping": true,
|
| 40 |
-
"max_length": 300,
|
| 41 |
-
"num_beams": 4,
|
| 42 |
-
"prefix": "translate English to French: "
|
| 43 |
-
},
|
| 44 |
-
"translation_en_to_ro": {
|
| 45 |
-
"early_stopping": true,
|
| 46 |
-
"max_length": 300,
|
| 47 |
-
"num_beams": 4,
|
| 48 |
-
"prefix": "translate English to Romanian: "
|
| 49 |
}
|
| 50 |
},
|
| 51 |
"vocab_size": 32128
|
|
|
|
| 28 |
"no_repeat_ngram_size": 3,
|
| 29 |
"num_beams": 4,
|
| 30 |
"prefix": "summarize: "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
},
|
| 33 |
"vocab_size": 32128
|