[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:
25 files changed
+5710
-2149
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user