Add entrypoint class and stage management

This commit is contained in:
Gaohan123 committed 2025-10-22 14:37:55 +08:00
1 parent 5a503f341e
commit 20cfd15cc6
10 files changed
+354 -629

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
from vllm.inputs.data import TokensPrompt
from typing import Any, NotRequired
import torch
class OmniTokensPrompt(TokensPrompt):
prompt_embeds: NotRequired[torch.Tensor]
"""The embeddings of the prompt."""
# New: optional additional information dictionary
# Values may be torch.Tensor or list
additional_information: NotRequired[dict[str, Any]]