Files
vllm-omni/vllm_omni/model_executor/models/output_templates.py
T
2390350533 [Refactor] Standardize data entry key names to {type}.{qualifier} format (#1829)
Signed-off-by: Divyansh Singhvi <divyanshsinghvi@gmail.com>
Signed-off-by: dsinghvi <divyanshsinghvi@gmail.com>
Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
Co-authored-by: Zhou Taichang <tzhouam@connect.ust.hk>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
2026-04-25 18:15:38 +08:00

16 lines
443 B
Python

from typing import NamedTuple
import torch
from vllm.sequence import IntermediateTensors
from vllm_omni.data_entry_keys import OmniPayload
class OmniOutput(NamedTuple):
"""Output from the merged Omni model containing both text and audio."""
text_hidden_states: torch.Tensor
multimodal_outputs: OmniPayload | None = None
intermediate_tensors: IntermediateTensors | None = None
next_token_id: torch.Tensor | None = None