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
docs: rename MiniMax Agent to MiniMax Code
Browse filesThe product previously named MiniMax Agent is now MiniMax Code (same entry: https://agent.minimax.io/). This PR updates the product name in the README (badge/link text and mentions). Links are unchanged.
README.md
CHANGED
|
@@ -40,7 +40,7 @@ library_name: transformers
|
|
| 40 |
</div>
|
| 41 |
<div align="center" style="line-height: 1.2; font-size:16px;">
|
| 42 |
<a href="https://agent.minimax.io/" target="_blank" style="display: inline-block; margin: 4px;">
|
| 43 |
-
MiniMax
|
| 44 |
</a> |
|
| 45 |
<a href="https://platform.minimax.io/docs/guides/text-generation" target="_blank" style="display: inline-block; margin: 4px;">
|
| 46 |
⚡️ API
|
|
@@ -181,23 +181,23 @@ On the algorithm side, we continued using the CISPO algorithm we proposed at the
|
|
| 181 |
|
| 182 |
We will release a more comprehensive introduction to RL scaling soon in a separate technical blogpost.
|
| 183 |
|
| 184 |
-
## MiniMax
|
| 185 |
|
| 186 |
-
M2.5 has been fully deployed in MiniMax
|
| 187 |
|
| 188 |
-
We have distilled core information-processing capabilities into standardized Office Skills deeply integrated within MiniMax
|
| 189 |
|
| 190 |
Furthermore, users can combine Office Skills with domain-specific industry expertise to create reusable Experts tailored to specific task scenarios.
|
| 191 |
|
| 192 |
Take industry research as an example: by merging a mature research framework SOP (standard operating procedure) with Word Skills, the Agent can strictly follow the established framework to automatically fetch data, organize analytical logic, and output properly formatted research reports — rather than merely generating a raw block of text. In financial modeling scenarios, by combining an organization's proprietary modeling standards with Excel Skills, the Agent can follow specific risk control logic and calculation standards to automatically generate and validate complex financial models, rather than simply outputting a basic spreadsheet.
|
| 193 |
|
| 194 |
-
To date, users have built over 10,000 Experts on MiniMax
|
| 195 |
|
| 196 |
MiniMax itself has been among the first to benefit from M2.5's capabilities. Throughout the company's daily operations, 30% of overall tasks are autonomously completed by M2.5, spanning functions including R&D, product, sales, HR, and finance — and the penetration rate continues to rise. Performance in coding scenarios has been particularly notable, with M2.5-generated code accounting for 80% of newly committed code.
|
| 197 |
|
| 198 |
## How to Use
|
| 199 |
|
| 200 |
-
MiniMax
|
| 201 |
|
| 202 |
MiniMax API Platform: https://platform.minimax.io/
|
| 203 |
|
|
|
|
| 40 |
</div>
|
| 41 |
<div align="center" style="line-height: 1.2; font-size:16px;">
|
| 42 |
<a href="https://agent.minimax.io/" target="_blank" style="display: inline-block; margin: 4px;">
|
| 43 |
+
MiniMax Code
|
| 44 |
</a> |
|
| 45 |
<a href="https://platform.minimax.io/docs/guides/text-generation" target="_blank" style="display: inline-block; margin: 4px;">
|
| 46 |
⚡️ API
|
|
|
|
| 181 |
|
| 182 |
We will release a more comprehensive introduction to RL scaling soon in a separate technical blogpost.
|
| 183 |
|
| 184 |
+
## MiniMax Code: M2.5 as a Professional Employee
|
| 185 |
|
| 186 |
+
M2.5 has been fully deployed in MiniMax Code, delivering the best agentic experience.
|
| 187 |
|
| 188 |
+
We have distilled core information-processing capabilities into standardized Office Skills deeply integrated within MiniMax Code. In MAX mode, when handling tasks such as Word formatting, PowerPoint editing, and Excel calculations, MiniMax Code automatically loads the corresponding Office Skills based on file type, improving the quality of task outputs.
|
| 189 |
|
| 190 |
Furthermore, users can combine Office Skills with domain-specific industry expertise to create reusable Experts tailored to specific task scenarios.
|
| 191 |
|
| 192 |
Take industry research as an example: by merging a mature research framework SOP (standard operating procedure) with Word Skills, the Agent can strictly follow the established framework to automatically fetch data, organize analytical logic, and output properly formatted research reports — rather than merely generating a raw block of text. In financial modeling scenarios, by combining an organization's proprietary modeling standards with Excel Skills, the Agent can follow specific risk control logic and calculation standards to automatically generate and validate complex financial models, rather than simply outputting a basic spreadsheet.
|
| 193 |
|
| 194 |
+
To date, users have built over 10,000 Experts on MiniMax Code, and this number is still growing rapidly. MiniMax has also built multiple sets of deeply optimized, ready-to-use Expert suites on MiniMax Code for high-frequency scenarios such as office work, finance, and programming.
|
| 195 |
|
| 196 |
MiniMax itself has been among the first to benefit from M2.5's capabilities. Throughout the company's daily operations, 30% of overall tasks are autonomously completed by M2.5, spanning functions including R&D, product, sales, HR, and finance — and the penetration rate continues to rise. Performance in coding scenarios has been particularly notable, with M2.5-generated code accounting for 80% of newly committed code.
|
| 197 |
|
| 198 |
## How to Use
|
| 199 |
|
| 200 |
+
MiniMax Code: https://agent.minimax.io/
|
| 201 |
|
| 202 |
MiniMax API Platform: https://platform.minimax.io/
|
| 203 |
|