vllm.models.minimax_m3.amd.akr_arnorm
¶
The MiniMax-M3.1 decoder-layer norms on amd_kernels: the qkv input norm (gemm
route) and the TP4 all-reduce + add + Gemma RMSNorm at both sites (norm route).
Classes:
-
DeferredFfn–A layer's FFN TP partial (amd_kernels'
FfnPartial) for the next norm;
Functions:
-
deferred_norm–The previous FFN's all-reduce + residual ->
norm, one launch: (codes for -
init–Build and warm up the communicators (a TP collective) once the weights are
-
input_norm–The input norm of a layer whose qkv runs amd_kernels gemm, writing that GEMM's
-
layer_tail–all-reduce(o_proj partial) + residual -> post-attention norm -> the FFN of
-
unsupported_reason–None when the decoder layers can run the route, else why not.
DeferredFfn
dataclass
¶
A layer's FFN TP partial (amd_kernels' FfnPartial) for the next norm;
taps (the DSpark drafter's aux hidden states) gets the residual it makes.
Source code in vllm/models/minimax_m3/amd/akr_arnorm.py
deferred_norm(deferred, residual, norm, gemm=None)
¶
The previous FFN's all-reduce + residual -> norm, one launch: (codes for
gemm, or bf16 without one, residual).
Source code in vllm/models/minimax_m3/amd/akr_arnorm.py
init(model)
¶
Build and warm up the communicators (a TP collective) once the weights are
processed, and enter their capture() around every TP graph capture.
Source code in vllm/models/minimax_m3/amd/akr_arnorm.py
input_norm(x, residual, norm, qkv_proj)
¶
The input norm of a layer whose qkv runs amd_kernels gemm, writing that GEMM's
codes; x is the previous FFN's output or its DeferredFfn.
Source code in vllm/models/minimax_m3/amd/akr_arnorm.py
layer_tail(layer, hidden_states, residual)
¶
all-reduce(o_proj partial) + residual -> post-attention norm -> the FFN of
layer (a MiniMaxM3DecoderLayer), whose TP partial the next norm reduces
(a DeferredFfn); None outside the kernels' rows and DBO microbatches.
Source code in vllm/models/minimax_m3/amd/akr_arnorm.py
unsupported_reason(vllm_config)
¶
None when the decoder layers can run the route, else why not.