inoryQwQ commited on
Commit
b2e96cd
·
verified ·
1 Parent(s): 244c0fd

Add 20s long demo audio (en/zh, sampling 0.8/0.95/rep1.1); post_config sampling default for long-text stability

Browse files
README.md CHANGED
@@ -61,10 +61,25 @@ Hojo-TTS-Light-40M 中文/英文 TTS(24kHz,15 音色)在爱芯 AX650/NPU3
61
  你的浏览器不支持音频播放,可<a href="https://huggingface.co/AXERA-TECH/Hojo-TTS-Light/resolve/main/audio/demo_en.wav">下载英文示例</a>。
62
  </audio>
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  ## 精度 / 性能
65
  - LM s8:step0 top1 命中,前 30 步与 fp32 ONNX greedy 完全一致(量化累积后分叉属预期)
66
  - decode ~175 tok/s;全链路 RTF≈0.43(decoder_sq)
67
- - 生成确定性:相同输入多次运行 token 序列一致
 
68
 
69
  ## 复现
70
  模型转换(ONNX → HF safetensors → llm_build2)与 C++ SDK 构建源码见 GitHub:`ml-inory/hojo-tts-light.axera`
 
61
  你的浏览器不支持音频播放,可<a href="https://huggingface.co/AXERA-TECH/Hojo-TTS-Light/resolve/main/audio/demo_en.wav">下载英文示例</a>。
62
  </audio>
63
 
64
+ 长示例(20 秒级,采样生成 temperature=0.8 / top_p=0.95 / repetition_penalty=1.1,与厂商推理一致):
65
+
66
+ 中文长示例(voice hojo_zh_f_01):
67
+
68
+ <audio controls src="https://huggingface.co/AXERA-TECH/Hojo-TTS-Light/resolve/main/audio/demo_zh_long.wav">
69
+ 你的浏览器不支持音频播放,可<a href="https://huggingface.co/AXERA-TECH/Hojo-TTS-Light/resolve/main/audio/demo_zh_long.wav">下载中文长示例</a>。
70
+ </audio>
71
+
72
+ 英文长示例(voice hojo_en_m_02):
73
+
74
+ <audio controls src="https://huggingface.co/AXERA-TECH/Hojo-TTS-Light/resolve/main/audio/demo_en_long.wav">
75
+ 你的浏览器不支持音频播放,可<a href="https://huggingface.co/AXERA-TECH/Hojo-TTS-Light/resolve/main/audio/demo_en_long.wav">下载英文长示例</a>。
76
+ </audio>
77
+
78
  ## 精度 / 性能
79
  - LM s8:step0 top1 命中,前 30 步与 fp32 ONNX greedy 完全一致(量化累积后分叉属预期)
80
  - decode ~175 tok/s;全链路 RTF≈0.43(decoder_sq)
81
+ - 短文本可用确定性 greedy(`post_config.json` 默认采样,避免长文本重复退化;greedy 可通过
82
+ `enable_temperature=false` 开启)
83
 
84
  ## 复现
85
  模型转换(ONNX → HF safetensors → llm_build2)与 C++ SDK 构建源码见 GitHub:`ml-inory/hojo-tts-light.axera`
audio/demo_en_long.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07692ab3daa71d1952b20c2cddcc8bcc1257a4b0e194dea177bfd557a9e7f12a
3
+ size 983084
audio/demo_zh_long.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0433750d2045cb2e6d81ada9393e333c9fb582862098e29e36c472518cd0df0c
3
+ size 983084
models/README.md CHANGED
@@ -2,7 +2,7 @@
2
 
3
  | 组件 | 文件 | 说明 |
4
  |------|------|------|
5
- | LM (10 层 decode-only) | lm_s8/qwen3_p8_l0..9_together.axmodel + qwen3_post.axmodel + embed_tokens.bin + config.json + post_config.json + tokenizer.* | ax-llm s8,Pulsar2 7.0 llm_build2,kv_cache_len=2176 |
6
  | fine_local | fine_local.axmodel | INT8,cos 0.9997 |
7
  | decoder | decoder_sq.axmodel | SmoothQuant+U16,mag 0.998+/phase 0.95-0.97 |
8
  | 词典 | tokenizer.json / tokenizer_config.json | 原版 Hojo |
 
2
 
3
  | 组件 | 文件 | 说明 |
4
  |------|------|------|
5
+ | LM (10 层 decode-only) | lm_s8/qwen3_p8_l0..9_together.axmodel + qwen3_post.axmodel + embed_tokens.bin + config.json + post_config.json + tokenizer.* | ax-llm s8,Pulsar2 7.0 llm_build2,kv_cache_len=2176;post_config 采样 0.8/0.95/rep 1.1(长文本防重复) |
6
  | fine_local | fine_local.axmodel | INT8,cos 0.9997 |
7
  | decoder | decoder_sq.axmodel | SmoothQuant+U16,mag 0.998+/phase 0.95-0.97 |
8
  | 词典 | tokenizer.json / tokenizer_config.json | 原版 Hojo |
models/lm_s8/post_config.json CHANGED
@@ -1,11 +1,11 @@
1
  {
2
- "enable_repetition_penalty": false,
3
- "repetition_penalty": 1.0,
4
  "penalty_window": 20,
5
- "enable_temperature": false,
6
- "temperature": 1.0,
7
  "enable_top_k_sampling": false,
8
  "top_k": 1,
9
- "enable_top_p_sampling": false,
10
- "top_p": 1.0
11
  }
 
1
  {
2
+ "enable_repetition_penalty": true,
3
+ "repetition_penalty": 1.1,
4
  "penalty_window": 20,
5
+ "enable_temperature": true,
6
+ "temperature": 0.8,
7
  "enable_top_k_sampling": false,
8
  "top_k": 1,
9
+ "enable_top_p_sampling": true,
10
+ "top_p": 0.95
11
  }