> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/automodel/_mcp/server.

# MiniMax-M2.1

> Use MiniMax-M2.1 with NeMo AutoModel for language model fine-tuning, with documented checkpoints, runnable recipes, setup guidance, and model reference details.

[MiniMax-M2](https://huggingface.co/MiniMaxAI) is MiniMax's large Mixture-of-Experts language model with linear attention for efficient long-context inference.

Set up NeMo AutoModel with the [latest container](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nemo-automodel) or follow the [installation instructions](/get-started/installation).

## Fine-Tune MiniMax-M2.1

> **Note**
>
> This recipe was validated on **8 nodes x 8 GPUs (64 H100s)**. See the [Launcher Guide](/job-launchers/slurm-cluster) for multi-node setup.

From the repository root, run:

```bash
uv run automodel --nproc-per-node=8 examples/llm_finetune/minimax_m2/minimax_m2.1_hellaswag_pp.yaml
```

## Choose a Workflow

| Goal                                                                               | Start Here                                                                                                                                                   |
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Supervised fine-tuning (SFT) - MiniMax-M2.1 on HellaSwag with pipeline parallelism | Use [minimax\_m2.1\_hellaswag\_pp.yaml](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/minimax_m2/minimax_m2.1_hellaswag_pp.yaml). |

## Model Reference

### Model Architecture

| Property                  | Value                                         |
| ------------------------- | --------------------------------------------- |
| Task                      | Text Generation (MoE)                         |
| Architecture              | `MiniMaxM2ForCausalLM`                        |
| Parameters                | 229B total                                    |
| Hugging Face Organization | [MiniMaxAI](https://huggingface.co/MiniMaxAI) |

### Available Models

| Model        | HF ID                                                                     |
| ------------ | ------------------------------------------------------------------------- |
| MiniMax M2.1 | [`MiniMaxAI/MiniMax-M2.1`](https://huggingface.co/MiniMaxAI/MiniMax-M2.1) |

## Related Resources

* [LLM Fine-Tuning Guide](/recipes-e2e-examples/sft-peft)
* [Large MoE Fine-Tuning Guide](/recipes-e2e-examples/large-moe-fine-tuning)