Instructions to use MohamedZaitoon/T5-CNN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MohamedZaitoon/T5-CNN 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="MohamedZaitoon/T5-CNN")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MohamedZaitoon/T5-CNN", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
bbcacff
1
Parent(s): 42e62e2
Update config.json
Browse files- config.json +0 -18
config.json
CHANGED
|
@@ -33,24 +33,6 @@
|
|
| 33 |
"num_beams": 4,
|
| 34 |
"prefix": "summarize: "
|
| 35 |
},
|
| 36 |
-
"translation_en_to_de": {
|
| 37 |
-
"early_stopping": true,
|
| 38 |
-
"max_length": 300,
|
| 39 |
-
"num_beams": 4,
|
| 40 |
-
"prefix": "translate English to German: "
|
| 41 |
-
},
|
| 42 |
-
"translation_en_to_fr": {
|
| 43 |
-
"early_stopping": true,
|
| 44 |
-
"max_length": 300,
|
| 45 |
-
"num_beams": 4,
|
| 46 |
-
"prefix": "translate English to French: "
|
| 47 |
-
},
|
| 48 |
-
"translation_en_to_ro": {
|
| 49 |
-
"early_stopping": true,
|
| 50 |
-
"max_length": 300,
|
| 51 |
-
"num_beams": 4,
|
| 52 |
-
"prefix": "translate English to Romanian: "
|
| 53 |
-
}
|
| 54 |
},
|
| 55 |
"transformers_version": "4.6.1",
|
| 56 |
"use_cache": true,
|
|
|
|
| 33 |
"num_beams": 4,
|
| 34 |
"prefix": "summarize: "
|
| 35 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
},
|
| 37 |
"transformers_version": "4.6.1",
|
| 38 |
"use_cache": true,
|