Translation
Transformers
Safetensors
Tibetan
English
t5
text2text-generation
tibetan
english
nlp
buddhism
dharma
text-generation-inference
Instructions to use billingsmoore/prototype-tibetan-to-english-translation-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use billingsmoore/prototype-tibetan-to-english-translation-v1 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="billingsmoore/prototype-tibetan-to-english-translation-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("billingsmoore/prototype-tibetan-to-english-translation-v1") model = AutoModelForSeq2SeqLM.from_pretrained("billingsmoore/prototype-tibetan-to-english-translation-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -14
config.json
CHANGED
|
@@ -35,23 +35,11 @@
|
|
| 35 |
"num_beams": 4,
|
| 36 |
"prefix": "summarize: "
|
| 37 |
},
|
| 38 |
-
"
|
| 39 |
"early_stopping": true,
|
| 40 |
"max_length": 300,
|
| 41 |
"num_beams": 4,
|
| 42 |
-
"prefix": "translate
|
| 43 |
-
},
|
| 44 |
-
"translation_en_to_fr": {
|
| 45 |
-
"early_stopping": true,
|
| 46 |
-
"max_length": 300,
|
| 47 |
-
"num_beams": 4,
|
| 48 |
-
"prefix": "translate English to French: "
|
| 49 |
-
},
|
| 50 |
-
"translation_en_to_ro": {
|
| 51 |
-
"early_stopping": true,
|
| 52 |
-
"max_length": 300,
|
| 53 |
-
"num_beams": 4,
|
| 54 |
-
"prefix": "translate English to Romanian: "
|
| 55 |
}
|
| 56 |
},
|
| 57 |
"torch_dtype": "float32",
|
|
|
|
| 35 |
"num_beams": 4,
|
| 36 |
"prefix": "summarize: "
|
| 37 |
},
|
| 38 |
+
"translation_bo_to_en": {
|
| 39 |
"early_stopping": true,
|
| 40 |
"max_length": 300,
|
| 41 |
"num_beams": 4,
|
| 42 |
+
"prefix": "translate Tibetan to English: "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
},
|
| 45 |
"torch_dtype": "float32",
|