Signed-off-by: zwhzzz0821 <2831474076@qq.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
38 lines
1.2 KiB
Python
38 lines
1.2 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
"""VoxCPM2 pipeline topology (frozen).
|
|
|
|
Single-stage AR TTS: text → speech waveform in one pass.
|
|
Uses the native MiniCPM4 base_lm with a per-request StaticKVCache that the
|
|
talker restores into the paged attention layer at step boundaries.
|
|
"""
|
|
|
|
from vllm_omni.config.stage_config import (
|
|
PipelineConfig,
|
|
StageExecutionType,
|
|
StagePipelineConfig,
|
|
)
|
|
|
|
VOXCPM2_PIPELINE = PipelineConfig(
|
|
model_type="voxcpm2",
|
|
default_deploy_config_name="voxcpm2.yaml",
|
|
model_arch="VoxCPM2TalkerForConditionalGeneration",
|
|
stages=(
|
|
StagePipelineConfig(
|
|
stage_id=0,
|
|
model_stage="latent_generator",
|
|
execution_type=StageExecutionType.LLM_AR,
|
|
input_sources=(),
|
|
final_output=True,
|
|
final_output_type="audio",
|
|
owns_tokenizer=True,
|
|
engine_output_type="audio",
|
|
scheduler_cls="vllm_omni.model_executor.models.voxcpm2.scheduler.VoxCPM2OmniARAsyncScheduler",
|
|
sampling_constraints={
|
|
"detokenize": False,
|
|
"stop_token_ids": [1],
|
|
},
|
|
),
|
|
),
|
|
)
|