llama.cpp
mtmd: Add Vision Support for Minimax-M3
#25113
Merged

mtmd: Add Vision Support for Minimax-M3 #25113

ngxson merged 73 commits into ggml-org:master from timkhronos:MSA-Vision
timkhronos
danielhanchen Add preliminary MiniMax-M3 support
87cc29bc
timkhronos MiniMax-M3 vision tower (mmproj + clip graph)
53c81ddb
timkhronos Delete m3_vision_ref.py
f07f1d43
timkhronos Update clip.cpp
4a3206fd
timkhronos MSA
bbf1a808
timkhronos Update constants.py
09657dd7
timkhronos Update minimax.py
8fe2e015
timkhronos Cache creation. Working withotu flash attention
8c953a9c
timkhronos Added flash attention for sparse layers
ea6fbd6f
timkhronos Decomposed slow cpu OP into GPU + CPU ops. Massive speedup over long ctx
2e827590
timkhronos Rewrote indexer op to be cuda native. Modified flash attention to mat…
0152226b
timkhronos Implement sparse attention calc out of stock ops.
d1a04f7c
timkhronos Fix a cache allocation and cont issue
b1b174ee
timkhronos Fixed -fa auto crash, flagged debug spots
cea714a8
timkhronos Delete vocab.json
69c958d9
timkhronos Delete model.safetensors.index.json
afc09f1f
timkhronos Delete generation_config.json
f40d0f58
timkhronos Delete Minimax directory
714bbe93
timkhronos Handled multi stream case to fall back on Dense Attention
8136a9c6
timkhronos Development scaffolding cleanup. No functional change to the decode or
3ed9b18b
timkhronos Remove redundant comment from minimax-m3.cpp
79a6eecf
timkhronos Changed 3 Gelu Ops for vision into Gelu_erf ops
35990be6
timkhronos Assert that n_kv is multiple of 128
fa158507
timkhronos Rename MSA index tensors to indexer convention
eae55e2c
timkhronos Fix incorrect Assert
2bb7eeb3
timkhronos Review driven changes (#3)
d6f9426d
timkhronos Remove comment from conversion minimax.py
0a7b2dc5
timkhronos Remove whitespaces from constants.py
636143a0
timkhronos Tighten comment in minimax.py
7b7ff65e
timkhronos inherit MiniMax-M3 from MiniMax-M2
1cd03ef8
timkhronos drop dead text_config fallbacks
c70c8a93
timkhronos Add indexer writer methods
25199fa2
timkhronos Reuse LLM_FFN_SWIGLU_OAI_MOE
d54b4ebd
timkhronos Remove duplicate indexer setters, add only block_size/local_blocks, …
f57efcee
timkhronos Fix conversion error /gguf_writer.py
618e1454
timkhronos Update gguf-py/gguf/gguf_writer.py
5a24782d
timkhronos Update gguf-py/gguf/tensor_mapping.py
5dfe8387
timkhronos Update conversion/minimax.py
b99a8d5e
timkhronos Update conversion/minimax.py
56ba5416
timkhronos Remove whitespace in src/llama-kv-cache.cpp
044391ac
timkhronos Remove Whitespace in Update src/llama-model.h
c314fafe
timkhronos Remove whitespace in src/llama-hparams.h
5015a6bb
github-actions github-actions added model
github-actions github-actions added testing
github-actions github-actions added mtmd
github-actions github-actions added conversion
ggml-gh-bot
ngxson
ngxson requested changes on 2026-06-29
ngxson
timkhronos Update minimax_m3.cpp
768346ae
ngxson
timkhronos
ngxson
ngxson commented on 2026-06-29
ngxson
ngxson commented on 2026-06-29
ngxson
ngxson commented on 2026-06-29
timkhronos Rename minimax_m3.cpp to minimax-m3.cpp
e819f324
timkhronos Update CMakeLists.txt
492e357b
timkhronos Remove debug code from clip.cpp
0d64726f
timkhronos Update clip.cpp
98e15718
timkhronos Update comments in tools/mtmd/models/minimax-m3.cpp
9693dc28
timkhronos Merge branch 'master' into MSA-Vision
06833d28
timkhronos Permute Q/K at conversion, drop precomputed sin/cos
296f98b8
timkhronos
timkhronos Merge branch 'ggml-org:master' into MSA-Vision
11395a9e
timkhronos timkhronos force pushed to 11395a9e 74 days ago
timkhronos Log cache size on launch, block ctx shift, support prompt caching
07e607a3
timkhronos Merge branch 'ggml-org:master' into MSA-Vision
fce0d07b
timkhronos Update minimax-m3.cpp
96b30add
timkhronos Optimize implementation, add multi stream support.
e56d2f02
timkhronos set default cache type to F32
ad35386f
timkhronos Fix potential DSA double indexer cache allocation bug, only allocate…
5cea3a3b
timkhronos remove F16 downcasts in MSA attention, force F32 indexer score accum
962d0acc
timkhronos Add Minimax eos to llama vocab
498ef417
timkhronos Guard edge case where idx cache can become stale after a tail trim
09644b5d
timkhronos Change resize Pad to none, resize alg to Bicubic Pillow
f096bbb4
timkhronos Merge branch 'ggml-org:master' into MSA-Vision
59262637
timkhronos Merge branch 'master' into MSA-Vision
c995548f
timkhronos Review driven changes
e5695030
timkhronos Update llama-kv-cache.cpp
1209cbff
timkhronos Merge branch 'ggml-org:master' into MSA-Vision
0fbac4c1
ngxson
ngxson ngxson changed the title Add Vision Support for Minimax-M3 mtmd: Add Vision Support for Minimax-M3 50 days ago
ngxson Merge remote-tracking branch 'origin/master' into MSA-Vision
2c1be73c
ngxson rm unrotated pos_t
3c53a58b
ngxson fused rope w + pad
f1f0a870
ngxson rename merge --> merger for consistency
522d51de
ngxson add review skill for mtmd
ee3735fb
github-actions github-actions added documentation
ngxson graph should use hparams n_merge
a4c1cd83
ngxson ngxson marked this pull request as ready for review 50 days ago
ngxson ngxson requested a review 50 days ago
ngxson ngxson requested a review from CISC CISC 50 days ago
ngxson
ngxson approved these changes on 2026-07-26
timkhronos
bartowski1182
ngxson fix lint
dd0fe8b0
ngxson ngxson merged 3d1c3a89 into master 50 days ago
bartowski1182
timkhronos timkhronos deleted the MSA-Vision branch 46 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone