Transformers
PyTorch
English
t5
text2text-generation
Explain code
Code Summarization
Summarization
text-generation-inference
Instructions to use describeai/gemini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use describeai/gemini with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("describeai/gemini") model = AutoModelForSeq2SeqLM.from_pretrained("describeai/gemini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +7 -0
config.json
CHANGED
|
@@ -48,6 +48,13 @@
|
|
| 48 |
"max_length": 300,
|
| 49 |
"num_beams": 4,
|
| 50 |
"prefix": "translate English to Romanian: "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
}
|
| 52 |
},
|
| 53 |
"torch_dtype": "float32",
|
|
|
|
| 48 |
"max_length": 300,
|
| 49 |
"num_beams": 4,
|
| 50 |
"prefix": "translate English to Romanian: "
|
| 51 |
+
},
|
| 52 |
+
|
| 53 |
+
"s": {
|
| 54 |
+
"early_stopping": true,
|
| 55 |
+
"max_length": 400,
|
| 56 |
+
"num_beams": 2,
|
| 57 |
+
"prefix": "s:"
|
| 58 |
}
|
| 59 |
},
|
| 60 |
"torch_dtype": "float32",
|