Instructions to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with 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-30B-A3B-AX8860-llama.cpp:NVFP4 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
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-30B-A3B-AX8860-llama.cpp:NVFP4 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
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-30B-A3B-AX8860-llama.cpp:NVFP4 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
Use Docker
docker model run hf.co/AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
- Unsloth Desktop
- Pi
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
- Lemonade
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
Run and chat with the model
lemonade run user.Hy-MT2-30B-A3B-AX8860-llama.cpp-NVFP4
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp:NVFP4" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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-benchworks; 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 onSIGTERM.
源码 / Sources
- llama.cpp:ZHEQIUSHUI/llama.cpp @
6613735ce
更新 / 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
4-bit
Model tree for AXERA-TECH/Hy-MT2-30B-A3B-AX8860-llama.cpp
Base model
tencent/Hy-MT2-30B-A3B