Signed-off-by: R2-Y <ruiruyang2@gmail.com> Signed-off-by: psv666 <2693925048@qq.com> Co-authored-by: psv666 <2693925048@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
88 lines
2.3 KiB
YAML
88 lines
2.3 KiB
YAML
# MiniCPM-o 4.5 three-stage deploy with one GPU per stage.
|
|
#
|
|
# This replaces the former fused two-stage layout: Thinker, Talker, and
|
|
# Code2Wav run independently on GPUs 0, 1, and 2.
|
|
pipeline: minicpmo_4_5
|
|
async_chunk: true
|
|
|
|
trust_remote_code: true
|
|
enable_prefix_caching: false
|
|
|
|
connectors:
|
|
connector_of_shared_memory:
|
|
name: SharedMemoryConnector
|
|
extra:
|
|
connector_get_sleep_s: 0.01
|
|
connector_get_max_wait_first_chunk: 3000
|
|
connector_get_max_wait: 300
|
|
codec_chunk_frames: 25
|
|
codec_left_context_frames: 3
|
|
# HiFT capture buckets are derived from codec_chunk_frames and
|
|
# codec_left_context_frames. (#5869)
|
|
# A future initial_codec_chunk_frames shape will use lazy capture unless
|
|
# HiFTGraphWrapper.derive_capture_bucket_size explicitly includes it.
|
|
enable_hift_graph: true
|
|
|
|
stages:
|
|
- stage_id: 0
|
|
max_num_seqs: 4
|
|
gpu_memory_utilization: 0.9
|
|
enforce_eager: false
|
|
tensor_parallel_size: 1
|
|
max_num_batched_tokens: 16384
|
|
devices: "0"
|
|
interleave_mm_strings: true
|
|
media_io_kwargs:
|
|
video:
|
|
fps: 1
|
|
num_frames: 128
|
|
limit_mm_per_prompt:
|
|
video: 1
|
|
default_sampling_params:
|
|
temperature: 0.0
|
|
top_p: 1.0
|
|
top_k: -1
|
|
max_tokens: 2048
|
|
seed: 42
|
|
detokenize: true
|
|
repetition_penalty: 1.1
|
|
|
|
- stage_id: 1
|
|
max_num_seqs: 4
|
|
gpu_memory_utilization: 0.9
|
|
enforce_eager: false
|
|
max_num_batched_tokens: 8192
|
|
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
|
|
min_tokens: 50
|
|
max_tokens: 2048
|
|
stop_token_ids: [1]
|
|
seed: 42
|
|
detokenize: false
|
|
|
|
- stage_id: 2
|
|
max_num_seqs: 4
|
|
gpu_memory_utilization: 0.9
|
|
enforce_eager: true
|
|
enable_chunked_prefill: false
|
|
max_num_batched_tokens: 65536
|
|
max_model_len: 65536
|
|
devices: "2"
|
|
input_connectors:
|
|
from_stage_1: connector_of_shared_memory
|
|
default_sampling_params:
|
|
temperature: 0.0
|
|
top_p: 1.0
|
|
top_k: -1
|
|
max_tokens: 65536
|
|
detokenize: true
|
|
|
|
platforms: {}
|