vllm.model_executor.determinism.batch_invariant_configs
¶
_get_descriptor_matmul_config(M, N, K, dtype)
¶
Select a config for the XPU descriptor matmul from shape and dtype.
The default 128×128×64 config is optimized for large square-ish GEMMs but wastes resources on skinny shapes (small M during decode, or very tall/thin matrices during prefill). Shape-dependent tuning closes the gap with oneDNN.
Only BLOCK_SIZE_M/N and the launch parameters vary with M; dtype alone decides BLOCK_SIZE_K, so the K-reduction order never depends on batch size.