Add entrypoint class and stage management
This commit is contained in:
1 parent
5a503f341e
commit
20cfd15cc6
10 files changed
+354
-629
No files matched your search
@@ -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]]
|
||||
Reference in new issue
Block a user