Kimi Linear
Kimi Linear is a hybrid-attention Mixture-of-Experts language model from Moonshot AI. Most layers use Kimi Delta Attention (KDA), a gated linear-attention variant with a recurrent state, and the remaining layers use full Multi-Head Latent Attention (MLA). NeMo AutoModel ships a native KimiLinear48BForCausalLM implementation with expert parallelism, packed sequences, and context parallelism.
Available Models
- Kimi-Linear-48B-A3B-Instruct: 48B total, 3B activated
Architecture
KimiLinear48BForCausalLM(model_type: kimi_linear_48b_a3b)- Hybrid attention stack: KDA linear-attention layers interleaved with MLA layers
- MoE feed-forward blocks with sigmoid routing and grouped top-k selection
Moonshot publishes this model and the Kimi K3 text backbone under the same
model_type: kimi_linear and the same architectures: ["KimiLinearForCausalLM"], so
neither field identifies the model on its own. NeMo AutoModel gives this implementation a
distinct identity, kimi_linear_48b_a3b / KimiLinear48BForCausalLM, and leaves
kimi_linear to the K3 text config. The example recipes name KimiLinear48BConfig
explicitly, which is what a published Moonshot checkpoint needs; checkpoints saved by
NeMo AutoModel already carry the distinct identity and load without that override.
Supported Parallelism
Example Hugging Face Models
Example Recipes
Try with NeMo AutoModel
- Clone and install from source. For full instructions, refer to Installation:
- Run the recipe from inside the repository:
Run with Docker
- Pull the container and mount a checkpoint directory:
- Navigate to the AutoModel directory where the recipes are located:
- Run the recipe:
Refer to the Installation Guide and the LLM Fine-Tuning Guide.
Fine-Tuning
Refer to the LLM Fine-Tuning Guide.