Views
No views yet
LICENSE.txt, and the redistribution notice is included as NOTICE.hy_v3hy_v3.py adapter because mlx-lm 0.31.3 did not include built-in hy_v3 model support at conversion time. Loading this repository executes that local adapter file through MLX-LM's model_file mechanism. Please inspect the file before running it if you have any concern about custom model code.mlx==0.31.2mlx-lm==0.31.31Input:
2오늘 날씨가 정말 좋네요.
3
4Output:
5The weather is really nice today.
6
7Generation speed:
892.380 tokens/sec
9
10Peak memory:
1117.030 GBpython3 -m pip install -U mlx-lm1from mlx_lm import load, stream_generate
2from mlx_lm.sample_utils import make_sampler
3
4model_id = "QwQbb/Hy-MT2-30B-A3B-MLX-4bit"
5
6model, tokenizer = load(model_id)
7
8source_text = "오늘 날씨가 정말 좋네요."
9prompt = (
10 "Translate the following text into English. "
11 "Note that you should only output the translated result without any additional explanation:\n\n"
12 f"{source_text}"
13)
14
15messages = [{"role": "user", "content": prompt}]
16prompt = tokenizer.apply_chat_template(
17 messages,
18 add_generation_prompt=True,
19 return_dict=False,
20)
21
22sampler = make_sampler(temp=0.7, top_p=1.0, top_k=0)
23
24parts = []
25for response in stream_generate(
26 model,
27 tokenizer,
28 prompt=prompt,
29 max_tokens=4096,
30 sampler=sampler,
31):
32 print(response.text, end="", flush=True)
33 parts.append(response.text)
34
35print("\n\nFinal:", "".join(parts).strip())1mlx_lm.server \
2 --model QwQbb/Hy-MT2-30B-A3B-MLX-4bit \
3 --host 127.0.0.1 \
4 --port 8080 \
5 --temp 0.7 \
6 --top-p 1.0 \
7 --max-tokens 4096 \
8 --trust-remote-codecurl:1curl -X POST "http://127.0.0.1:8080/v1/chat/completions" \
2 -H "Content-Type: application/json" \
3 --data '{
4 "model": "QwQbb/Hy-MT2-30B-A3B-MLX-4bit",
5 "messages": [
6 {
7 "role": "user",
8 "content": "Translate the following text into English. Note that you should only output the translated result without any additional explanation:\n\n오늘 날씨가 정말 좋네요."
9 }
10 ],
11 "temperature": 0.7,
12 "top_p": 1.0,
13 "max_tokens": 4096,
14 "stream": true
15 }'1{
2 "temperature": 0.7,
3 "top_p": 1.0,
4 "top_k": -1,
5 "repetition_penalty": 1.0,
6 "max_tokens": 4096
7}top_k=0 disables top-k filtering, which corresponds to the intent of Tencent's top_k=-1 setting.English, Korean, Japanese, Traditional Chinese, or French.1Translate the following text into {target_lang}. Note that you should only output the translated result without any additional explanation:
2
3{source_text}| Language | Code |
|---|---|
| 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 |
model-00001-of-00004.safetensors through model-00004-of-00004.safetensors: MLX 4-bit quantized weightsmodel.safetensors.index.json: weight indexconfig.json: HyV3 model configuration plus MLX quantization metadatahy_v3.py: custom MLX-LM model adapter for HYV3tokenizer.json, tokenizer_config.json, chat_template.jinja: tokenizer and chat template files from the base modelLICENSE.txt: Tencent HY Community License Agreement from the base modelNOTICE: redistribution notice and conversion noticeconversion_info.json: conversion metadata and smoke-test resulthy_v3.py adapter was tested with a short translation smoke test, but it has not been exhaustively validated on every long-context, batching, or edge-case workload.1tencent/Hy-MT2-30B-A3B
2https://huggingface.co/tencent/Hy-MT2-30B-A3B1@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}