nemo_automodel.components.models.kimi_linear.config
nemo_automodel.components.models.kimi_linear.config
Configuration for Moonshot Kimi Linear checkpoints.
Module Contents
Classes
API
Bases: PretrainedConfig
HF-compatible configuration for Kimi Linear 48B A3B causal LM checkpoints.
Moonshot publishes both this model and the Kimi K3 text backbone under
model_type: "kimi_linear" with architectures: ["KimiLinearForCausalLM"],
so neither field tells the two families apart. Automodel gives this one a
distinct identity (kimi_linear_48b_a3b / KimiLinear48BForCausalLM) and
leaves kimi_linear to the K3 text config. A published Moonshot checkpoint
therefore has to name this class explicitly, as the example recipes do; a
checkpoint saved by Automodel already carries the distinct identity.
Return whether any decoder layer uses Kimi Delta Attention.
Return whether full-attention layers use Kimi MLA projection fields.
Return whether the checkpoint config declares routed experts.
Return whether a zero-based layer index is configured as KDA.