2025-12-16 15:19:40 +08:00
|
|
|
from typing import NamedTuple
|
2025-11-30 04:44:01 +08:00
|
|
|
|
|
|
|
|
import torch
|
|
|
|
|
from vllm.sequence import IntermediateTensors
|
|
|
|
|
|
2026-04-25 15:45:38 +05:30
|
|
|
from vllm_omni.data_entry_keys import OmniPayload
|
|
|
|
|
|
2025-11-30 04:44:01 +08:00
|
|
|
|
|
|
|
|
class OmniOutput(NamedTuple):
|
|
|
|
|
"""Output from the merged Omni model containing both text and audio."""
|
|
|
|
|
|
|
|
|
|
text_hidden_states: torch.Tensor
|
2026-04-25 15:45:38 +05:30
|
|
|
multimodal_outputs: OmniPayload | None = None
|
2025-12-16 15:19:40 +08:00
|
|
|
intermediate_tensors: IntermediateTensors | None = None
|
|
|
|
|
next_token_id: torch.Tensor | None = None
|