vllm_omni.diffusion.ipc ¶
IPC utilities for transferring large tensors via POSIX shared memory.
Used by Hop1 (GPU worker <-> scheduler) to avoid pickling large video tensors through the MessageQueue. Tensors above _SHM_TENSOR_THRESHOLD are copied into a named shared-memory segment; only a lightweight metadata dict is serialised through the queue.
DIFFUSION_RPC_RESULT_ENVELOPE module-attribute ¶
pack_diffusion_output_shm ¶
Replace large tensors in diffusion worker outputs with SHM handles.
Supports a bare DiffusionOutput, a wrapper object carrying one in .result (for example RunnerOutput), an RPC result envelope carrying the diffusion output in ["result"], or a batch wrapper carrying RunnerOutput objects in .runner_outputs.