nemo_automodel.components.models.minimax_m3_vl.config
nemo_automodel.components.models.minimax_m3_vl.config
Typed configuration classes for the MiniMax M3 VL family.
The released checkpoint ships configuration_minimax_m3_vl.py which coerces
the vision_config/text_config sub-dicts into generic PretrainedConfig
instances (the text backbone’s model_type="minimax_m2" is not in HF’s
CONFIG_MAPPING). For the native AutoModel implementation we declare typed
sub-configs so that fields such as sparse_attention_config, moe_layer_freq
and the SwiGLU-OAI parameters are real, defaulted attributes.
Mirrors the canonical sglang reference sglang.srt.configs.minimax_vl and the
field set in the checkpoint’s config.json; keep them in sync.
Module Contents
Classes
Functions
Data
_DSPARK_DRAFT_ATTN_IMPLEMENTATION
_DSPARK_RELEASED_BACKBONE_FIELDS
_DSPARK_RELEASED_REQUIRED_FIELDS
API
Validated settings of the MiniMax M3 DSpark draft.
Number of tokens drafted per anchor.
Confidence loss weight, zero to disable the head.
Whether the confidence head reads Markov embeddings.
Markov head variant.
Rank of the Markov head, zero to disable it.
Vocabulary id of the noise token.
Number of anchors sampled per training row.
Number of draft decoder layers.
Contract shipped by the target checkpoint, when it has one.
Target layers whose features the draft consumes.
Text configuration of the target model.
Reject recipe settings that disagree with the target’s released contract.
Validate the settings and build the draft.
Returns: MiniMaxM3DSparkModel
Newly initialized draft ready for device placement.
Raises:
ValueError: If a setting is out of range or disagrees withreleased.
Draft contract read from a target checkpoint’s dspark/config.json.
Number of tokens drafted per anchor.
Released config without quantization metadata, written next to the draft weights because the export is not quantized.
Hidden width of the draft’s dense FFN.
Markov head variant.
Rank of the Markov head.
Vocabulary id of the noise token.
Number of draft decoder layers.
Context window of every draft layer, in tokens.
Target layers whose features the draft consumes.
Read the contract a target checkpoint ships for its DSpark draft.
Parameters:
Hub id or local directory of the target checkpoint.
Returns: MiniMaxM3DSparkReleasedConfig | None
The parsed contract, or None when the target has no dspark/config.json.
Raises:
ValueError: If the file does not describe a dense, sliding-windowDSparkMiniMaxDraftModel.
Bases: typing.TypedDict
quantization_config block of the released MiniMax M3 checkpoints.
M3 stores MXFP8 projections described by quant_method, activation_scheme,
weight_block_size and ignored_layers. M3.1 adds NVFP4 packed routed
experts described by moe_quant_algo, moe_quant_format and group_size.
Bases: PretrainedConfig
Top-level configuration for MiniMax M3 vision-language checkpoints.
Build the model-owned DSpark draft.
A target that ships dspark/config.json fixes the draft contract, and
options must agree with it.
Parameters:
Declarative draft settings supplied by the DSpark recipe.
Returns: MiniMaxM3DSparkModel
Newly initialized draft ready for device placement.
Bases: PretrainedConfig
Configuration for the MiniMax M3 (mixed sparse/dense MoE) text backbone.
Bases: PretrainedConfig
Configuration for the MiniMax M3 VL CLIP-style vision tower (Conv3d + 3D RoPE).
Declarative DSpark settings supplied by the generic training recipe.
Convert config values that are valid in-memory but not JSON serializable.