[Core] Refactor omni prefix cache into Manager/Controller (#6654)

Signed-off-by: ZhengWG <zwg0606@gmail.com>
Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
authored and GitHub committed 2026-09-19 21:23:59 +08:00
1 parent ea84055507
commit 470ec60848
25 files changed
+5710 -2149

No files matched your search

+6 -5
View File
@@ -63,11 +63,12 @@ stages:
max_num_seqs: 64
gpu_memory_utilization: 0.3
trust_remote_code: true
# Prefix caching on by default. The HS opt-out (talker only consumes the
# last token's hidden state) and deferred mm-output writes added in this
# PR make per-step bookkeeping negligible, and any text repetition across
# requests (same voice or shared ref_audio) is a net throughput win.
# Disable explicitly if memory headroom is tight on a single-GPU deploy.
# Omni prefix cache (reuse of talker codec rows on shared prefixes). Off
# by default; set true when text repeats across requests (same voice or
# shared ref_audio). The talker opts out of hidden-state caching and
# defers codes.audio writes, so per-step cost is small. Stage 1 (codec
# decoder) is not a supported prefix-cache stage: keep it false there.
# See docs/design/feature/prefix_caching.md for the stage matrix.
enable_prefix_caching: false
async_scheduling: true
max_num_batched_tokens: 32768