LLM Inputs#
- vllm.inputs.PromptStrictInputs#
The inputs to the LLM, which can take one of the following forms:
A text prompt (
strorTextPrompt)A tokenized prompt (
TokensPrompt)
alias of
Union[str,TextPrompt,TokensPrompt]
- class vllm.inputs.TextPrompt(*args, **kwargs)[source]#
Bases:
dictSchema for a text prompt.
- multi_modal_data: typing_extensions.NotRequired[MultiModalData]#
Optional multi-modal data to pass to the model, if the model supports it.