vllm.v1.worker.gpu.buffer_utils ¶
Classes:
-
FusedStagedWriter–Applies the staged writes of several
StagedWriteTensors at once. -
UvaBufferPool–Preallocate each slot at size, growing its first dimension as needed.
FusedStagedWriter ¶
Applies the staged writes of several StagedWriteTensors at once.
Methods:
-
apply–Apply and clear the staged writes of
tensorswith one kernel.
Source code in vllm/v1/worker/gpu/buffer_utils.py
apply(tensors, output_ptrs, output_strides) ¶
Apply and clear the staged writes of tensors with one kernel.
Source code in vllm/v1/worker/gpu/buffer_utils.py
UvaBufferPool ¶
Preallocate each slot at size, growing its first dimension as needed.
Callers must retire a slot's GPU readers before reuse, including growth.