44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
from .data import (DecoderOnlyInputs, EmbedsInputs, EmbedsPrompt,
|
|
EncoderDecoderInputs, ExplicitEncoderDecoderPrompt,
|
|
ProcessorInputs, PromptType, SingletonInputs,
|
|
SingletonPrompt, TextPrompt, TokenInputs, TokensPrompt,
|
|
build_explicit_enc_dec_prompt, embeds_inputs,
|
|
to_enc_dec_tuple_list, token_inputs, zip_enc_dec_prompts)
|
|
from .registry import (DummyData, InputContext, InputProcessingContext,
|
|
InputRegistry)
|
|
|
|
INPUT_REGISTRY = InputRegistry()
|
|
"""
|
|
The global [`InputRegistry`][vllm.inputs.registry.InputRegistry] which is used
|
|
by [`LLMEngine`][vllm.LLMEngine] to dispatch data processing according to the
|
|
target model.
|
|
"""
|
|
|
|
__all__ = [
|
|
"TextPrompt",
|
|
"TokensPrompt",
|
|
"PromptType",
|
|
"SingletonPrompt",
|
|
"ExplicitEncoderDecoderPrompt",
|
|
"TokenInputs",
|
|
"EmbedsInputs",
|
|
"EmbedsPrompt",
|
|
"token_inputs",
|
|
"embeds_inputs",
|
|
"DecoderOnlyInputs",
|
|
"EncoderDecoderInputs",
|
|
"ProcessorInputs",
|
|
"SingletonInputs",
|
|
"build_explicit_enc_dec_prompt",
|
|
"to_enc_dec_tuple_list",
|
|
"zip_enc_dec_prompts",
|
|
"INPUT_REGISTRY",
|
|
"DummyData",
|
|
"InputContext",
|
|
"InputProcessingContext",
|
|
"InputRegistry",
|
|
]
|