[犀牛鸟 2026 #6791] Qwen3-TTS 0.6B CustomVoice ncnn_llm 独立 PR 与双平台音频回归 #6828
March-77
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue 要求逐项核对
对应任务:Tencent/ncnn#6791。实现位于共享
ncnn_llm仓库的独立 Qwen3-TTS 分支,不另建模型专用 GitHub 仓库。convert.py,显式固定 shape 并拒绝残余pnnx.*/Tensor.*runtime opsrc/tts/;部署不导入 Python、PyTorch 或 Transformers仓库、分支与模型版本
model/qwen3-ttsQwen/Qwen3-TTS-12Hz-0.6B-CustomVoice@85e237c12c027371202489a0ec509ded67b5e4b5conversion.json;匿名逐文件大小与 SHA-256 校验通过,Hub revisionfe1a84969829bb0ac5cfe42877b8caa3a7d36cfa构建与复现
Linux/WSL:
cmake -S . -B build -DNCNN_SOURCE_DIR=/path/to/ncnn cmake --build build --target qwen3_tts_main -j ctest --test-dir build --output-on-failure build/qwen3_tts_main \ --model /path/to/qwen3-tts-ncnn/model.json --frames 2 \ --text-file models/qwen3-tts/testdata/prompt.txt \ --speaker Ryan --language English \ --out output.wav --codes output-codes-i32.bin --threads 8原生 Windows 使用相同输入和参数:
同输入比较结果
固定 fixture:
Hello, welcome to Qwen text to speech.,speakerRyan,languageEnglish,2 个 12 Hz frame,greedy generation。8550f3b28f8bea426a225ec0fe0d09e37eb13df169583bd823d23bd78aed0d9de7e6a3ca40dcdd2a84a8c7384f7e09c06d4a1a9907940d7bc26c0d91d4dffcf1passed: true1 LSB 容差只用于最后的 float-to-PCM16 舍入边界;离散 audio codes 是精确一致的。
原始日志、音频与机器可读证据
runtime-2f.logruntime-2f.logctest.logctest.logcompare.jsoncompare.jsoncodes/WAVcodes/WAVPyTorch 原始参考为
reference-2f.log,转换来源保存在convert-final.log与receipt.json。结论边界
25-frame 压力样例因自回归浮点差异,从 frame 6 开始改变 greedy 分支。因此这里只声称固定 2-frame fixture 的 codes 精确一致和 PCM 1-LSB 比较通过,不声称任意长度音频逐样本严格一致。
All reactions