vllm.platforms.cpu
¶
Classes:
CpuPlatform
¶
Bases: Platform
Methods:
-
discover_numa_topology–Discover NUMA topology and keep the last physical core of each numa
-
get_device_communicator_cls–Get device specific communicator class for distributed communication.
-
get_mla_prefill_backend_cls–Get the MLA prefill backend class of a device.
-
pack_kv_cache–Rewrite the kv cache shape for the current platform.
-
register_triton_kernel_overrides–Tune core Triton kernels for Triton-CPU.
-
set_device–Set the device for the current platform.
discover_numa_topology()
classmethod
¶
Discover NUMA topology and keep the last physical core of each numa into one core group list for nixl start_kv_load()
get_device_communicator_cls()
classmethod
¶
Get device specific communicator class for distributed communication.
get_mla_prefill_backend_cls(mla_selector_config)
classmethod
¶
Get the MLA prefill backend class of a device.
pack_kv_cache(kv_cache, indices)
classmethod
¶
Rewrite the kv cache shape for the current platform.
register_triton_kernel_overrides()
classmethod
¶
Tune core Triton kernels for Triton-CPU.
set_device(device)
classmethod
¶
Set the device for the current platform.
_cpu_mamba_backend(vllm_config)
¶
Return the CPU state backend selected by the model configuration.