nemo_automodel.components.moe.config
nemo_automodel.components.moe.config
MoE model configuration.
Module Contents
Classes
API
Configuration for routed and shared MoE expert modules.
Dimension used for expert projections (latent size when set, otherwise model dim).
Configuration for MoE load balance metrics logging.
How often to log detailed metrics (only used when mode=“detailed”). None means every step.
Whether to enable load balance metric tracking.
Logging mode - “brief” for scalar line charts only, “detailed” adds per-layer breakdowns.
Number of top (highest) and bottom (lowest) utilization experts to emit per layer. Reduces wandb key count for models with many experts. Set to 0 to disable per-expert utilization logging entirely.
Configuration for the optional NCCL-EP token dispatcher (dispatcher="nccl_ep").
Every EP rank and every NCCL-EP layer in a process must use the same settings.
NCCL-EP sizes its dispatch and combine kernels itself; its NCCL_EP_COMM_SMS
environment variable tunes that budget.
Upper bound on tokens entering one MoE layer per microbatch on one rank, including masked tokens. Required when selecting NCCL-EP. The transport rounds it up to a multiple of 64; inputs may be shorter. Receive buffers remain dropless and are sized per dispatch.
Validate settings that do not depend on a CUDA device or EP group.