[Bugfix][MiniCPM-o] Stop Talker mid-utterance truncation and load cod… (#6346)

Signed-off-by: amy-why-3459 <wuhaiyan17@huawei.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
amy-why-3459andCursor authored and GitHub committed 2026-08-20 11:50:07 +08:00
1 parent 47b1893676
commit 9c61d5b67b
27 files changed
+1118 -678

No files matched your search

+7 -7
View File
@@ -64,15 +64,15 @@ stages:
devices: "0"
output_connectors:
to_stage_2: connector_of_shared_memory
# Codec sampling comes from the checkpoint's tts_config. These parameters
# govern only vLLM's binary continue/stop token.
# Talker is a single-vocab codec LM. These knobs go to vLLM's Sampler
# (head_code logits). EOS is tts_config.eos_token_id (num_audio_tokens-1).
default_sampling_params:
temperature: 0.0
top_p: 1.0
top_k: -1
temperature: 0.8
top_p: 0.8
top_k: 100
repetition_penalty: 1.02
min_tokens: 50
max_tokens: 2048
stop_token_ids: [1]
max_tokens: 4096
seed: 42
detokenize: false
+5 -8
View File
@@ -52,16 +52,13 @@ stages:
devices: "1"
output_connectors:
to_stage_2: connector_of_shared_memory
# Codec sampling is model-owned by the checkpoint's tts_config (defaults:
# T=0.8, top-k=25, top-p=0.85, repetition penalty=1.05, seed=42).
# These parameters only govern vLLM's binary continue/stop token.
default_sampling_params:
temperature: 0.0
top_p: 1.0
top_k: -1
temperature: 0.8
top_p: 0.8
top_k: 100
repetition_penalty: 1.02
min_tokens: 50
max_tokens: 2048
stop_token_ids: [1]
max_tokens: 4096
seed: 42
detokenize: false
+5 -7
View File
@@ -57,15 +57,13 @@ stages:
devices: "1"
output_connectors:
to_stage_2: connector_of_shared_memory
# vLLM samples the binary continue/stop row; codec sampling comes from
# the checkpoint's tts_config and currently uses a deterministic seed.
default_sampling_params:
temperature: 0.0
top_p: 1.0
top_k: -1
temperature: 0.8
top_p: 0.8
top_k: 100
repetition_penalty: 1.02
min_tokens: 50
max_tokens: 2048
stop_token_ids: [1]
max_tokens: 4096
seed: 42
detokenize: false
+5 -7
View File
@@ -69,15 +69,13 @@ stages:
devices: "4"
output_connectors:
to_stage_2: connector_of_shared_memory
# vLLM samples the binary continue/stop row; codec sampling comes from
# the checkpoint's tts_config and currently uses a deterministic seed.
default_sampling_params:
temperature: 0.0
top_p: 1.0
top_k: -1
temperature: 0.8
top_p: 0.8
top_k: 100
repetition_penalty: 1.02
min_tokens: 50
max_tokens: 2048
stop_token_ids: [1]
max_tokens: 4096
seed: 42
detokenize: false
+5 -4
View File
@@ -29,12 +29,13 @@ stages:
async_scheduling: false
# Talker context is 4096 (tts_config.max_position_embeddings).
max_model_len: 4096
# The split Talker exposes a binary continue/stop vocabulary; native
# segment and turn boundaries travel as explicit output metadata.
# Overlay only the knobs duplex changes. Codec temperature / top_k stay
# on the base YAML. Native duplex still ends each Talker request after
# one generate_chunk (26 samples, last is codec EOS) inside the model;
# YAML max_tokens is only the hard ceiling.
default_sampling_params:
max_tokens: 2048
max_tokens: 4096
min_tokens: 0
stop_token_ids: [1]
- stage_id: 2
max_num_seqs: 2