Skip to main content
MiniMax-M3.1-Flash is a native multimodal Mixture-of-Experts model for coding, agentic workflows, computer use, and cybersecurity, with approximately 428B total parameters, approximately 23B activated parameters per token, and a 1M-token model context limit. It keeps the MoE architecture of MiniMax-M3 and changes three things: sparse attention in every layer, quantization-aware training, and a bundled DSpark speculative-decoding draft. This page covers server-class self-hosting with SGLang, not consumer-device local inference.
Deployment status: Experimental. As reviewed on November 9, 2026, the SGLang Cookbook serves MiniMax-M3.1-Flash from the development image lmsysorg/sglang:dev-minimax-m31-flash. SGLang v0.5.23 includes the model support PR, but the Cookbook has not published a recipe for a tagged release image. Pin both the model revision and image digest below, validate them on your workload, and do not treat this recipe as a production SLA.

Status and reference baseline

The official sources do not publish a minimum host-memory requirement, peak GPU-memory measurement, minimum NVIDIA driver version, or complete production disk margin for this recipe. Confirm that the host driver supports the CUDA 13.4 runtime in the pinned image, and provision more disk than the weight repository size before deployment.
The complete weights must be loaded or sharded. “23B activated parameters” does not mean that the deployment only needs memory for 23B parameters. The Hugging Face file summary lists about 220B parameters because it counts each byte of packed FP4 expert weights, which holds two values, as one parameter.

Hardware configurations

The following table reports SGLang’s current support matrix. “Validated” means validated by the SGLang Cookbook, not independently benchmarked by MiniMax in this document. SGLang lists 288 GB per GPU for B300, 192 GB for B200, and 186 GB for GB200. At --mem-fraction-static 0.8 on 4 × B300, the KV pool holds about 10.4M tokens; the Low-Latency MonoKernel keeps its own copy of the routed experts (54.1 GiB per rank), which reduces that to about 6.5M. On ROCm, the NVFP4 checkpoint runs at TP 4 or lower and the server refuses a larger TP; on an 8-GPU AMD node, start two TP 4 servers on different ports behind a router. Use the SGLang configuration generator for the exact GB-series, B200, H200, or AMD command. Do not substitute those commands into this B300 baseline without revalidation.

Quickstart: 4 × B300

Before starting, verify that the host has enough free disk for the approximately 252 GB checkpoint, the container image, and caches. The commands below use GPUs 0 to 3; change the device list if those GPUs are in use.

1. Pull the pinned runtime

2. Verify GPU access

The output must list four B300 GPUs:

3. Start the server

The process listens on all interfaces inside the container, but -p 127.0.0.1:30000:30000 publishes it only on the host loopback interface. The first start downloads approximately 252 GB of weights and compiles the MSA sparse-attention and FlashInfer kernels, so it may take a long time. FMHA_SM100_ALLOW_JIT=1 allows the MSA kernels to compile; they are cached under /root/.cache/minfer, which the command maps to the host so that later starts reuse them. --speculative-algorithm DSPARK loads the draft from the checkpoint’s dspark/ subfolder at the same revision, so no draft path is needed. The log reports DSpark draft found in the target checkpoint's dspark/ subfolder.

4. Check readiness

Run this command in another terminal after the server log reports that it is ready:
A successful check exits with status 0. If it fails, keep the server process running and inspect its logs before sending inference requests. Then confirm that the NVFP4 KV-cache decode path uses the fast kernel:
The expected output contains nvfp4_to_fp8 backend=qmul4. Any other backend means that the server found a CUDA toolkit older than 13.4 and fell back to a slower path without failing.

5. Verify text generation

A successful response contains a non-empty choices[0].message.content. When the model emits a reasoning trace, SGLang returns it separately in choices[0].message.reasoning_content.

6. Verify thinking control

The response contains a non-empty choices[0].message.content and an empty or null choices[0].message.reasoning_content.

