Sakura MiniMax-M3.1-Flash Q4_K_M GGUF

CPU requantization of the official MiniMax-M3.1-Flash hybrid NVFP4/MXFP8 checkpoint, using llama.cpp's standard mixed-type Q4_K_M policy. This is not a quantization from an unquantized BF16 checkpoint. No importance matrix or expert pruning is applied.

Runtime requirement: use the included runtime.patch with llama.cpp revision 970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc. These files use the explicit architecture identifier minimaxm31_sakura; unchanged stock runtimes reject it. M3.1 has sparse attention in all 60 layers, including its first three dense-MLP layers. The patch preserves that distinction in tensor loading, indexer KV caching and execution. A generic older M3 runtime must not silently substitute full attention in those layers.

Size comparison

The original 48 main safetensors shards total 250,116,419,880 bytes. The original DSpark file adds 2,301,867,426 bytes. The original source is already quantized: NVFP4 routed experts, MXFP8 attention paths, and retained BF16/F32 tensors.

Checkpoint Main GGUF shards Main language files, GB Including F16 projector and original DSpark, GB Change vs official main + DSpark
Official hybrid safetensors + DSpark โ€” โ€” 252.418 โ€”
Sakura Q2_K 4 155.983 160.017 -36.61%
Sakura Q3_K_M 5 203.571 207.605 -17.75%
Sakura Q4_K_M 6 258.095 262.129 +3.85%
Sakura Q5_K_M 7 302.930 306.965 +21.61%

GB = 10^9 bytes. Auxiliary-file totals include the same 1.732-GB F16 projector and 2.302-GB unchanged DSpark file in each release. Small JSON, license and runtime source files are excluded. GGUF main sizes include their metadata. The official main checkpoint includes the vision tower, which is separated into mmproj here. Q4/Q5 may be larger than the released low-precision source; increasing stored precision does not recover information lost during the source's quantization. These are file sizes, not complete RAM/VRAM requirements or speed/quality results.

Released files

File Bytes SHA256
Sakura-MiniMax-M3.1-Flash-Q4_K_M-00001-of-00006.gguf 47,181,052,736 5d56bc32217968723fef55cc92ae8a21e6d56d39919a011dc7e89db322e9c4f4
Sakura-MiniMax-M3.1-Flash-Q4_K_M-00002-of-00006.gguf 47,133,035,264 d8d6724fc2c7571d7904fb9137696bac6760f2adf5dab94c16d9b52107c520df
Sakura-MiniMax-M3.1-Flash-Q4_K_M-00003-of-00006.gguf 47,741,164,896 663268a70b78e665a24427f948e049fff448840bcebe76fd3aa64287ddfeb1f3
Sakura-MiniMax-M3.1-Flash-Q4_K_M-00004-of-00006.gguf 46,606,396,256 89b8679d015789c0a0c403e5c5146e837f18faebd5b6269d64ad72b3534cd1c7
Sakura-MiniMax-M3.1-Flash-Q4_K_M-00005-of-00006.gguf 47,229,250,400 b4f14cde67a982aae58925f429d5e9c36f997c52f0673d0f6336654bcb2f8e80
Sakura-MiniMax-M3.1-Flash-Q4_K_M-00006-of-00006.gguf 22,204,321,728 5860796d9f61a13be46cd6f6a3e2801f3c9450175c16764b941481c752b4bc94
MiniMax-M3.1-Flash-mmproj-f16.gguf 1,732,284,000 022200a62d8821a4350bdd059b47446d7c6aebd0cdd7865db1577129543bf107
dspark/model-dspark-00001.safetensors 2,301,867,426 a27aed923fa17697997b30f44da0cd098460a60fee06498175e6d0c880308b69

Download every main GGUF shard and keep the names together; load the first shard. Each main shard is under 48 GB. SHA256SUMS records all released weight files. build-manifest.json records pinned source checksums, all target tensor types, every output tensor checksum, independent stream checksums and native Xet verification.

Source and preserved components

Property MiniMax-M3.1-Flash
Developer MiniMax
Total / active parameters Approximately 428B / 23B per token, developer-stated
Layers 60, all using MiniMax Sparse Attention
Dense / MoE MLP layers 3 leading dense MLP layers, followed by 57 MoE layers
Routed experts 128 per MoE layer; 4 selected per token, plus shared expert
Configured context 1,048,576 tokens
Modalities Text, image and video input; text output
Main output tensors 1188 (Q6_K: 88, Q4_K: 505, F32: 595)

The standard upstream MiniMax vision converter produces the separate F16 projector. The complete original DSpark safetensors checkpoint, config and index are copied unchanged. DSpark execution is not integrated into this patched llama.cpp runtime; the original files are retained for compatible serving implementations and future integration. No speculative speedup is claimed.

Provenance and construction

  • Source revision: 54e4e69dfc452b1e94a426c24a4fdeeaa8e3ad5e.
  • NVFP4 source weights are decoded with per-group FP8 scales and the released global-scale convention; MXFP8 uses E4M3 weights and UE8M0 block scales. Conversion uses BF16/F32 intermediates selected by the pinned upstream converter.
  • Every complete source shard is SHA256-verified before its payload is used. Tiny verified scale/norm tensors are cached in RAM to avoid repeatedly reloading unrelated large shards.
  • Main expert matrices are encoded one expert at a time; embeddings are encoded in bounded row blocks. No full decoded model or full output GGUF is materialized on disk.
  • Full-model tensor type assignments match the unchanged native quantization planner. Real-row decoder checks match independent native ggml/PyTorch references. The patched all-sparse runtime passes a small synthetic CPU prefill/decode check. Those checks do not establish full-model response quality; no new benchmark scores are claimed.
  • All final source/producer/upload checks must pass before an atomic model commit is published. An independent finalizer can recover a completed upload from its checksum-protected provenance checkpoint.

Build the compatible runtime and run

Use build-runtime.sh alongside runtime.patch. It checks out the pinned upstream revision and applies the included patch. CPU is the default; supported GPU backends can be selected when building for your own hardware. No model weights are downloaded by the runtime build script.

bash build-runtime.sh
./minimax-runtime-build/bin/llama-server -m Sakura-MiniMax-M3.1-Flash-Q4_K_M-00001-of-00006.gguf --mmproj MiniMax-M3.1-Flash-mmproj-f16.gguf -ngl 0 -c 32768 -fa on --parallel 1 --jinja --temp 1.0 --top-p 0.95

Flash Attention and a supported stream layout are required for this M3.1 path; unsupported settings fail instead of silently using full attention. Omit --mmproj for text-only use. Set context and offloading for available memory; the source's maximum context is not a claim that it fits a particular device. Preserve the original chat template and returned reasoning content. Do not add guessed DSpark flags to this runtime.

License and attribution

Original model: MiniMax-M3.1-Flash, Copyright (c) 2026 MiniMax. This redistribution retains the MINIMAX COMMUNITY LICENSE, including its attribution, commercial-use and prohibited-use conditions. It is not Apache-2.0 or MIT model licensing. Read LICENSE before use. llama.cpp runtime code is separately covered by its upstream MIT license. Sakura identifies this quantization and distribution, not original model training.

ไธญๆ–‡่ฏดๆ˜Ž๏ผˆ็‚นๅ‡ปๅฑ•ๅผ€๏ผ‰

Sakura MiniMax-M3.1-Flash Q4_K_M

