[Perf][Qwen3-TTS]Cached Incremental Decode (#5202)
Signed-off-by: boatman <109857087+sphinxkkkbc@users.noreply.github.com> Co-authored-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com>
This commit is contained in:
1 parent
12a5f6fbf3
commit
4f9b65074d
11 files changed
+3528
-735
No files matched your search
@@ -33,11 +33,19 @@ connectors:
|
||||
# initial_codec_chunk_frames (including the per-request API field).
|
||||
# Example:
|
||||
# codec_chunk_ramp: [4, 4, 8, 16, 25]
|
||||
# Common Stage1 decode buckets:
|
||||
# no-ref first/steady chunks: 25 / 97 frames
|
||||
# Base ref-context first/steady chunks: 73 / 169 frames
|
||||
# decoder internal non-streaming chunks: 325 frames
|
||||
decode_cudagraph_capture_sizes: [25, 73, 97, 169, 325]
|
||||
# Decoder CUDA Graph sizing:
|
||||
# * async_chunk=true derives all stateful ICL/xvec shapes from
|
||||
# codec_chunk_ramp when enabled, otherwise from
|
||||
# initial_codec_chunk_frames, codec_chunk_frames, and sliding_window;
|
||||
# decode_cudagraph_capture_sizes is ignored in this mode.
|
||||
# * async_chunk=false captures stateless shapes 150 and
|
||||
# decode_chunk_frames + decode_left_context_frames (325 by default).
|
||||
# Extra stateless shapes may be added (union, not intersection) with:
|
||||
# decode_cudagraph_capture_sizes: [97, 400]
|
||||
# Graph batch size defaults to 1. Add larger buckets only when needed:
|
||||
# decode_cudagraph_batch_sizes: [1, 2, 4]
|
||||
# Limit eager batches to reduce temporary stateful cache allocations; CUDA Graph batching uses the buckets above.
|
||||
decode_batch_max_size: 4
|
||||
|
||||
stages:
|
||||
- stage_id: 0
|
||||
|
||||
@@ -38,16 +38,12 @@ connectors:
|
||||
# initial_codec_chunk_frames (including the per-request API field).
|
||||
# Example:
|
||||
# codec_chunk_ramp: [4, 4, 8, 16, 25]
|
||||
# Common Stage1 decode buckets:
|
||||
# no-ref first/steady chunks: 25 / 97 frames
|
||||
# Base ref-context first/steady chunks: 73 / 169 frames
|
||||
# decoder internal non-streaming chunks: 325 frames
|
||||
decode_cudagraph_capture_sizes: [25, 73, 97, 169, 325]
|
||||
# Keep B>1 captures opt-in; c64 e2e validation did not show a stable win.
|
||||
# async_chunk derives stateful ICL/xvec graph shapes from the ramp when
|
||||
# enabled, otherwise from the fixed chunk settings above, and ignores
|
||||
# decode_cudagraph_capture_sizes. Keep B>1
|
||||
# captures opt-in; c64 e2e validation did not show a stable win.
|
||||
decode_cudagraph_batch_sizes: [1]
|
||||
decode_compile_shapes: []
|
||||
decode_batch_max_size: 1
|
||||
decode_batch_bucket_frames: []
|
||||
decode_enable_tf32: false
|
||||
|
||||
stages:
|
||||
|
||||
Reference in new issue
Block a user