Instructions to use tencent/Hy-MT2-1.8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/Hy-MT2-1.8B 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="tencent/Hy-MT2-1.8B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tencent/Hy-MT2-1.8B") model = AutoModelForCausalLM.from_pretrained("tencent/Hy-MT2-1.8B") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<p align="left">
|
| 2 |
English | <a href="README_CN.md">中文</a>
|
| 3 |
</p>
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- translation
|
| 5 |
+
language:
|
| 6 |
+
- zh
|
| 7 |
+
- en
|
| 8 |
+
- fr
|
| 9 |
+
- pt
|
| 10 |
+
- es
|
| 11 |
+
- ja
|
| 12 |
+
- tr
|
| 13 |
+
- ru
|
| 14 |
+
- ar
|
| 15 |
+
- ko
|
| 16 |
+
- th
|
| 17 |
+
- it
|
| 18 |
+
- de
|
| 19 |
+
- vi
|
| 20 |
+
- ms
|
| 21 |
+
- id
|
| 22 |
+
- tl
|
| 23 |
+
- hi
|
| 24 |
+
- pl
|
| 25 |
+
- cs
|
| 26 |
+
- nl
|
| 27 |
+
- km
|
| 28 |
+
- my
|
| 29 |
+
- fa
|
| 30 |
+
- gu
|
| 31 |
+
- ur
|
| 32 |
+
- te
|
| 33 |
+
- mr
|
| 34 |
+
- he
|
| 35 |
+
- bn
|
| 36 |
+
- ta
|
| 37 |
+
- uk
|
| 38 |
+
- bo
|
| 39 |
+
- kk
|
| 40 |
+
- mn
|
| 41 |
+
- ug
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
<p align="left">
|
| 45 |
English | <a href="README_CN.md">中文</a>
|
| 46 |
</p>
|