nemo_automodel.components.models.deepseek_v41.config
nemo_automodel.components.models.deepseek_v41.config
Hugging Face checkpoint configuration for DeepSeek-V4.1-Flash.
Module Contents
Classes
API
Bases: PretrainedConfig
Nested checkpoint configuration for DeepseekV41ForCausalLM.
Hugging Face dictionaries are materialized at this boundary; model
components receive the typed text_config and vision_config.
Quantization metadata, when present in a checkpoint, is preserved by the
base class rather than imposed on checkpoint-free BF16 configurations.
Load the checkpoint’s fast tokenizer for deterministic Engram hashing.
Returns: PreTrainedTokenizerFast
The original fast tokenizer from this configuration’s checkpoint
Raises:
ValueError: The configuration has no checkpoint source. Callers constructing a tiny model can supply a tokenizer directly.TypeError: The checkpoint resolves to a slow tokenizer.
Bases: PretrainedConfig
Declarative configuration of the CSA2, single-pass mHC and Engram backbone.
Defaults match the released Flash text configuration. Reducing
num_hidden_layers retains the complete source-layer and compression
schedules: a pretrained prefix must keep its original sharing and hashing
identities. Explicit smaller schedules support independent tiny models.
Unknown checkpoint metadata is retained by the Hugging Face base class.
Bases: PretrainedConfig
Configuration of the released 2D-RoPE vision encoder and image sizing.