vllm.models.minimax_m3.amd.mono.check
¶
Debug tooling for the mono path.
forward_checked (VLLM_ROCM_MINIMAX_M3_MONO_CHECK=1, meant for
--enforce-eager) runs every sparse layer twice on the same (ar, res): first
the mono layer kernel, then the original decoder layer. Both insert the same cache
slots (the kernel writes the same bytes up to the re-quantized attention weights),
so running both is side-effect free. Rank 0 logs, per layer and token, the
difference of the residual stream and of the reduced MoE output.
Functions:
-
forward_checked–runner.forwardwith the original decoder layer run beside every mono
forward_checked(runner, input_ids, positions, inputs_embeds)
¶
runner.forward with the original decoder layer run beside every mono
layer; the mono chain's output is returned.