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)# pip install -U transformers accelerate # 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, device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Update EvalEval source links to flat datastore
Verified signatureUpdates existing EvalEval Community Evals YAML entries to link to flat datastore aggregate objects pinned to an immutable EEE datastore commit, and normalizes source.name to EvalEval. No score, dataset, task, or date changes are intended. This updates existing open PR refs only. Contributor: evalevaldc35d34
-
Remove duplicate GPQA eval result
Verified signatureMain already has a GPQA community eval result, so keep only the MMLU-Pro result in this PR.e14c182
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval1edad3d
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evalevalc92b925 -
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval87e6514
-
Add evaluation results for GPQA, HLE (#3)
he +1: SaylorTwift- Add evaluation results for GPQA, HLE (f146d97f42ba9b5b57823a9ab4b4a21422d69d01) Co-authored-by: Nathan Habib <SaylorTwift@users.noreply.huggingface.co>f710177 -
Add evaluation results on SWE-Bench Verified (#42)
he +1: nielsr- Add evaluation results on SWE-Bench Verified (7584eabf4ba1460402b4b7e95103d51acf724d2f) - Rename .eval_results/swe_bench_verified.yaml A to .eval_results/swe_bench_verified.yaml (f8ed508a03f6c8aadef1d53e02b553aab0446773) - Update .eval_results/swe_bench_verified.yaml (a2e5c2dbbd5128e04af0d7523d29f799b4b3f19f) - Update .eval_results/swe_bench_verified.yaml (6543d1bffd005fe14f52d269a39281c524bd63ea) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>1825d90
-
Create LICENSE-MODEL
heVerified signatureab0ddff
-
Update README.md
heVerified signature1248334
-
Update README.md
heVerified signature37649bd
-
Update README.md
heVerified signature3040bea -
Update README.md
heVerified signature2663734 -
Update README.md
xuebi3e16da2 -
Upload bench_12.png
Verified signaturec6c3633 -
update: tool calling guide
xuebi5fb9455
-
update configs
xuebi134ae7c -
Add files using upload-large-folder tool
Verified signature9ba43d5 -
Add files using upload-large-folder tool
Verified signatureafa2694 -
Add files using upload-large-folder tool
Verified signature8c436e5 -
update docs
xuebi6ff2856 -
Upload 13 files
Verified signatureupload readmeaa487ef -
initial commit
Verified signaturee838ad0