vllm.models.glm5next.nvidia.specialized_decode.linear
¶
Skinny projections for stock BF16 linear modules inside planned decode steps.
Stages that still call stock modules (the DSA attention) reach their BF16
projections through quant_method.apply; route wraps that call so a planned
step's 1 or 2 token counts take the skinny projection, the counts given to
route the split-K GEMM (DSA layers and the MTP draft), and every other call
(prefills, stock steps, other counts) the stock GEMM. At 4 tokens the DSA layer
measured slower with the skinny projection in place (124.6 -> 128.8 us per
layer at B4), although the projections alone are faster.
Functions:
-
planned–Whether a planned decode step is being captured.
-
route–Routes a BF16 linear module's decode GEMMs; False if it cannot.
planned()
¶
route(module, split_k_tokens=())
¶
Routes a BF16 linear module's decode GEMMs; False if it cannot.
split_k_tokens: token counts above MAX_TOKENS to route to split-K.