Apple MLX weights for
Tencent-Hunyuan/Hy-MT2-1.8B, Tencent Hunyuan's multilingual translation model.
1pip install mlx-lm
2PROMPT=$'Translate the following text into English. Note that you should only output the translated result without any additional explanation:\n\n今天天气真好。'
3mlx_lm.generate --model mlx-community/Hy-MT2-1.8B-8bit \
4 --prompt "$PROMPT" \
5 --max-tokens 128 \
6 --temp 0.7 \
7 --top-p 0.6 \
8 --top-k 20
1git clone https://github.com/ailuntx/Hy-MT2-MLX.git
2cd Hy-MT2-MLX
3python scripts/infer_mlx.py --model /path/to/mlx/checkpoint --text "今天天气真好。" --target-lang English
Local Apple Silicon is the intended runtime. The Hy-MT2 HF Space starts and loads the model on Linux CPU fallback, but cpu-basic can exceed request timeouts even for very small generation tests.
License follows the upstream Tencent Hunyuan release.
1@misc{hymt2-mlx,
2 title = {Hy-MT2-MLX: Apple MLX port of Hy-MT2},
3 author = {ailuntx},
4 year = {2026},
5 url = {https://github.com/ailuntx/Hy-MT2-MLX},
6}
7
8@misc{zheng2026hymt2familyfastefficient,
9 title = {Hy-MT2: A Family of Fast, Efficient and Powerful Multilingual Translation Models in the Wild},
10 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},
11 year = {2026},
12 eprint = {2605.22064},
13 archivePrefix = {arXiv},
14 primaryClass = {cs.CL},
15 url = {https://arxiv.org/abs/2605.22064},
16}