[BugFix] code2wav supports disabling CUDA graph. (#3732)

Signed-off-by: amy-why-3459 <wuhaiyan17@huawei.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
amy-why-3459andHongsheng Liu authored and GitHub committed 2026-05-24 00:05:55 +08:00
1 parent d01eaca39a
commit 748470c1fb
6 files changed
+91 -46

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ stages:
max_num_batched_tokens: 51200
max_num_seqs: 64
gpu_memory_utilization: 0.1
enforce_eager: true
enforce_eager: false
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: false
+3 -3
View File
@@ -9,8 +9,8 @@
# * Stage 1 (code2wav) sets max_num_batched_tokens=65536 for correctness:
# codec prefill length (Q * num_frames) exceeds the 32k default.
# * Stage 0 does not set enforce_eager — talker runs cudagraph by default.
# Stage 1 sets true because its codec generation loop is not
# cudagraph-compatible. NPU platform flips stage 0 to true where
# Stage 1 defaults to false so Code2Wav can use its inner cudagraph;
# set true to disable that path in eager mode. NPU platform flips stage 0 to true where
# cudagraph is not yet verified.
async_chunk: true
@@ -56,7 +56,7 @@ stages:
- stage_id: 1
max_num_seqs: 10
gpu_memory_utilization: 0.3
enforce_eager: true
enforce_eager: false
trust_remote_code: true
enable_prefix_caching: false
async_scheduling: true