Hy-MT2-30B-A3B on AX8860 (llama.cpp + ggml-axera)

在爱芯 AX8860 的 NPU 上用 llama.cpp 运行腾讯混元翻译模型 Hy-MT2-30B-A3B(NVFP4 GGUF):48 层 MoE(激活 3B),多语互译,最长 128k 上下文,OpenAI 兼容服务。 Tencent Hunyuan translation model Hy-MT2-30B-A3B (NVFP4 GGUF) on the Axera AX8860 NPU with llama.cpp: 48-layer MoE (3B active), multilingual translation, up to 128k context, OpenAI-compatible server.

性能 / Performance

decode 58.6 tokens/s
4k prompt prefill 3531 tokens/s(3906 token 1.11 s)
上下文 / context 最长 / up to 131072

sh bench.sh 复现 / reproduce(生成 128 token / 128 generated tokens;短 prompt 仅列耗时 / short prompts report time only):

prompt -c prompt 耗时 / time decode tokens/s
5 token 8192 0.12 s —
47 token 8192 0.80 s —
3906 token 8192 1.11 s 45.4
5 token 131072 0.12 s —
47 token 131072 0.79 s —
3906 token 131072 1.10 s 45.3

NPU 内存(bench.sh 打印)/ NPU memory (printed by bench.sh):-c 4096 29.8 GB,-c 16384 29.9 GB,-c 131072 30.8 GB。

快速开始 / Quick start

sh run.sh "将以下文本翻译成英语,注意只需要输出翻译后的结果,不要额外解释:今天天气真好。" 64   # 翻译 / translate
sh run.sh -c                                      # 命令行对话 / chat
sh run.sh -s 8080                                 # 服务端 / server
CTX=131072 sh run.sh -s 8080                      # 长上下文 / long context (default 16384)
sh bench.sh                                       # 性能复现 / benchmark

需要 AX8860,SDK V0.5.1 或更新;HF 下载的文件没有执行权限,用 sh 调用即可 / needs an AX8860 with SDK V0.5.1+; call the scripts with sh.

服务端请求示例 / server request:

curl -s http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "messages":[{"role":"user","content":"将以下文本翻译成英语,注意只需要输出翻译后的结果,不要额外解释:今天天气真好。"}],
  "max_tokens":128,"temperature":0}'

文件 / Files

文件 / File 说明 / Description
Hy-MT2-30B-A3B-NVFP4.gguf 模型权重(NVFP4)/ weights (NVFP4),17.2 GB
bin/ llama.cpp 板端程序(静态链接)/ board programs (static)
kernels/ NPU kernel(prefill、decode 各一个)+ manifest.json / one prefill and one decode kernel
run.sh,chat_template.jinja 运行脚本与服务端对话模板 / run script and the server's chat template
bench.sh 及 prompt 性能复现 / benchmark

说明 / Notes

  • GGUF 为 NVFP4,只有本 fork 能正确加载,上游 llama.cpp 不支持 / the GGUF is NVFP4; only this fork loads it correctly, upstream llama.cpp cannot.
  • 这是翻译模型,请按上面的提示词格式给出翻译指令;对话模板里有 tools 分支,但工具调用不是该模型的可靠能力 / this is a translation model; use the instruction format above. The template has a tools branch, but tool calling is not a reliable capability of this model.
  • 模型原生上下文为 262144,本包提供 131072;KV cache 为 bf16 / the model's native context is 262144, this package provides 131072; the KV cache is bf16.
  • 模型没有 MTP 头,不支持 MTP 投机解码 / the checkpoint has no MTP head, so MTP speculative decoding is not available.
  • 运行时独占 NPU 4 核;服务端 -np 1 / takes all 4 NPU cores; the server runs -np 1.
  • llama-bench 可用,请加 -b 4096 -ub 4096 / llama-bench works; pass -b 4096 -ub 4096.

正确性 / Correctness

  • 56 句多语翻译(贪心)与同一 NVFP4 GGUF 在 CPU 上的输出对比:46 句逐字相同,chrF2 0.955,BLEU-4 96.0 / 56 multilingual sentences (greedy) against the same NVFP4 GGUF on the CPU: 46 identical, chrF2 0.955, BLEU-4 96.0.
  • 8k、30k 长文档翻译正常,无提前结束 / 8k and 30k documents translate without stopping early.
  • needle 32k、64k 命中;98k 未命中,同一 GGUF 在 CPU 上同样未命中 / needle hits at 32k and 64k; it misses at 98k, as the same GGUF does on the CPU.
  • 服务端 180 次请求的压力测试无错误;按 PID SIGTERM 可退出 / a 180-request server stress test passes without errors; the process exits on SIGTERM.

源码 / Sources

更新 / Changelog

  • 2026-11-17:新增 Hy-MT2-30B-A3B:NVFP4 权重,prefill、decode 各一个 4 核 kernel / Hy-MT2-30B-A3B added: NVFP4 weights, one four-core kernel each for prefill and decode.
Downloads last month
125
GGUF
Model size
30B params
Architecture
hy_v3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp

Quantized
(28)
this model

Collection including AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp