Views
No views yet
MiniMaxAI/MiniMax-M2,
produced by the minimax_expert_pruning pipeline.num_local_experts: 256 → 128 (pruning rate: 50.0 %)gate.weight and e_score_correction_bias per MoE layer are row-sliced to the
kept experts; per-expert tensors of dropped experts are absent; kept experts
are renumbered contiguously to 0..127.top_k = num_experts_per_tok is unchanged (8).{"ai4code": 1008, "general_en": 416, "reasoning": 257, "multilingual": 170}config.json, model-NNNNN-of-NNNNN.safetensors (FP8), model.safetensors.index.json,
tokenizer, custom modeling_minimax_m2.py + configuration_minimax_m2.py, and
expert_prune_plan.json (full record of which experts were kept per layer).1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4tok = AutoTokenizer.from_pretrained("morriszjm/MiniMax-M2.5-128e", trust_remote_code=True)
5model = AutoModelForCausalLM.from_pretrained(
6 "morriszjm/MiniMax-M2.5-128e", trust_remote_code=True,
7 torch_dtype=torch.bfloat16, device_map="auto",
8)--trust-remote-code and (on multi-GPU) match
--data-parallel-size to the EP topology you compiled the K against.