ๆœฌไป“ๅบ“ๅฏน MiniMax ๅฎ˜ๆ–นๅ‘ๅธƒ็š„ NVFP4 ไธ“ๅฎถๆƒ้‡ไธŽ MXFP8 ๆณจๆ„ๅŠ›ๆƒ้‡ๆททๅˆๆฃ€ๆŸฅ็‚น่ฟ›่กŒ CPU ๅ†้‡ๅŒ–๏ผŒ้‡‡็”จๆ ‡ๅ‡† Q4_K_M ๆททๅˆ็ฒพๅบฆ็ญ–็•ฅ๏ผŒๆœชไฝฟ็”จ imatrix๏ผŒๆœช่ฃๅ‰ชไธ“ๅฎถใ€‚ๅนถ้ž็”ฑๆœช้‡ๅŒ–็š„ BF16 ๆฃ€ๆŸฅ็‚น็”Ÿๆˆใ€‚ไธป่ฏญ่จ€ๆƒ้‡ๅˆ่ฎก 258.095 GB๏ผŒๅˆ†ไธบ 6 ไธช GGUF ๅˆ†็‰‡๏ผŒๆฏ็‰‡ๅฐไบŽ 48 GBใ€‚ๅฆ้™„ F16 ่ง†่ง‰ๆŠ•ๅฝฑๅ™จๅŠไฟๆŒๅŽŸๆ ท็š„ DSpark ๆƒ้‡ใ€้…็ฝฎไธŽ็ดขๅผ•ใ€‚

ๅฟ…้กปไฝฟ็”จๆœฌไป“ๅบ“้™„ๅธฆ็š„่ฟ่กŒๆ—ถ่กฅไธๅŠๆŒ‡ๅฎš llama.cpp ็‰ˆๆœฌ 970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedcใ€‚ ๆ–‡ไปถๆžถๆž„ๆ ‡่ฏ†ไธบ minimaxm31_sakura๏ผŒๆœชๆ‰“่กฅไธ็š„ๅŽŸ็‰ˆ่ฟ่กŒๆ—ถไผšๆ‹’็ปๅŠ ่ฝฝใ€‚M3.1 ็š„ๅ…จ้ƒจ 60 ๅฑ‚ๅ‡ไฝฟ็”จ็จ€็–ๆณจๆ„ๅŠ›๏ผŒๅŒ…ๆ‹ฌๅ‰ไธ‰ไธช็จ ๅฏ† MLP ๅฑ‚๏ผ›ไธ่ƒฝๆฒฟ็”จๆ—ง็‰ˆ M3 ๅฏน่ฟ™ไธ‰ๅฑ‚็š„ๅ…จๆณจๆ„ๅŠ›ๅ‡่ฎพใ€‚่กฅไธๅŒๆ—ถไฟฎๆญฃ็ดขๅผ•ๅ™จๆƒ้‡ๅŠ ่ฝฝใ€KV ็ผ“ๅญ˜ๅˆ†้…ๅ’Œๆ‰ง่กŒ่ทฏๅพ„๏ผŒๅนถ่ฆๆฑ‚ๅผ€ๅฏ Flash Attentionใ€‚

ๅŽŸๅง‹ๆจกๅž‹็บฆ 4280 ไบฟๆ€ปๅ‚ๆ•ฐ๏ผŒๆฏไธช token ็บฆๆฟ€ๆดป 230 ไบฟๅ‚ๆ•ฐใ€‚ๅŒ…ๅซ 3 ไธช็จ ๅฏ† MLP ๅฑ‚ๅ’Œ 57 ไธช MoE ๅฑ‚๏ผŒๆฏไธช MoE ๅฑ‚ๆœ‰ 128 ไธช่ทฏ็”ฑไธ“ๅฎถ๏ผŒ้€‰ๆ‹ฉ 4 ไธชๅนถไฝฟ็”จๅ…ฑไบซไธ“ๅฎถใ€‚ๆบ้…็ฝฎไธŠไธ‹ๆ–‡ไธบ 1,048,576 tokenใ€‚ไธป GGUF ไฟ็•™ 1188 ไธชๅผ ้‡ใ€‚ๆ–‡ไปถไฝ“็งฏไธๆ˜ฏๅฎŒๆ•ด่ฟ่กŒๅ†…ๅญ˜้œ€ๆฑ‚๏ผ›Q4/Q5 ๅฏ่ƒฝๆฏ”ๅŽŸๅง‹ไฝŽ็ฒพๅบฆๆบๆ›ดๅคง๏ผŒไนŸไธ่ƒฝๆขๅคๆบ้‡ๅŒ–ๅทฒๆŸๅคฑ็š„ไฟกๆฏใ€‚

ไธ‹่ฝฝๅ…จ้ƒจๅˆ†็‰‡ๅนถไฟๆŒๆ–‡ไปถๅ๏ผŒๅŠ ่ฝฝ็ฌฌไธ€ไธชๅˆ†็‰‡ๅณๅฏใ€‚ๅ›พ็‰‡ๅ’Œ่ง†้ข‘่พ“ๅ…ฅๅฆ้œ€ mmprojใ€‚ๅŽŸๅง‹ DSpark ๆ–‡ไปถไฟๆŒๅญ—่Š‚ไธๅ˜๏ผŒไฝ†ๆœฌ่กฅไธ็‰ˆ llama.cpp ๅฐšๆœช้›†ๆˆๅ…ถๆ‰ง่กŒ่ทฏๅพ„๏ผŒไธ่ƒฝๆฎๆญคๅฃฐ็งฐๆŽจๆต‹่งฃ็ ๅŠ ้€Ÿใ€‚ๅฏๅŠจๅ‘ฝไปค่ง่‹ฑๆ–‡้ƒจๅˆ†ใ€‚

ๆบ็‰ˆๆœฌไธบ 54e4e69dfc452b1e94a426c24a4fdeeaa8e3ad5eใ€‚ๆž„ๅปบๅ‰ๆฃ€ๆŸฅๅฎŒๆ•ดๆบๅˆ†็‰‡ SHA256๏ผ›ๆŒ‰ไธ“ๅฎถๅ’Œ่กŒๅ—ๆตๅผ็ผ–็ ๏ผ›็‹ฌ็ซ‹้ชŒ่ฏ่พ“ๅ‡บๆตใ€ๅŽŸ็”Ÿ Xet ๅŠ HF ๅทฒๆไบคๆ–‡ไปถ็š„ๆ ก้ชŒๅ€ผใ€‚็œŸๅฎž่กŒ่งฃ็ ไธŽๅŽŸ็”Ÿ ggml/PyTorch ๅ‚่€ƒไธ€่‡ด๏ผŒๅฎŒๆ•ดๅผ ้‡็ฑปๅž‹ไธŽๅŽŸ็”Ÿ่ง„ๅˆ’ๅ™จไธ€่‡ด๏ผŒๅฐๅž‹ๅˆๆˆ CPU ๆจกๅž‹ๅฏๅฎŒๆˆ prefill/decodeใ€‚่ฟ™ไบ›ๆž„ๅปบๆฃ€ๆŸฅไธไปฃ่กจๅฎŒๆ•ดๆจกๅž‹็š„ๅ›ž็ญ”่ดจ้‡่ฏ„ๆต‹๏ผ›ๆœฌไป“ๅบ“ไธๅฃฐ็งฐๆ–ฐ็š„่ดจ้‡ๆˆ–้€Ÿๅบฆๆˆ็ปฉใ€‚่ฏฆๆƒ…่ง SHA256SUMS ไธŽ build-manifest.jsonใ€‚

ๅŽŸๅง‹ๆจกๅž‹็‰ˆๆƒๅฑžไบŽ MiniMax๏ผŒ็ปง็ปญ้ตๅพช MINIMAX COMMUNITY LICENSEใ€‚่ฏท้˜…่ฏปๅ…ถ็ฝฒๅใ€ๅ•†ไธšไฝฟ็”จๅŠ็ฆๆญข็”จ้€”ๆกๆฌพ๏ผ›ๆจกๅž‹่ฎธๅฏ่ฏไธๆ˜ฏ Apache ๆˆ– MITใ€‚llama.cpp ่ฟ่กŒๆ—ถไปฃ็ ๅ•็‹ฌ้ตๅพชไธŠๆธธ MIT ่ฎธๅฏ่ฏใ€‚

Downloads last month
33
GGUF
Model size
426B params
Architecture
minimaxm31_sakura
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for mondk/MiniMax-M3.1-Flash-GGUF

Quantized
(31)
this model