Instructions to use qtum/MiniMax-M3.1-Flash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use qtum/MiniMax-M3.1-Flash-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S # Run inference directly in the terminal: llama cli -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S # Run inference directly in the terminal: llama cli -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S # Run inference directly in the terminal: ./build/bin/llama cli -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Use Docker
docker model run hf.co/qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
- Llama new
- LM Studio
- Jan
- vLLM
How to use qtum/MiniMax-M3.1-Flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "qtum/MiniMax-M3.1-Flash-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "qtum/MiniMax-M3.1-Flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
- Ollama
How to use qtum/MiniMax-M3.1-Flash-GGUF with Ollama:
ollama run hf.co/qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
- Unsloth Desktop
- Pi
How to use qtum/MiniMax-M3.1-Flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use qtum/MiniMax-M3.1-Flash-GGUF with Docker Model Runner:
docker model run hf.co/qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
- Lemonade
How to use qtum/MiniMax-M3.1-Flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Run and chat with the model
lemonade run user.MiniMax-M3.1-Flash-GGUF-IQ1_S
List all available models
lemonade list
- Hermes Agent
How to use qtum/MiniMax-M3.1-Flash-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use qtum/MiniMax-M3.1-Flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "qtum/MiniMax-M3.1-Flash-GGUF:IQ1_S" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
MiniMax-M3.1-Flash GGUF
GGUF quantizations of MiniMaxAI/MiniMax-M3.1-Flash, made with llama.cpp.
Chinese version: README_zh.md
What this model is, in one paragraph
427 G parameters in the text model, 248 GB of weights, and
93.6% of that is routed experts. 60 layers; the first 3 are dense
(12,288-wide MLP), the remaining 57 are MoE with 128 routed experts each and 4
active per token plus one shared expert.
Attention is sparse (MSA): every layer carries an extra indexer projection that
picks which 128-token blocks to attend to. Everything outside the experts adds up to
16.0 GB. This shape drives every choice below.
The checkpoint is already mixed-precision on disk: dense layers are MXFP8 (E4M3 weights with 32-column E8M0 block scales) and routed experts are NVFP4 (two weights per byte, one FP8 scale per 16 values, plus one FP32 scale per expert).
These files are text-only. The upstream checkpoint also carries a vision tower β
a 32-layer CLIP encoder (hidden 1,280, patch 14) at 672Γ672, plus a projector and a
patch-merge module, 1.36 GB in 519 tensors. llama.cpp has no multimodal support for
this architecture yet, and an mmproj would be a separate file anyway. None of these
GGUFs contain a single vision tensor, so image input is not available. Use the
original weights if you need vision.
Why there is no Q8_0 / Q6_K / Q5_K_M / Q4_K_M
Because this checkpoint is already 4.66 bits per weight overall, with the routed experts β the part that decides quality β at 4.50 bits:
| Component | Size | bpw |
|---|---|---|
| routed experts (NVFP4, 57 layers) | 232.38 GB | 4.50 |
| attention + indexer (MXFP8) | 6.86 GB | 8.00 |
| embeddings + lm_head (BF16) | 4.92 GB | 16.00 |
| shared expert (MXFP8) | 3.33 GB | 8.00 |
| dense MLP, 3 layers (MXFP8) | 0.70 GB | 8.00 |
| router + e_score bias (F32) | 0.18 GB | 32.00 |
| norms (BF16) | 0.00 GB | 16.00 |
| text model total | 248.37 GB | 4.66 |
The standard high tiers all come out above that. Quantized from this same master with the same protected layers:
| Tier | Resulting size | Actual bpw |
|---|---|---|
| Q8_0 | 432,067 MiB | 8.50 |
| Q6_K | 336,649 MiB | 6.63 |
| Q5_K_M | 292,585 MiB | 5.76 |
| Q4_K_M | 251,113 MiB | 4.94 |
Q4_K_M β usually the "default" everyone reaches for β lands at 4.94 bpw, still
larger than the 4.66 bpw original. The reason is its own recipe: the
use_more_bits rule in llama-quant.cpp promotes 27 of the 57 MoE layers' ffn_down
experts from Q4_K to Q6_K, which turns 34,992 MiB of experts into 51,030 MiB and
buries whatever the 4-bit choice saved elsewhere.
Each of those four is therefore a bigger download that stores strictly less information about its inputs than what is already on disk: the 4-bit expert weights get dequantized and re-encoded, so the only thing added is a fresh round of quantization error on top of what NVFP4 already discarded.
The other direction is to leave the experts alone and re-quantize only the 6.4% that isn't experts. That is wasted effort in the opposite way: it touches the layers that matter least while the part that decides quality stays exactly as it was. So every tier here sits below the master's 4.66 bpw, with the non-expert layers held at Q8_0 so a low global type cannot drag them down.
If you want near-lossless, use the original weights.
Quantizations
| Tier | Size | bpw | Shards | PPL (wikitext-2) |
|---|---|---|---|---|
| BF16 master (reference, not in this repo) | 241.3 GiB | 4.863 | β | 149.4654 Β± 12.58751 |
IQ1_S |
90.4 GiB | 1.822 | 3 | 237.3906 Β± 19.29183 |
IQ2_XXS |
113.5 GiB | 2.287 | 3 | 148.1980 Β± 12.18542 |
IQ2_XS |
125.0 GiB | 2.519 | 3 | 144.0074 Β± 12.01536 |
dspark-β¦-Q8_0 (draft, any tier) |
1.9 GiB | β | 1 | β |
The master row is not a file in this repo. It is listed so the numbers above have a reference point: its expert layers are the factory NVFP4 weights with no further quantization, which is the accuracy ceiling available for this model. Note it is larger than every tier below β that is expected, and it is the whole point of the section above.
One caveat on that row's bpw: it is the BF16 master as converted for quantizing, not the upstream checkpoint. Converting expands the MXFP8 dense layers to BF16, so the master on disk carries 16-bit attention and shared-expert weights and measures 4.863 bpw β higher than the upstream 4.66 bpw figure quoted above. Both numbers are correct for their own object; they are not interchangeable. The tier rows below are measured on the published files themselves, tensor by tensor.
Every tier is imatrix-calibrated and protects the non-expert layers:
| Tensors | Type | Reason |
|---|---|---|
ffn_gate_inp (router) |
F32 | compressing it routes to the wrong experts |
ffn_*_shexp |
Q8_0 | the shared expert runs on every token |
indexer.k_proj / indexer.q_proj |
F32, unquantized | hard-excluded in llama-quant.cpp β they are tiny, and compressing them picks the wrong KV blocks |
indexer.{k,q}_norm |
F32 | norm weights are never quantized |
attn_q/k/v/output.weight |
Q8_0 | source weights are already MXFP8; compressing further gains nothing |
attn_*_norm |
F32 | same as above β norms stay in F32 |
ffn_{gate,up,down}.weight |
Q8_0 | only the 3 leading dense layers; anchored so it does not catch _exps/_shexp |
token_embd / output |
Q6_K | a global type would otherwise squeeze these hard |
The experts themselves β 171 tensors, blk.*.ffn_{gate,down,up}_exps.weight β take
the tier's nominal type. That is the only place the tiers differ. One exception, and
it is deliberate on llama.cpp's part: 7 of the 171 are raised to Q2_K rather than
the tier type. The i_ffn_down < n_ffn_down/8 rule in llama-quant.cpp bumps the
first eighth of the ffn_down experts up, so those 7 come out at 2 bit even in
IQ1_S. The same 7 layers in every tier β there is no tier where they are not raised.
The per-expert global scale that sits beside each expert weight (*.scale, one F32
per expert) is copied verbatim, never quantized: it is not a weight, it is multiplied
into every expert's output at inference time, and a missing one makes the model emit
garbage while still loading and running with no error at all.
Usage
# point at the first shard; llama.cpp finds the rest on its own
llama-cli -m MiniMax-M3.1-Flash-IQ2_XS-00001-of-0000N.gguf -ngl 99 -c 8192
Download all shards of a tier and point at -00001-of-*. Tiers that fit in one file
have no shard suffix.
-hf qtum/MiniMax-M3.1-Flash-GGUF:<tier> also works: llama.cpp matches the tier as a
full token ((^|[-./])<TAG>[.-]), so the -00001-of-0000N shard suffix matches fine.
It then pulls in the remaining shards itself. The tag is matched literally, so each of
IQ1_S, IQ2_XXS and IQ2_XS resolves to its own file β there is no
"nearest bit-width" fallback in tier selection. Explicit -m on the first shard is
still the least surprising option, and it is the only one that works if you renamed
the files.
Sizing notes
No tier fits on a single 80 GB card. As a rule of thumb, VRAM needed is the tier's
size plus roughly 5 GiB for KV cache and compute buffers at short context
(n_ctx=512; the KV cache itself is tiny here β 60 layers Γ 4 KV heads Γ 128 dim
is about 60 MiB at that length β so weights dominate entirely).
On 80 GB cards (~74 GiB usable each):
- IQ1_S β 2 cards, comfortably.
- IQ2_XXS / IQ2_XS β 2 cards is tight at long context; 3 is comfortable.
MoE inference only touches 4 of 128 experts per token, so you can also keep the
expert tensors on CPU and the attention layers on GPU. -ot 'ffn_.*_exps=CPU' does
that; it is much slower per token but lets a machine with enough RAM run these at all.
CPU is the ggml-cpu buffer type name β if you typo it, llama.cpp exits with
unknown buffer type and prints the valid list.
DSpark speculative decoding
The base model ships a DSpark draft module (5 layers, a dense FFN, a semi-
autoregressive Markov head, 2.3 GB in BF16). This repo exports it separately as
dspark-MiniMax-M3.1-Flash-Q8_0.gguf, one draft file serving every tier.
llama-cli -m MiniMax-M3.1-Flash-IQ2_XS-00001-of-0000N.gguf \
-md dspark-MiniMax-M3.1-Flash-Q8_0.gguf \
--spec-type draft-dspark -ngl 99 -ngld 99 -c 2048
Two things worth knowing:
-mdon its own does not turn it on. Without--spec-type draft-dsparkthe draft file loads, the log printsno implementations specified for speculative decoding, and the slot reports"speculative":falseβ you get plain decoding at full speed and no error.--spec-defaultdoes not help either; it only enablesngram-modand never touches the draft model.The
dspark-prefix is load-bearing. llama.cpp's sidecar table pairs a draft with its target by that filename prefix. Renaming it breaks-md <repo>auto-pairing.The draft must sit at the repo root, next to the tiers. The pairing code (
find_best_siblingincommon/download.cpp) skips any candidate whose directory depth differs from the main model's, so a draft underdspark/is silently not found β you get the same quiet fallback to plain decoding as above.
The draft has no NVFP4 experts (it is a dense 5-layer model), so it is simply Q8_0.
About the PPL numbers
Measured in-house with one fixed setup: wikitext-2 test, n_ctx=512, 12 chunks,
-ngl 99, and the master baseline run through the exact same command.
These numbers are only comparable within this table. Do not compare them against
PPL figures published by other repos β different corpora, chunk counts and
mixed-precision maps make absolute values meaningless across setups.
License
Released under the MiniMax Model Agreement, inherited from MiniMaxAI/MiniMax-M3.1-Flash β see its LICENSE. Quantized by qtum.
- Downloads last month
- 1,276
1-bit
2-bit
8-bit
Model tree for qtum/MiniMax-M3.1-Flash-GGUF
Base model
MiniMaxAI/MiniMax-M3.1-Flash