MiniMax-M2.7 Heretic ARA: Q8 attention, Q4_K experts (GGUF)
Non-commercial license. MiniMax-M2.7 is licensed by MiniMax for non-commercial use only. Commercial use needs prior written permission from MiniMax: email api@minimax.io with the subject "M2.7 licensing". The full text is in
LICENSE, and it applies to this quant too.
This is a GGUF of the Heretic ARA abliteration of MiniMaxAI/MiniMax-M2.7: 229B total, about 10B active, 256 experts with top-8 routing, 62 layers, full attention.
- Q8_0: attention, router, embeddings and output.
- Q4_K: routed experts (
ffn_{gate,up,down}_exps).
The result is 131 GB (4.58 bits per weight), against 457 GB for BF16. Only 10B parameters are active per token, so this model is unusually quick on CPU for its size.
Files
MiniMax-M2.7-heretic-ara-Q8attn-Q4Kexp-0000N-of-00003.gguf, split for upload. Point llama.cpp at the first part.
How it was made
From Youssofal's BF16 GGUF (MiniMax-M2.7-abliterated-BF16), with llama.cpp 54cde7106:
llama-quantize --tensor-type "ffn_.*_exps=q4_K" MiniMax-M2.7-abliterated-BF16-00001-of-00010.gguf \
MiniMax-M2.7-heretic-ara-Q8attn-Q4Kexp.gguf Q8_0
No imatrix. The original model's 3 MTP modules aren't in the source GGUF, so they aren't in this one either.
Quality
Perplexity on wikitext-2 (test set, 40 chunks of 512 tokens): 7.741 ± 0.220. We haven't compared against BF16, because at 457 GB it doesn't fit in our RAM next to everything else.
Speed (measured)
2x EPYC 7402 (Rome, AVX2, 8 DDR4 channels per socket), in a Proxmox VM with 40 vCPUs per socket and NUMA passed through. CPU only, llama-bench, prompt 256 tokens and 64 generated:
| setup | threads | prompt tok/s | generation tok/s |
|---|---|---|---|
1 socket (numactl --cpunodebind=0 --membind=0) | 24 | 49.2 | 11.7 |
2 sockets, numactl --interleave=all | 48 | 71.8 | 13.1 |
| 2 sockets, interleave | 64 | 67.7 | 12.8 |
2 sockets, llama.cpp --numa distribute | 48 | 74.7 | 9.2 |
| 2 sockets, interleave (oversubscribed) | 80 | 56.9 | 8.3 |
Use one thread per physical core. Going past that onto SMT siblings costs a lot: 80 threads on 48 cores is 37% slower at generation than 48. On a two-socket box, interleave the memory; --numa distribute gives slightly faster prompts and much slower generation. The weights were loaded into RAM with no mmap (-lm none), so numactl decides where they live.
Running it
numactl --interleave=all llama-server -m MiniMax-M2.7-heretic-ara-Q8attn-Q4Kexp-00001-of-00003.gguf \
-t 48 -lm none -c 32768 --jinja
You need about 135 GB of free RAM plus your context. Set -t to your physical core count. On one socket, use numactl --cpunodebind=0 --membind=0 instead.
We haven't measured it with a GPU yet. -ngl 99 -ncmoe 99 should put the Q8 attention on the card (only a few GB) and keep the experts in RAM, which normally speeds up prompts.
Credits and license
- Base model: MiniMax, under the MiniMax non-commercial license (
LICENSE, copied unchanged). - Heretic ARA abliteration and BF16 GGUF: Youssofal.
- llama.cpp.
- This quant: AnubysIII. Shared free of charge for non-commercial use, under MiniMax's terms.
This model has had its refusals removed. You are responsible for how you use it, including MiniMax's prohibited-use appendix.