Instructions to use CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En 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="CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En") model = AutoModelForSeq2SeqLM.from_pretrained("CadenzaBaron/M2M100-418M-for-GameTranslation-Finetuned-Zh-En") - Notebooks
- Google Colab
- Kaggle
Commit ·
ff5c6ba
1
Parent(s): f090da9
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,11 @@ datasets:
|
|
| 11 |
- Custom
|
| 12 |
metrics:
|
| 13 |
- BLEU
|
| 14 |
-
pipeline_tag:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
This is a finetuned version of Facebook/M2M100.
|
|
|
|
| 11 |
- Custom
|
| 12 |
metrics:
|
| 13 |
- BLEU
|
| 14 |
+
pipeline_tag: translation
|
| 15 |
+
inference:
|
| 16 |
+
parameters:
|
| 17 |
+
src_lang : "zh"
|
| 18 |
+
tgt_lang : "en"
|
| 19 |
---
|
| 20 |
|
| 21 |
This is a finetuned version of Facebook/M2M100.
|