llama.cpp
Add MiniMax-M3 (MSA: MiniMax Sparse Attention) support
#24908
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
64
Changes
View On
GitHub
Add MiniMax-M3 (MSA: MiniMax Sparse Attention) support
#24908
ngxson
merged 64 commits into
ggml-org:master
from
timkhronos:MSA
Add preliminary MiniMax-M3 support
87cc29bc
MiniMax-M3 vision tower (mmproj + clip graph)
53c81ddb
Delete m3_vision_ref.py
f07f1d43
Update clip.cpp
4a3206fd
MSA
bbf1a808
Update constants.py
09657dd7
Update minimax.py
8fe2e015
Cache creation. Working withotu flash attention
8c953a9c
Added flash attention for sparse layers
ea6fbd6f
Decomposed slow cpu OP into GPU + CPU ops. Massive speedup over long ctx
2e827590
Rewrote indexer op to be cuda native. Modified flash attention to mat…
0152226b
Implement sparse attention calc out of stock ops.
d1a04f7c
Fix a cache allocation and cont issue
b1b174ee
Fixed -fa auto crash, flagged debug spots
cea714a8
Delete vocab.json
69c958d9
Delete model.safetensors.index.json
afc09f1f
Delete generation_config.json
f40d0f58
Delete Minimax directory
714bbe93
timkhronos
requested a review
69 days ago
timkhronos
requested a review
from
JohannesGaessler
69 days ago
timkhronos
requested a review
from
CISC
69 days ago
timkhronos
requested a review
from
ggerganov
69 days ago
github-actions
added
model
github-actions
added
testing
github-actions
added
examples
github-actions
added
python
Handled multi stream case to fall back on Dense Attention
8136a9c6
Development scaffolding cleanup. No functional change to the decode or
3ed9b18b
Remove redundant comment from minimax-m3.cpp
79a6eecf
Changed 3 Gelu Ops for vision into Gelu_erf ops
35990be6
Assert that n_kv is multiple of 128
fa158507
github-actions
added
mtmd
github-actions
added
conversion
Rename MSA index tensors to indexer convention
eae55e2c
Fix incorrect Assert
2bb7eeb3
Review driven changes (#3)
d6f9426d
CISC
commented on 2026-06-28
Remove comment from conversion minimax.py
0a7b2dc5
Remove whitespaces from constants.py
636143a0
Tighten comment in minimax.py
7b7ff65e
inherit MiniMax-M3 from MiniMax-M2
1cd03ef8
drop dead text_config fallbacks
c70c8a93
Add indexer writer methods
25199fa2
Reuse LLM_FFN_SWIGLU_OAI_MOE
d54b4ebd
CISC
commented on 2026-06-28
Remove duplicate indexer setters, add only block_size/local_blocks, …
f57efcee
CISC
commented on 2026-06-28
Fix conversion error /gguf_writer.py
618e1454
Update gguf-py/gguf/gguf_writer.py
5a24782d
Update gguf-py/gguf/tensor_mapping.py
5dfe8387
Update conversion/minimax.py
b99a8d5e
Update conversion/minimax.py
56ba5416
CISC
commented on 2026-06-28
Remove whitespace in src/llama-kv-cache.cpp
044391ac
Remove Whitespace in Update src/llama-model.h
c314fafe
Remove whitespace in src/llama-hparams.h
5015a6bb
remove multimodal code upon maintainer request. Will be made as a sep…
c97a2ac8
Whitespace clean in tensor_mapping.py
fcb9ed2d
CISC
removed review request
62 days ago
CISC
removed
mtmd
Merge branch 'master' into MSA
51e7bf80
Merge branch 'ggml-org:master' into MSA
6b14feaa
Log cache size on launch, block ctx shift, support prompt caching
d2fe995d
Merge branch 'ggml-org:master' into MSA
9ea2aa12
Update minimax-m3.cpp
aa73ec39
Optimize implementation, add multi stream support.
cacc42f7
set default cache type to F32
6b61dd48
Fix potential DSA double indexer cache allocation bug, only allocate…
5cd1c193
remove F16 downcasts in MSA attention, force F32 indexer score accum
e99545c1
Add Minimax eos to llama vocab
f0201211
Guard edge case where idx cache can become stale after a tail trim
da2c1685
Merge branch 'ggml-org:master' into MSA
297a179c
ngxson
commented on 2026-07-24
Update llama-kv-cache.cpp
e53544b9
Merge branch 'master' into MSA
954598b9
Review driven changes
d6cc3375
Merge branch 'ggml-org:master' into MSA
8bfbead0
style fix
285df2dd
indexer hparams are required
a56fd294
ngxson
approved these changes on 2026-07-26
fix tests
296e8e40
fix lint
5d5ed01c
bartowski1182
approved these changes on 2026-07-26
ngxson
merged
b1d4c655
into master
35 days ago
timkhronos
deleted the MSA branch
30 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
bartowski1182
ngxson
CISC
JohannesGaessler
ggerganov
Assignees
No one assigned
Labels
model
testing
examples
python
conversion
Milestone
No milestone
Login to write a write a comment.
Login via GitHub