Views
No views yet


| Model Name | Description | Download Link |
|---|---|---|
| Hy-MT2-1.8B | Hy 1.8B translation model | 🤗 Model |
| Hy-MT2-1.8B-FP8 | Hy 1.8B translation model, FP8 quantization | 🤗 Model |
| Hy-MT2-1.8B-GGUF | Hy 1.8B translation model, llama.cpp | 🤗 Model |
| Hy-MT2-1.8B-2bit-GGUF | Hy 1.8B translation model, llama.cpp, 2bit | 🤗 Model |
| Hy-MT2-1.8B-1.25bit-GGUF | Hy 1.8B translation model, llama.cpp, 1.25bit | 🤗 Model |
| Hy-MT2-7B | Hy 7B translation model | 🤗 Model |
| Hy-MT2-7B-FP8 | Hy 7B translation model, FP8 quantization | 🤗 Model |
| Hy-MT2-7B-GGUF | Hy 7B translation model, llama.cpp | 🤗 Model |
| Hy-MT2-30B-A3B | Hy 30B-A3B translation model | 🤗 Model |
| Hy-MT2-30B-A3B-FP8 | Hy 30B-A3B translation model, FP8 quantization | 🤗 Model |
| Type | Chinese prompt | English prompt |
|---|---|---|
| Default Translation | 将以下文本翻译为 {target_lang},注意只需要输出翻译后的结果,不要额外解释:{source_text} | Translate the following text into {target_lang}. Note that you should only output the translated result without any additional explanation:{source_text} |
| Terminology | 参考下面的翻译:{text} 翻译成 {text}{text} 翻译成 {text}{text} 翻译成 {text}将以下文本翻译为 {target_lang},注意只需要输出翻译后的结果,不要额外解释:{source_text} | Reference the following translations:{text} translates to {text}{text} translates to {text}{text} translates to {text}Translate the following text into {target_lang}. Note that you must ONLY output the translated result without any additional explanation:{source_text} |
| Style | 请将以下文本翻译为 {target_lang}。注意翻译的风格要严格符合【 {target_style}】{source_text} | Please translate the following text into {target_lang}. Note that the translation style must strictly conform to [{target_style}]:{source_text} |
| Personalization | 【待翻译文本】{source_text}【翻译任务】 1、 {user_preferences}2、 {user_preferences}3、…… 4、将【待翻译文本】翻译为 {target_lang}。 | [Source Text]{source_text}[Translation Tasks] 1. {user_preferences}2. {user_preferences}3. ... 4. Translate the [Source Text] into {target_lang}. |
| Delimiters | 请将以下文本准确翻译为 {target_lang}。你必须在译文中保留等量的分隔符,绝对不可遗漏、转义或翻译该符号,并注意分隔符的位置。 {source_text} | Please accurately translate the following text into {target_lang}.You must retain the exact same number of delimiters in the translation. Strictly do not omit, escape, or translate these symbols, and pay close attention to their placement. {source_text} |
| Structured Data 1 | # 任务目标 将下方 {source_text} 中的 {format_type} 格式数据翻译为 {target_lang}。# 严格约束 1. 结构锁定:绝对保持原有的 {format_type} 数据结构、缩进和层级完全不变。2. 选择性翻译:仅翻译面向用户展示的可见文本内容。 3. 禁止修改:严禁翻译或更改任何代码标签、键名 (Key)、变量占位符(如 {{var}}、${var}、%s、%d 等)或代码属性。# 数据输入 {source_text} | ### Task Translate the user-facing text within the following {format_type} data into {target_lang}.### Strict Rules 1. Structure Preservation: You MUST preserve the original {format_type} data structure, nesting, hierarchy, and indentation exactly as they are.2. Selective Translation: Translate ONLY the visible, user-facing text content/values. 3. Strict Non-Translation: NEVER translate or alter code tags, keys, properties, object names, or variable placeholders. Leave them exactly in their original English/code form. ### Source Data {source_text} |
| Structured Data 2 | 【背景信息】{background_text}请结合背景信息将以下文本翻译为 {target_lang}。【待翻译文本】 {source_text} | [Background Information]{background_text}Please translate the following text into {target_lang}, taking the provided background information into consideration.[Source Text] {source_text} |
1
2{
3 "temperature": 0.7,
4 "top_p": 0.6,
5 "top_k": 20,
6 "repetition_penalty": 1.05,
7 "max_tokens": 4096
8}1
2{
3 "temperature": 0.7,
4 "top_p": 1.0,
5 "top_k": -1,
6 "repetition_penalty": 1.0,
7 "max_tokens": 4096
8}1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_path = "tencent/Hy-MT2-1.8B"
5
6# Load tokenizer
7tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
8
9# Load model
10model = AutoModelForCausalLM.from_pretrained(
11 model_path,
12 dtype=torch.bfloat16,
13 device_map="auto",
14 trust_remote_code=True,
15)
16
17model.eval()
18
19# Example inference
20prompt = "将以下文本翻译成英语,注意只需要输出翻译后的结果,不要额外解释:\n\n今天天气真好。"
21messages = [{"role": "user", "content": prompt}]
22inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
23
24with torch.no_grad():
25 outputs = model.generate(
26 **inputs,
27 max_new_tokens=4096,
28 )
29response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
30print(response)1uv venv --python 3.12 --seed --managed-python
2source .venv/bin/activate
3git clone https://github.com/vllm-project/vllm.git
4cd vllm
5uv pip install --editable . --torch-backend=autovllm serve tencent/Hy-MT2-1.8B --tensor-parallel-size 11git clone https://github.com/sgl-project/sglang
2cd sglang
3pip3 install pip --upgrade
4pip3 install "transformers>=5.6.0"
5pip3 install -e "python"python3 -m sglang.launch_server --model tencent/Hy-MT2-1.8B --tp 1| Languages | Abbr. | Chinese Names |
|---|---|---|
| Chinese | zh | 中文 |
| English | en | 英语 |
| French | fr | 法语 |
| Portuguese | pt | 葡萄牙语 |
| Spanish | es | 西班牙语 |
| Japanese | ja | 日语 |
| Turkish | tr | 土耳其语 |
| Russian | ru | 俄语 |
| Arabic | ar | 阿拉伯语 |
| Korean | ko | 韩语 |
| Thai | th | 泰语 |
| Italian | it | 意大利语 |
| German | de | 德语 |
| Vietnamese | vi | 越南语 |
| Malay | ms | 马来语 |
| Indonesian | id | 印尼语 |
| Filipino | tl | 菲律宾语 |
| Hindi | hi | 印地语 |
| Traditional Chinese | zh-Hant | 繁体中文 |
| Polish | pl | 波兰语 |
| Czech | cs | 捷克语 |
| Dutch | nl | 荷兰语 |
| Khmer | km | 高棉语 |
| Burmese | my | 缅甸语 |
| Persian | fa | 波斯语 |
| Gujarati | gu | 古吉拉特语 |
| Urdu | ur | 乌尔都语 |
| Telugu | te | 泰卢固语 |
| Marathi | mr | 马拉地语 |
| Hebrew | he | 希伯来语 |
| Bengali | bn | 孟加拉语 |
| Tamil | ta | 泰米尔语 |
| Ukrainian | uk | 乌克兰语 |
| Tibetan | bo | 藏语 |
| Kazakh | kk | 哈萨克语 |
| Mongolian | mn | 蒙古语 |
| Uyghur | ug | 维吾尔语 |
| Cantonese | yue | 粤语 |
1@misc{zheng2026hymt2familyfastefficient,
2 title={Hy-MT2: A Family of Fast, Efficient and Powerful Multilingual Translation Models in the Wild},
3 author={Mao Zheng and Zheng Li and Tao Chen and Bo Lv and Mingrui Sun and Mingyang Song and Jinlong Song and Hong Huang and Decheng Wu and Hai Wang and Yifan Song and Yanfeng Chen and Guanwei Zhang},
4 year={2026},
5 eprint={2605.22064},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2605.22064},
9}