Translation
Transformers
PyTorch
JAX
TensorBoard
Norwegian
t5
text2text-generation
text-generation-inference
Instructions to use north/demo-deuncaser-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use north/demo-deuncaser-base with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" 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("translation", model="north/demo-deuncaser-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("north/demo-deuncaser-base") model = AutoModelForSeq2SeqLM.from_pretrained("north/demo-deuncaser-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +8 -1
config.json
CHANGED
|
@@ -25,5 +25,12 @@
|
|
| 25 |
"torch_dtype": "float32",
|
| 26 |
"transformers_version": "4.17.0",
|
| 27 |
"use_cache": true,
|
| 28 |
-
"vocab_size": 250112
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
}
|
|
|
|
| 25 |
"torch_dtype": "float32",
|
| 26 |
"transformers_version": "4.17.0",
|
| 27 |
"use_cache": true,
|
| 28 |
+
"vocab_size": 250112,
|
| 29 |
+
"task_specific_params": {
|
| 30 |
+
"text-generation": {
|
| 31 |
+
"max_length": 128
|
| 32 |
+
},
|
| 33 |
+
"translation": {
|
| 34 |
+
"max_length": 128
|
| 35 |
+
}
|
| 36 |
}
|