vllm_omni.distributed.omni_connectors.utils.serialization ¶
OmniMsgpackDecoder ¶
This implementation is adapted from vLLM’s MsgpackDecoder. However, zero-copy support has not been implemented yet.
Automatically reconstructs torch.Tensor, numpy.ndarray, PIL.Image, RequestOutput and CompletionOutput from their dict representations. TODO: Enable zero-copy support.
OmniMsgpackEncoder ¶
This implementation is adapted from vLLM’s MsgpackEncoder. However, zero-copy support has not been implemented yet. Handles torch.Tensor, numpy.ndarray, PIL.Image, RequestOutput and CompletionOutput by converting them to serializable dict representations. TODO: Enable zero-copy support.