[Minor] Include StreamingInput in inputs package (#33856)
Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import pytest
|
||||
import pytest_asyncio
|
||||
|
||||
from vllm import SamplingParams
|
||||
from vllm.inputs.data import StreamingInput
|
||||
from vllm.inputs import StreamingInput
|
||||
from vllm.outputs import RequestOutput
|
||||
from vllm.platforms import current_platform
|
||||
from vllm.sampling_params import RequestOutputKind
|
||||
|
||||
@@ -7,7 +7,7 @@ from unittest.mock import AsyncMock, MagicMock
|
||||
|
||||
import pytest
|
||||
|
||||
from vllm.inputs.data import StreamingInput
|
||||
from vllm.inputs import StreamingInput
|
||||
from vllm.outputs import RequestOutput
|
||||
from vllm.sampling_params import RequestOutputKind, SamplingParams
|
||||
from vllm.v1.engine.async_llm import AsyncLLM
|
||||
|
||||
@@ -12,6 +12,7 @@ from .data import (
|
||||
PromptType,
|
||||
SingletonInputs,
|
||||
SingletonPrompt,
|
||||
StreamingInput,
|
||||
TextPrompt,
|
||||
TokenInputs,
|
||||
TokensPrompt,
|
||||
@@ -41,4 +42,5 @@ __all__ = [
|
||||
"build_explicit_enc_dec_prompt",
|
||||
"to_enc_dec_tuple_list",
|
||||
"zip_enc_dec_prompts",
|
||||
"StreamingInput",
|
||||
]
|
||||
|
||||
@@ -16,8 +16,7 @@ from vllm import TokensPrompt
|
||||
from vllm.config import VllmConfig
|
||||
from vllm.engine.arg_utils import AsyncEngineArgs
|
||||
from vllm.engine.protocol import EngineClient
|
||||
from vllm.inputs import PromptType
|
||||
from vllm.inputs.data import StreamingInput
|
||||
from vllm.inputs import PromptType, StreamingInput
|
||||
from vllm.logger import init_logger
|
||||
from vllm.lora.request import LoRARequest
|
||||
from vllm.multimodal import MULTIMODAL_REGISTRY, MultiModalRegistry
|
||||
@@ -461,6 +460,7 @@ class AsyncLLM(EngineClient):
|
||||
self._validate_streaming_input_sampling_params(sp)
|
||||
else:
|
||||
sp = sampling_params
|
||||
# TODO(nick): Avoid re-validating reused sampling parameters
|
||||
req = self.input_processor.process_inputs(
|
||||
request_id=internal_req_id,
|
||||
prompt=input_chunk.prompt,
|
||||
|
||||
Reference in New Issue
Block a user