Instructions to use MiniMaxAI/MiniMax-M2.7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MiniMaxAI/MiniMax-M2.7 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MiniMaxAI/MiniMax-M2.7", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("MiniMaxAI/MiniMax-M2.7", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("MiniMaxAI/MiniMax-M2.7", 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 Settings
- vLLM
How to use MiniMaxAI/MiniMax-M2.7 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MiniMaxAI/MiniMax-M2.7" # 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.7", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MiniMaxAI/MiniMax-M2.7
- SGLang
How to use MiniMaxAI/MiniMax-M2.7 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.7" \ --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.7", "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.7" \ --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.7", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MiniMaxAI/MiniMax-M2.7 with Docker Model Runner:
docker model run hf.co/MiniMaxAI/MiniMax-M2.7
"Open source" my ass -- they are liars
"Open source" my ass. Since when does "open source" mean you need written permission from some company to use it commercially and slap their logo everywhere? That’s not open source. That’s source available with a leash.
The GNU project and the Free Software Foundation spent decades defining what “free software” actually means — freedom to run, study, modify, and redistribute, including commercially. This MiniMax license violates at least two of those freedoms right out of the gate.
Call it what it is: proprietary code with viewable weights. Stop muddying the term “open source” just because you put a model on HuggingFace. It’s misleading, and honestly, it’s getting tiresome.
If I need a lawyer to ship a product, it’s not open source. Period.
Call it what it is: a multi-million dollar model given to you for free research, and you are complaining about the packaging. 😁
holy shit stop complaining
I had a feeling when they delayed the release of the model on Hugging Face, but don't worry too much. Gemma 3 used a terrible license, so even though it was actually a great model, the attention it got was nowhere near proportional to its performance. That's why Google switched to the Apache license for Gemma 4. So, time will fix this—once they realize that the reputation they don't care about now will cause major trouble for adoption rates in the future.
its different than their past for sure, but why are you complaining about free? this doesn't hurt you in any way. You just complaining to complain
Call it what it is: a multi-million dollar model given to you for free research, and you are complaining about the packaging. 😁
Wrong, it is not given to me. Neither I "have it". That is the point of fake and deceptive statement that they are so called "open source". They are not.
Learn the terminology, and stop falsely representing:
The Open Source Definition – Open Source Initiative
https://opensource.org/osd
its different than their past for sure, but why are you complaining about free? this doesn't hurt you in any way. You just complaining to complain
But you are conflating "free" as in money, or cost, and free as in liberty.
The model is not free software-alike, not open source, the problem is not about them being proprietary. I don't mind, there are many proprietary models.
Problem is in their deceptive advertising it as "open source" while it is not.
If it is multi-million dollar model, then they can also be honest in their advertising, they can pay people to advertise honestly.
Calling it "open source" is an insult to huge free software community.
I think the problem here is the license being "Modified-MIT". I have never seen a closed-source model tagged like that and it's really confusing. They should rename the license to not include "MIT" in its name and make it clear what can and can't be done with this model.
i have tried everything they are not responding anywhere i want my money they are not responding what can i do now please anyone who can help my with this
No idea but you doxxed yourself. shahzaib
i want help regarding this
i want help regarding this
Not that i have any experience with minimax support but id recommend starting a thread in https://www.minimax.io/community/ i've seen good outcomes from people asking for refunds etc. ofcourse contacting them would be nr 1 if you havent been able to get an answer from then then no clue
Hi @Shahzaib9211 , I've sent an email to the address you provided with the refund request form. Please check your inbox and follow the instructions.
i have not got my refund please do something about it more than 7 days passed please help me out
DETAILS :
UID : 490774784862429187
Email: Shahzaibqazi59@gmail.com
Invoice number 1Y6N7NWX-0008
Receipt number 2666-9616
Date paid April 23, 2026
i have tried everything for my refund please help me out i want my money back you guys are not giving any response anywhere i have filled form still no refund given every information this is the last time i am posting otherwise i will consider you people scam i want my refund asap i have more people with me please don't make us do anything wrong i like Minimax i want to use it again only if i get my refund don't make this relation bad with your customer i request please give me my refund
DETAILS :
UID : 490774784862429187
Email: Shahzaibqazi59@gmail.com
Invoice number 1Y6N7NWX-0008
Receipt number 2666-9616
Date paid April 23, 2026
@ryanlee-dev can you backport the Minimax 3 licence to Minimax 2.7? it's a great license I would love to use Minimax m2.7 professionnaly
