[Model] Preserve MiniCPM-o Talker full attention until capacity (#6799)

Signed-off-by: natureofnature <wzliu@connect.hku.hk>
Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
This commit is contained in:
NATUREandamy-why-3459 authored and GitHub committed 2026-09-06 22:25:35 +08:00
1 parent 715b8b8746
commit ff6e906a25
12 files changed
+913 -108

No files matched your search

+6 -9
View File
@@ -64,13 +64,8 @@ stages:
- stage_id: 1
max_num_seqs: 4
# Native duplex uses MiniCPMTTS.generate_with_buffer's supported
# sliding_recompute policy: retain one completed condition/codec chunk
# when the next condition arrives. Other deploy profiles continue to use
# the checkpoint's full_attention policy.
hf_overrides:
tts_config:
attention_type: sliding_recompute
# Preserve the checkpoint's full-attention Talker prompt while it fits;
# native duplex rolls over to a one-chunk window at context capacity.
# Leave device-level headroom for the colocated HiFi-GAN cuDNN workspace.
gpu_memory_utilization: 0.15
enforce_eager: false
@@ -118,8 +113,10 @@ platforms:
cuda:
stages:
- stage_id: 1
# Four Talker streams need much less KV than automatic sizing.
# Leave single-GPU headroom for concurrent Stage 2 diffusion batches.
# Full-attention occupancy is bounded by max_num_seqs * max_model_len
# (4 * 4096 = 16384 tokens). Keep the reported CUDA KV token capacity
# above that bound because physical-preemption replay is unsupported.
# The explicit cap leaves device headroom for concurrent Stage 2.
kv_cache_memory_bytes: 2147483648 # 2 GiB
npu: