Run this model with HF Jobs
Run MiniMaxAI/MiniMax-M2.5 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/MiniMaxAI/MiniMax-M2.5. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/MiniMaxAI/MiniMax-M2.5 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/MiniMaxAI/MiniMax-M2.5. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/MiniMaxAI/MiniMax-M2.5 with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
GGUFs working well on ik/llama.cpp!
I released some GGUFs for both mainline and ik_llama.cpp and the model seems to be performing well in my limited opencode testing down below 4bpw even:
https://huggingface.co/ubergarm/MiniMax-M2.5-GGUF
Nice size model and congrats on the release! Happy Lunar New Years!
thank you!
I put some speed benchmarks for full offload on 96GB VRAM and 128k context here: https://www.reddit.com/r/LocalLLaMA/comments/1r40o83/comment/o58rg7k/
This model is a bit heavy on context memory usage, so quantize kv-cache with -ctk q8_0 -ctv q8_0 or more advanced options on ik_llama.cpp.
I put some speed benchmarks for full offload on 96GB VRAM and 128k context here: https://www.reddit.com/r/LocalLLaMA/comments/1r40o83/comment/o58rg7k/
This model is a bit heavy on context memory usage, so quantize kv-cache with
-ctk q8_0 -ctv q8_0or more advanced options on ik_llama.cpp.
Do you see some kind of threshold from where agentic for like openclaude results deteriorate hard? Will the IQ5_K work good with openclaude you think?
Do you see some kind of threshold from where agentic for like openclaude results deteriorate hard?
When you say "deteriorate" do you mean speed of output, or quality of output? I've heard one rumor that this model may begins to output worse quality after ~32k context, but not sure where that originated and in practice it seems to be able to keep going.
In terms of speed, my benchmark shows how the speed falls off with longer context. All models do this to varying degrees depending on the hardware, inference kernels, and extra stuff like kv-cache quantization.
Will the IQ5_K work good with openclaude you think?
Definitely! I've tried it with opencode successfully myself, thought i've wanted to check out oh-my-pi which supposedly has a very slim initial prompt so doesn't blow through 12k context just to get started.
I just got a report it is working well at very long context, fwiw, take a look: https://huggingface.co/ubergarm/MiniMax-M2.5-GGUF/discussions/10#6990bb93d7898314b1316aff
