nemo_automodel.components.models.mistral3.model
nemo_automodel.components.models.mistral3.model
Module Contents
Classes
Functions
Data
API
Bases: Module
Bases: Module
Bases: CausalLMOutputWithPast
Bases: PretrainedConfig
Configuration for Ministral3 text decoder.
Bases: HFCheckpointingMixin, Ministral3PreTrainedModel, GenerationMixin
Bases: Module
Bases: BaseModelOutputWithPast
Bases: PreTrainedModel
Bases: Module
Bases: Module
Map a native transformers config to our model class in auto_cls.
transformers >=5.15 makes _LazyAutoMapping.register return without doing
anything when the config class lives under transformers.*, so that hub
remote code cannot hijack a native config
(models/auto/auto_factory.py: if getattr(key, "__module__", "").startswith("transformers."): return). Ministral-3 checkpoints declare
model_type: mistral3, so AutoConfig hands back HF’s Mistral3Config
and the public register silently no-ops — AutoModelForCausalLM then
rejects the config outright. Writing the entry the way register did before
that guard keeps Ministral-3 loadable as a causal LM; it is a no-op once the
public call has already taken effect (transformers <=5.12).
Register Ministral3Config and models with transformers Auto classes.
This uses the official transformers registration API. Registration is idempotent (re-registering the same config/model is a no-op in recent transformers versions).