Instructions to use AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-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/Qwen3-TTS-1.7B-CustomVoice-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/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
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/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
Use Docker
docker model run hf.co/AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
- Unsloth Desktop
- Docker Model Runner
How to use AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
- Lemonade
How to use AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp:BF16
Run and chat with the model
lemonade run user.Qwen3-TTS-1.7B-CustomVoice-AX8860-llama.cpp-BF16
List all available models
lemonade list
- Atomic Chat
File size: 4,640 Bytes
cea939f b376ca3 cea939f b376ca3 cea939f b376ca3 cea939f b376ca3 cea939f b376ca3 cea939f b376ca3 cea939f b376ca3 411b635 cea939f b376ca3 cea939f 3f9f4e4 b376ca3 026b4bf b376ca3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | ---
base_model:
- Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice
---
# Qwen3-TTS-12Hz-1.7B-CustomVoice on AX8860 (llama.cpp + ggml-axera, 2026-11-09)
在爱芯 AX8860 的 NPU(4 核)上用 llama.cpp 运行 Qwen3-TTS-12Hz-1.7B-CustomVoice 语音合成:九个内置音色,可用风格指令控制语气。
Qwen3-TTS-12Hz-1.7B-CustomVoice speech synthesis on the 4-core NPU of the Axera AX8860: nine built-in speakers with optional style instructions.
## 性能 / Performance
AX8860,SDK V0.5.1,NPU 4 核。本版只更新板端 bin,kernels 与 GGUF 不变;以下为发布目录实测 / 4 cores; this release only updates the board binaries, the kernels and GGUFs are unchanged; measured with the release directory:
| 项目 / Item | 结果 / Result |
|---|---|
| 一段中文,26.8 s 语音,进程总耗时(含加载与首次声码器转换)/ one Chinese paragraph, 26.8 s of speech, total process time | 39 s |
| 稳定段 talker + codec / steady-state talker + codec | 约 / about 33 帧/s(30 ms/帧 per 80 ms frame) |
| 每进程加载与权重转换 / load and weight conversion, once per process | 约 / about 25 s |
## 文件 / Files
| 文件 / File | 说明 / Description |
|---|---|
| `qwen3-tts-1.7b-customvoice-bf16.gguf` | talker 权重(GGUF BF16,3.2 GB,md5 `221abca92d007479b0197f2f6a3b51d4`)/ talker weights |
| `mmproj-qwen3-tts-1.7b-customvoice-bf16.gguf` | code predictor 与声码器权重(GGUF BF16,645 MB,md5 `b411adaeb1f7fc184d8bcad49ef879db`)/ code predictor and codec decoder weights |
| `bin/` | llama.cpp 板端程序 `llama-tts`(静态链接,只依赖系统 `/opt/lib` 与 libc)/ the board program (static; needs only the system `/opt/lib` and libc) |
| `kernels/` | NPU kernel 4 个:talker prefill、talker decode(含 codec 输出头)、code predictor、声码器 + `manifest.json` / four kernels: talker prefill, talker decode (with the codec head), code predictor and codec decoder + `manifest.json` |
| `run.sh` | 运行脚本 / run script |
权重只来自 GGUF:kernel 不含权重,加载时从 GGUF 转换(talker 与 code predictor MXFP8,声码器 BF16)。
The weights come only from the GGUFs: the kernels hold none; they are converted at load (talker and code predictor MXFP8, codec decoder BF16).
## 运行 / Run
环境 / Requirements:AX8860,SDK V0.5.0 或更新(`cat /proc/ax_proc/version`)/ SDK V0.5.0 or newer.
```sh
./bin/llama-tts -m qwen3-tts-1.7b-customvoice-bf16.gguf \
--mmproj mmproj-qwen3-tts-1.7b-customvoice-bf16.gguf \
-p "今天天气很好,我们一起去公园散步吧。" --tts-speaker vivian --tts-lang zh \
--tts-instruct "用温柔一点的声音,语速稍慢。" -o out.wav
```
`--tts-speaker` 必填(九个内置音色,例如 `vivian`、`dylan`、`eric`);`--tts-instruct` 可选,用自然语言描述语气和语速。`--tts-lang` 支持 `zh en de it pt es ja ko fr ru` 与 `auto`。
`--tts-speaker` is required (nine built-in speakers, e.g. `vivian`, `dylan`, `eric`); `--tts-instruct` optionally describes the tone and pace in natural language. `--tts-lang` accepts `zh en de it pt es ja ko fr ru` and `auto`.
直接调用程序时设置 `/opt/lib` 与 `kernels/` / when calling the program directly: `LD_LIBRARY_PATH=/opt/lib GGML_AXERA_KERNEL_DIR=<repo>/kernels`,`-ngl 99 -c 4096`,top-k 不超过 50 / top-k up to 50。
## 正确性 / Correctness
- 中文长句(带风格指令)合成后用 Qwen3-ASR-1.7B 回转,与原文逐字一致 / the long Chinese output synthesized with a style instruction was transcribed back exactly by Qwen3-ASR-1.7B.
## 已知限制 / Known limits
- 运行时独占 NPU 4 核 / takes all 4 NPU cores; do not run other NPU programs alongside.
- 上下文 4096;top-k 最大 50 / context 4096; top-k at most 50.
- 贪心解码(`--temp 0`)的语音偏长、停顿多,建议用默认采样 / greedy decoding gives long, pause-heavy speech; keep the default sampling.
## 源码 / Sources
- llama.cpp:[ZHEQIUSHUI/llama.cpp](https://github.com/ZHEQIUSHUI/llama.cpp) `axera-dev` @ `6613735ce`(`ggml/src/ggml-axera/models/qwen3`、`qwen3_tts`;语音编码器 `tools/mtmd/models/qwen3tts-encode.cpp`)
## 更新 / Changelog
- 2026-11-24:更新板端 bin(llama.cpp `6613735ce`);未设置 `GGML_AXERA_KERNEL_DIR` 时直接报错退出;kernels 与 GGUF 不变 / new board binaries (llama.cpp `6613735ce`): exits with an error when `GGML_AXERA_KERNEL_DIR` is not set; kernels and GGUF unchanged
- 2026-11-09:更新板端 bin(llama.cpp `2f81e2416`);kernels 与 GGUF 不变 / new board binaries; kernels and GGUF unchanged.
|