Summarization
Transformers
PyTorch
Safetensors
English
t5
text2text-generation
text-generation-inference
Instructions to use LukeMoore11/Big-Benjamin with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LukeMoore11/Big-Benjamin 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="LukeMoore11/Big-Benjamin")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("LukeMoore11/Big-Benjamin") model = AutoModelForSeq2SeqLM.from_pretrained("LukeMoore11/Big-Benjamin", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
84c845e
1
Parent(s): a17995f
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
| 33 |
"min_length": 150,
|
| 34 |
"no_repeat_ngram_size": 3,
|
| 35 |
"num_beams": 6,
|
| 36 |
-
"prefix": "summarize
|
| 37 |
},
|
| 38 |
"translation_en_to_de": {
|
| 39 |
"early_stopping": true,
|
|
@@ -56,6 +56,6 @@
|
|
| 56 |
},
|
| 57 |
"torch_dtype": "float32",
|
| 58 |
"transformers_version": "4.29.2",
|
| 59 |
-
"use_cache":
|
| 60 |
"vocab_size": 32128
|
| 61 |
}
|
|
|
|
| 33 |
"min_length": 150,
|
| 34 |
"no_repeat_ngram_size": 3,
|
| 35 |
"num_beams": 6,
|
| 36 |
+
"prefix": "summarize: "
|
| 37 |
},
|
| 38 |
"translation_en_to_de": {
|
| 39 |
"early_stopping": true,
|
|
|
|
| 56 |
},
|
| 57 |
"torch_dtype": "float32",
|
| 58 |
"transformers_version": "4.29.2",
|
| 59 |
+
"use_cache": false,
|
| 60 |
"vocab_size": 32128
|
| 61 |
}
|