vllm.models.deepseek_v41.nvidia.ops.o_proj
¶
DSV4.1 output projection with a small-batch SM100/SM103 fusion.
Functions:
-
dsv41_o_proj–deep_gemm_fp8_o_projwith WO-A fused for small SM100/SM103 batches; -
precompile_dsv41_o_proj_early_trigger–Compile the fused WO-A variant
dsv41_o_projdispatches with -
register_dsv41_o_proj_warmup–Warm the fused WO-A token counts
dsv41_o_projcan dispatch.
_can_fuse_wo_a(layer)
¶
Whether the attention layer matches the fused WO-A kernel's layout.
Source code in vllm/models/deepseek_v41/nvidia/ops/o_proj.py
_fused_wo_a_shape(layer)
¶
The fused WO-A kernel's warmup arguments for layer.
Source code in vllm/models/deepseek_v41/nvidia/ops/o_proj.py
dsv41_o_proj(layer, attn_out, positions, wo_b_proj=None, early_trigger=False)
¶
deep_gemm_fp8_o_proj with WO-A fused for small SM100/SM103 batches;
wo_b_proj replaces layer._wo_b_proj. With early_trigger, the
fused WO-A launches wo_b_proj (PDL) right after its TMEM allocation,
for a wo_b_proj that loads its weights before its grid wait.
Source code in vllm/models/deepseek_v41/nvidia/ops/o_proj.py
precompile_dsv41_o_proj_early_trigger(layer, max_tokens)
¶
Compile the fused WO-A variant dsv41_o_proj dispatches with
early_trigger, for its token counts up to max_tokens.
Source code in vllm/models/deepseek_v41/nvidia/ops/o_proj.py
register_dsv41_o_proj_warmup(layer)
¶
Warm the fused WO-A token counts dsv41_o_proj can dispatch.