Skip to content

vllm.device_allocator.xpumem

Classes:

XpuMemAllocator

A singleton pluggable allocator helper for XPU.

Note: Sleep will offload selected payloads to CPU or discard and unmap XPU physical memory. Wake-up remaps physical memory back to the same reserved virtual address and restores payload.

Methods:

  • discard –

    Discard mapped allocations with the given tags without CPU backup.

  • release_pools –

    Release pools, retaining allocators until their allocations are freed.

discard(tags)

Discard mapped allocations with the given tags without CPU backup.

release_pools()

Release pools, retaining allocators until their allocations are freed.