[Docs] optimize and supplement docs system (#86)

Signed-off-by: Gaohan123 <gaohan19@huawei.com>
This commit is contained in:
Gao Han authored and GitHub committed 2025-11-28 11:03:52 +08:00
1 parent 38f58064eb
commit db81ee9f69
75 files changed
+2452 -512

No files matched your search

+23
View File
@@ -10,6 +10,19 @@ from vllm_omni.engine import AdditionalInformationPayload, OmniEngineCoreRequest
class OmniRequest(Request):
"""Request class for omni models, extending the base Request.
This class extends the base vLLM Request with support for prompt
embeddings and additional information payloads, enabling direct
transfer of pre-computed embeddings between stages.
Args:
prompt_embeds: Optional serialized prompt embeddings payload.
Used for direct transfer of embeddings between stages.
additional_information: Optional additional information payload
containing tensors or lists to be passed along with the request.
"""
def __init__(
self,
prompt_embeds: Optional[PromptEmbedsPayload] = None,
@@ -29,6 +42,16 @@ class OmniRequest(Request):
request: OmniEngineCoreRequest,
block_hasher: Optional[Callable[["Request"], list["BlockHash"]]],
) -> "Request":
"""Create an OmniRequest from an OmniEngineCoreRequest.
Args:
request: The OmniEngineCoreRequest to convert
block_hasher: Optional function to compute block hashes for
prefix caching
Returns:
OmniRequest instance created from the engine core request
"""
return cls(
request_id=request.request_id,
client_index=request.client_index,