7. Verify image input

This example uses an image maintained by the SGLang project. In production, accept only trusted or allowlisted remote URLs, or send a Base64 data URI after validating the file at your gateway.

Capability boundary

The model card recommends temperature=1.0 and top_p=0.95.

Published performance data

SGLang reports the following measurements. These are upstream reference results, not MiniMax performance guarantees. The MonoKernel serves batch-size-1 steps only; larger batches take the standard path, so its throughput under concurrency is lower than the Balanced recipe’s. SGLang has not published latency or throughput for the Balanced reference recipe, peak GPU memory, host memory, or cold-start time. For agentic long-context deployments, the Cookbook links complete launch commands to their SemiAnalysis InferenceX runs. Benchmark your prompt lengths, output lengths, multimodal ratio, and concurrency before capacity planning.

Weights, cache, and offline deployment

The runtime downloads Hugging Face files to /root/.cache/huggingface in the container, mapped to ~/.cache/huggingface on the host by the Quickstart command. To prepare an offline copy, install the Hugging Face CLI on a connected machine and download the pinned revision:
Copy that directory to the deployment host, then start without Hub access. SGLang finds the DSpark draft in the local dspark/ subfolder:
An official ModelScope mirror is available at MiniMax/MiniMax-M3.1-Flash. The ModelScope page does not identify snapshots with the Hugging Face commit used by this baseline, so revalidate the files before substituting a mirror in a revision-pinned deployment. If a download is interrupted, rerun hf download with the same revision and directory; the client resumes from its cache. If loading reports missing or corrupt shards, verify available disk space and redownload the affected revision before changing runtime parameters.

Production and security

Keep the loopback binding for development. Before exposing the service to another host:
  • Set an unpredictable SGLang --api-key and send it as Authorization: Bearer <key>.
  • Terminate TLS at a reverse proxy or trusted ingress, restrict source networks with a firewall or security group, and add request-rate and concurrency limits.
  • Do not log API keys, full prompts, Base64 media, or model outputs unless your data policy explicitly permits it.
  • Reject arbitrary remote media URLs at the gateway. Apply a domain allowlist, block private and link-local destinations, limit redirects, download time, byte size, image pixels, and video duration, and validate media types before forwarding a request.
  • Monitor GPU memory, queue depth, request latency, error rates, process health, and disk utilization. A successful /health response alone is not a production readiness test.
SGLang accepts --api-key, but the current MiniMax-M3.1 Cookbook does not provide a complete remote-media security policy. Enforce those controls in your gateway and network layer. For multi-turn agent traffic, the Cookbook documents a hierarchical KV cache (--enable-hierarchical-cache --hicache-size <GB per rank>) that keeps evicted prefixes in host memory. When several replicas serve one endpoint, put the SGLang router in front with --policy cache_aware so that a session’s later turns reach the replica that holds its prefix. Size host memory before enabling HiCache: --hicache-size is per rank.

Troubleshooting

Other serving frameworks

The model card also lists the following paths. They are outside the validated scope of this page; follow the linked upstream recipe in full.

License and use restrictions

The weights are released under the MiniMax Community License. It grants use for non-commercial purposes. Commercial use requires displaying “Built with MiniMax M3.1-Flash” and either a one-time notice to MiniMax or, for products and services with more than 20 million US dollars in yearly revenue, prior written authorization. The license also lists prohibited uses, including any military purpose. Read the complete license and complete the applicable process before production or commercial use; this page is not legal advice.

Resources

SGLang MiniMax-M3.1 Cookbook

Review the upstream hardware matrix, configuration generator, Playground, PD disaggregation, and agentic long-context launches.

MiniMax-M3.1-Flash model card

Review the official weights, model capabilities, inference settings, and license.

MiniMax Sparse Attention

Review the MSA kernel source and Blackwell requirements.

Self-host MiniMax-M3

Compare the MiniMax-M3 deployment baseline.