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 ·
8ba777c
1
Parent(s): cc2d414
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -29,9 +29,9 @@
|
|
| 29 |
"early_stopping": false,
|
| 30 |
"length_penalty": 2.0,
|
| 31 |
"max_length": 250,
|
| 32 |
-
"min_length":
|
| 33 |
"no_repeat_ngram_size": 3,
|
| 34 |
-
"num_beams":
|
| 35 |
"prefix": "summarize this legal document: "
|
| 36 |
},
|
| 37 |
"translation_en_to_de": {
|
|
|
|
| 29 |
"early_stopping": false,
|
| 30 |
"length_penalty": 2.0,
|
| 31 |
"max_length": 250,
|
| 32 |
+
"min_length": 80,
|
| 33 |
"no_repeat_ngram_size": 3,
|
| 34 |
+
"num_beams": 6,
|
| 35 |
"prefix": "summarize this legal document: "
|
| 36 |
},
|
| 37 |
"translation_en_to_de": {
|