vllm.models.deepseek_v41.nvidia.specialized_decode.attention.mxfp8
¶
Low-batch MXFP8 attention projections.
At up to LOW_BATCH_MAX_ROWS rows the executor runs fused_wqa_wkv,
wq_b and wo_b on FlashInfer mm_mxfp8 with its
cutedsl_low_latency backend whenever their input is already MXFP8; the
stock layers keep cute-dsl. Both backends read the same weights, weight
scales and F8_128x4 activation scales.
The backend's tactics differ by under 1 us when tuned in isolation, but split-K tactics are slower inside the back-to-back PDL chain of a decode step, so the 5-8-row bucket of the GB300 TP4 shapes is tuned over one pinned tactic.
Functions:
-
low_latency_mm–layer's GEMM ofxoncutedsl_low_latencyfor an eligible -
mxfp8_eligible–Whether
layeris acute-dslMXFP8 linear whose weights the -
mxfp8_mm–layer's GEMM oncutedsl_low_latency. -
pinned_tactics–Offer FlashInfer's tuner only the pinned tactic for pinned problems. The
-
run_zeros–Call
linearon an input laid out like the fused quantize producers'. -
shape_representatives–One eligible linear per distinct (N, K), in a rank-independent order.
_mxfp8_kernel(layer)
¶
layer's kernel when it is exactly the cute-dsl MXFP8 one.
Source code in vllm/models/deepseek_v41/nvidia/specialized_decode/attention/mxfp8.py
low_latency_mm(layer, x)
¶
layer's GEMM of x on cutedsl_low_latency for an eligible
layer, or None when x is not an MXFP8 input of the backend's layout.
Source code in vllm/models/deepseek_v41/nvidia/specialized_decode/attention/mxfp8.py
mxfp8_eligible(layer)
¶
Whether layer is a cute-dsl MXFP8 linear whose weights the
low-latency backend also takes.
Source code in vllm/models/deepseek_v41/nvidia/specialized_decode/attention/mxfp8.py
mxfp8_mm(layer, qa)
¶
layer's GEMM on cutedsl_low_latency.
Source code in vllm/models/deepseek_v41/nvidia/specialized_decode/attention/mxfp8.py
pinned_tactics()
¶
Offer FlashInfer's tuner only the pinned tactic for pinned problems. The tuner's tactic list is a FlashInfer internal: off the checked version, every tactic is tuned.
Source code in vllm/models/deepseek_v41/nvidia/specialized_decode/attention/mxfp8.py
run_zeros(linear, rows)
¶
Call linear on an input laid out like the fused quantize producers'.
Source code in vllm/models/deepseek_v41/nvidia/specialized_decode/attention/mxfp8.py
shape_representatives(linears)
¶
One eligible linear per distinct (N, K), in a rank-independent order.