[Docs] Reduce requirements for docs build (#23651)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-08-26 16:43:28 +01:00
committed by GitHub
parent 1fdc732419
commit 379f828fba
4 changed files with 72 additions and 59 deletions

View File

@@ -16,14 +16,17 @@ import msgspec
import torch
from vllm.inputs import SingletonInputs
from vllm.lora.request import LoRARequest
from vllm.multimodal import MultiModalKwargs, MultiModalPlaceholderDict
from vllm.pooling_params import PoolingParams
from vllm.sampling_params import RequestOutputKind, SamplingParams
if TYPE_CHECKING:
from vllm.lora.request import LoRARequest
from vllm.v1.worker.kv_connector_model_runner_mixin import (
KVConnectorOutput)
else:
LoRARequest = Any
KVConnectorOutput = Any
VLLM_TOKEN_ID_ARRAY_TYPE = "l"
@@ -1138,7 +1141,7 @@ class IntermediateTensors:
"""
tensors: dict[str, torch.Tensor]
kv_connector_output: Optional["KVConnectorOutput"]
kv_connector_output: Optional[KVConnectorOutput]
def __init__(self, tensors):
# manually define this function, so that