Image-Text-to-Text
Transformers
Safetensors
minimax_m3_vl
multimodal
Mixture of Experts
agent
coding
video
conversational
custom_code
Eval Results
8-bit precision
mxfp8
Instructions to use MiniMaxAI/MiniMax-M3.1-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MiniMaxAI/MiniMax-M3.1-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MiniMaxAI/MiniMax-M3.1-Flash", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MiniMaxAI/MiniMax-M3.1-Flash", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("MiniMaxAI/MiniMax-M3.1-Flash", trust_remote_code=True, device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MiniMaxAI/MiniMax-M3.1-Flash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MiniMaxAI/MiniMax-M3.1-Flash" # 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-M3.1-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/MiniMaxAI/MiniMax-M3.1-Flash
- SGLang
How to use MiniMaxAI/MiniMax-M3.1-Flash 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-M3.1-Flash" \ --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-M3.1-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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-M3.1-Flash" \ --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-M3.1-Flash", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use MiniMaxAI/MiniMax-M3.1-Flash with Docker Model Runner:
docker model run hf.co/MiniMaxAI/MiniMax-M3.1-Flash
YAML Metadata Error:Invalid content in Eval Result file .eval_results/MiniMax-M3.1-Flash.yaml
Check out the documentation for more information.
Show details
Task ID "hle" does not match any task in dataset "cais/hle". Available: none
Download .eval_results/MiniMax-M3.1-Flash.yaml from MiniMaxAI/MiniMax-M3.1-Flash: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash/resolve/main/.eval_results/MiniMax-M3.1-Flash.yaml
- Command line
-
hf download hf://MiniMaxAI/MiniMax-M3.1-Flash/.eval_results/MiniMax-M3.1-Flash.yaml
-
curl -L -o MiniMax-M3.1-Flash.yaml https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash/resolve/main/.eval_results/MiniMax-M3.1-Flash.yaml
1.07 kB
| - dataset: | |
| id: harborframework/terminal-bench | |
| task_id: terminalbench_4 | |
| value: 38.1 | |
| date: "2026-10-17" | |
| source: | |
| url: https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash | |
| name: "MiniMax-M3.1-Flash model card" | |
| notes: "Codex 0.149.1 harness per the model card." | |
| - dataset: | |
| id: datacurve/deep-swe | |
| task_id: deep_swe | |
| value: 73.7 | |
| date: "2026-10-17" | |
| source: | |
| url: https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash | |
| name: "MiniMax-M3.1-Flash model card" | |
| notes: "DeepSWE 1.1, mini-SWE-agent 2.4.5 harness." | |
| - dataset: | |
| id: cais/hle | |
| task_id: hle | |
| value: 43.4 | |
| date: "2026-10-17" | |
| source: | |
| url: https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash | |
| name: "MiniMax-M3.1-Flash model card" | |
| notes: "Text-only subset, without tools." | |
| - dataset: | |
| id: agents-last-exam/agents-last-exam | |
| task_id: overall-pass-rate | |
| value: 29.6 | |
| date: "2026-10-17" | |
| source: | |
| url: https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash | |
| name: "MiniMax-M3.1-Flash model card" | |
| notes: "Official Overall setting per the model card." | |