Instructions to use MiniMaxAI/MiniMax-M2.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MiniMaxAI/MiniMax-M2.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MiniMaxAI/MiniMax-M2.5", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MiniMaxAI/MiniMax-M2.5", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("MiniMaxAI/MiniMax-M2.5", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use MiniMaxAI/MiniMax-M2.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MiniMaxAI/MiniMax-M2.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MiniMaxAI/MiniMax-M2.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MiniMaxAI/MiniMax-M2.5
- SGLang
How to use MiniMaxAI/MiniMax-M2.5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MiniMaxAI/MiniMax-M2.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MiniMaxAI/MiniMax-M2.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MiniMaxAI/MiniMax-M2.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MiniMaxAI/MiniMax-M2.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MiniMaxAI/MiniMax-M2.5 with Docker Model Runner:
docker model run hf.co/MiniMaxAI/MiniMax-M2.5
Create .eval_results/apex-agents.yaml
#59 opened 24 days ago
by
madhavan113
Where is M2.7 ??
6
#58 opened about 1 month ago
by
mtcl
Add YC-Bench benchmark result (avg $230,465)
#57 opened about 1 month ago
by
RiddleHe
Different Score on BrowseComp for Cladue Opus-4.5
#56 opened about 2 months ago
by
Shaobo1103
Production deployment at scale
#55 opened about 2 months ago
by
O96a
where is minimax 2.7
🔥 2
9
#54 opened about 2 months ago
by
devops724
minimax2.5
#52 opened about 2 months ago
by
gsting
关于SWE-Bench-Pro复现的疑问
1
#51 opened about 2 months ago
by
Clumsy1
Add SWE-Bench Pro evaluation result
5
#50 opened 2 months ago
by
nielsr
can we get minimax-m2.7
🤗 13
5
#49 opened 2 months ago
by
CHNtentes
[Model bug] Typos issues with either quantization or Fp8 with transformers v5 (or both).
👍 3
2
#48 opened 2 months ago
by
mratsim
Add MiniMax reported SWE-Bench Verified result
#47 opened 2 months ago
by
nielsr
Does anyone know a good 4 bit quant version?
#46 opened 2 months ago
by
pathosethoslogos
Install & run MiniMaxAI/MiniMax-M2.5 easily using llmpm
👍 1
#45 opened 2 months ago
by
sarthak-saxena
Security/Compliance Audit: EU AI Act & NIST Exposure
1
#44 opened 2 months ago
by
tradeapollo
BFCL results
#41 opened 3 months ago
by
paverGulyaevich
Transformers v5 support
#40 opened 3 months ago
by
AntonV
Could I deploy the model with 8XA100?
#37 opened 3 months ago
by
Yuxin362
what lisencing does the MiniMaxAI/MiniMax-M2.5 follows?
👍 1
1
#36 opened 3 months ago
by
naren-1219
OctoBench performance
#35 opened 3 months ago
by
petrovalex
Which reasoning parser to use?
👍 2
2
#33 opened 3 months ago
by
g-a-b-y
more about this model
2
#27 opened 3 months ago
by
surabb
What hardware needed for 1$ per hour?
🔥 1
#26 opened 3 months ago
by
kabachuha
perf degradation between vllm 0.14.0 to 0.15.1 (and nightly)
4
#25 opened 3 months ago
by
Meital
This model start making repeated mistakes affter 90,000 tokens on opencode
#23 opened 3 months ago
by
acharyaaditya26
关于GPQA benchmark的一些疑问
1
#18 opened 3 months ago
by
zymu
关于 swebench 复现的疑问
4
#17 opened 3 months ago
by
hrw
Can we have a smaller version version than the 230B / 10B active MoE e.g 120B / 10B active
👍 6
2
#15 opened 3 months ago
by
KingBadger
Recommended max_kv_size for MLX deployment to prevent OOM on Apple Silicon
👍 2
1
#14 opened 3 months ago
by
Neo2025new
VIBE Pro benchmark release date?
👍 1
1
#13 opened 3 months ago
by
ZeroAurora
This version is the gateway to AGI of open weights community
🚀 4
#11 opened 3 months ago
by
rosspanda0
Just twiddling my thumbs
➕ 2
3
#10 opened 3 months ago
by
huggyfaceenjoyer
GGUFs working well on ik/llama.cpp!
🚀 7
5
#9 opened 3 months ago
by
ubergarm
Inconsistent shard naming (124 vs 126) in both files and index.json
👀 6
1
#8 opened 3 months ago
by
cmadh
MiniMax-M2.5 MLX q3/q4 uploaded
🚀 1
1
#7 opened 3 months ago
by
ahoybrotherbear
Thank you!
❤️ 13
1
#6 opened 3 months ago
by
CHONGYOEYAT
context window
2
#5 opened 3 months ago
by
GustavB7
mtp
➕ 11
3
#4 opened 3 months ago
by
CHNtentes
Will M2.5-Lightning be released?
👍 4
3
#2 opened 3 months ago
by
Exostyle81