How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
# Run inference directly in the terminal:
llama cli -hf AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
# Run inference directly in the terminal:
llama cli -hf AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
# Run inference directly in the terminal:
./build/bin/llama cli -hf AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
Use Docker
docker model run hf.co/AXERA-TECH/Hy-MT2-1.8B-AX8860-llama.cpp:Q8_0
Quick Links

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

在爱芯 AX8860 的 NPU 上用 llama.cpp 运行腾讯混元 Hy-MT2-1.8B 多语翻译模型,OpenAI 兼容服务。 Tencent Hy-MT2-1.8B multilingual translation on the Axera AX8860 NPU with llama.cpp, with an OpenAI-compatible server.

性能 / Performance

decode 69.5 tokens/s
4k prompt prefill 7653 tokens/s(3906 token 0.51 s)
上下文 / context 最长 / up to 131072
模型加载 / model load 19.2–23.5 s

sh bench.sh 复现 / reproduce(生成 50 token / 50 generated tokens):

prompt -c prompt 耗时 / time decode tokens/s
5 token 8192 0.03 s 69.5
47 token 8192 0.05 s 68.3
3906 token 8192 0.51 s 57.2
5 token 131072 0.03 s 69.8
3906 token 131072 0.51 s 57.0

快速开始 / Quick start

sh run.sh "今天天气真好。"                     # 中译英 / Chinese to English
sh run.sh "今天天气真好。" 64                  # 最多生成 64 token / at most 64 tokens
sh run.sh -t ja:zh "明日は晴れるでしょう。" 64   # 日译中 / Japanese to Chinese
sh run.sh -t en:zh "The weather is nice." 64  # 英译中 / English to Chinese
sh run.sh -c                                  # 命令行对话 / chat
sh run.sh -s 8080                             # OpenAI 兼容服务 / server
sh bench.sh                                   # 性能复现 / benchmark
sh bench.sh ppl                               # 困惑度 / perplexity

需要 AX8860 与 SDK 运行库(/opt/lib);HF 下载的文件没有执行权限,用 sh 调用即可 / needs an AX8860 with the SDK runtime in /opt/lib; call the scripts with sh.

run.sh 按模型卡的翻译 prompt 格式拼装请求;-t 支持 zh en ja ko fr de ru es / run.sh builds the model card's translation prompt; -t accepts zh en ja ko fr de ru es:

将以下文本翻译为英语,注意只需要输出翻译后的结果,不要额外解释:

<原文 / source text>

服务请求 / Server request:

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

文件 / Files

文件 / File 说明 / Description
Hy-MT2-1.8B-Q8_0.gguf 模型权重 / weights,1.91 GB,md5 1c4b638e9ea465a06264c06bbf423a52
bin/ llama.cpp 板端程序(静态链接)/ board programs (static)
kernels/ NPU kernel 2 个:prefill、decode(含输出头)+ manifest.json / two kernels: prefill and decode (with the output head) + manifest.json
run.sh,chat_template.jinja 运行脚本与服务端对话模板 / run script and the server's chat template
bench.sh 及 prompt 性能与困惑度复现 / benchmark and perplexity

说明 / Notes

  • 权重在加载时由 GGUF 转成 MXFP8,KV 为 BF16;Q8_0 与 F16 GGUF 都可加载 / weights are converted from the GGUF to MXFP8 at load, with a BF16 KV cache; both Q8_0 and F16 GGUFs load.
  • 一套 kernel 覆盖到 131072 上下文,KV 按 -c 分配;用环境变量 CTX 调整 / one kernel set covers up to 131072 tokens and allocates the KV by -c; set CTX to change it.
  • 这是翻译模型:对话模板没有思考与工具调用分支,也没有 MTP 头 / a translation model: the chat template has no thinking or tool-calling branch, and there is no MTP head.
  • run.sh -c 需要真实终端 / chat mode needs an interactive terminal.
  • 运行时独占 NPU 4 核;服务端 -np 1 / takes all 4 NPU cores; the server runs -np 1.

正确性 / Correctness

  • 中、英、日、法互译的板上输出正确,含习语与带数字的技术句 / board translations between Chinese, English, Japanese and French are correct, including idioms and technical sentences with numbers.
  • PPL(sh bench.sh ppl,-c 512)/ perplexity:
语言 / language -ub 1 -ub 4
中文 / zh 29.52 29.37
英文 / en 16.35 16.53

源码 / Sources

更新 / Changelog

  • 2026-11-15:首次发布 / first release.
Downloads last month
581
GGUF
Model size
2B params
Architecture
hunyuan-dense
Hardware compatibility
Log In to add your hardware

8-bit

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

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

Quantized
(63)
this model

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