nemo_automodel.components.models.mimo_v2_flash.parallelization
nemo_automodel.components.models.mimo_v2_flash.parallelization
MiMo-specific Transformer Engine context-parallel setup.
Module Contents
Functions
API
Return the attention module beneath any activation-checkpoint wrappers.
Install MiMo’s TE a2a transport once for the active CP process group.
Configure every MiMo attention layer through its model-owned CP hook.
The attention module owns TE backend validation, head-partition validation, and the a2a transport choice. This traversal only finds pipeline-local attention layers and shares one CUDA communication stream across them.
Parameters:
model
A complete MiMo model or one pipeline-local model part.
cp_mesh
One-dimensional context-parallel device mesh.