[Feature] timestamps for TTS via a forced-aligner pooling (#4795)
Signed-off-by: wjinxu <1299461899@qq.com> Co-authored-by: xurui <xurui1@modelbest.onaliyun.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
28 files changed
+850
-627
No files matched your search
@@ -1543,11 +1543,19 @@ class Orchestrator:
|
||||
return request
|
||||
|
||||
processor = self._get_stage_input_processor(next_stage_id)
|
||||
# A pooling stage is driven by PoolingParams; vLLM validates them against
|
||||
# the stage's supported tasks, so advertise the model's pooling tasks (or
|
||||
# the configured task) instead of generate.
|
||||
if isinstance(params, PoolingParams):
|
||||
model_cfg = next_pool.stage_vllm_config.model_config
|
||||
supported_tasks = tuple(getattr(model_cfg, "supported_tasks", ()) or ()) or (params.task,)
|
||||
else:
|
||||
supported_tasks = ("generate",)
|
||||
request = processor.process_inputs(
|
||||
request_id=req_id,
|
||||
prompt=next_input,
|
||||
params=params,
|
||||
supported_tasks=("generate",),
|
||||
supported_tasks=supported_tasks,
|
||||
arrival_time=_time.time(),
|
||||
resumable=resumable,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user