koboldcpp/src
fairydreaming 16d222fc5e
model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018)
* llama : support for MiniMax-Text-01 model

* chore : renames to match the other MiniMax models

* model : add logits mask as MiniMax-Text-01 embeddings tensor has zero-valued embeddings for tokens >= 200032 that produce zero logits disrupting the token sampling process

* llama : replace hardcoded conditions with hparams.is_recr()

* model : used build_rs() for recurrent state management

* chore : code cleanup

* model : optimized MiniMax-Text-01 by removing the state tranpose operations

* chore : removed unnecessary ggml_cont() in MiniMax-Text-01 implementation

* llama : add generic logits mask graph input

* model : permuted diag_decay dimensions to avoid doing it inside MiniMax-Text-01 graph

* chore : code cleanup

* chore : code cleanup

* model : use token positions when calculating MiniMax-Text-01 decay tensors

* convert : add support for MiniMaxM1ForCausalLM as it seems to be the same as MiniMaxText01ForCausalLM

* chat : add jinja template for MiniMax-M1

Co-authored-by: QscQ <qscqesze@gmail.com>

* chore : code cleanup

* tests : MINIMAX_01-related fixes

* chore : silence Python lint errors

* vocab : remove unnecessary vocab type

* convert : update MiniMaxText01Model conversion to use yield when modifying tensors

* convert : suppress tokens with zero-valued embeddings during MiniMax-Text-01 conversion

* llama : removed logits mask - no longer necessary as token suppression is used instead

* model : use common functions to make MiniMax-Text-01 implementation more concise

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>

* model : use common functions to make MiniMax-Text-01 implementation more concise

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>

* convert : override non-working built-in chat template during conversion

* tests : skip arch MINIMAX_01 tests for WebGPU backend (it breaks again)

---------

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
Co-authored-by: QscQ <qscqesze@gmail.com>
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
2026-08-15 00:02:38 +02:00
..
models model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
CMakeLists.txt cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00
llama-adapter.cpp hparams : refactor hparams.n_layer (#24060) 2026-06-05 11:09:36 +03:00
llama-adapter.h llama : re-enable manual LoRA adapter free (#19983) 2026-03-18 12:03:26 +02:00
llama-arch.cpp model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-arch.h model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-batch.cpp llama-batch: fix allowed decreasing pos in a seq (#25449) 2026-07-08 19:24:34 +03:00
llama-batch.h llama-batch: add n_keep_tail in split_equal for recurrent models (#25278) 2026-07-08 15:55:19 +08:00
llama-chat.cpp chat : add Granite 4.1 chat template (#23518) 2026-05-28 13:13:33 +02:00
llama-chat.h chat : add Granite 4.1 chat template (#23518) 2026-05-28 13:13:33 +02:00
llama-context.cpp model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-context.h llama: refactor fused ops (#24646) 2026-07-08 18:18:09 +08:00
llama-cparams.cpp cparams : rename LLAMA_MAX_PARALLEL_SEQUENCES to LLAMA_MAX_SEQ (#14188) 2025-06-15 10:08:58 +03:00
llama-cparams.h llama : support multi-output backend sampling (#25532) 2026-08-10 16:58:56 +03:00
llama-ext.h mtmd: support Qwen3-TTS (note: breaking change to llama-tts binary) (#26254) 2026-08-04 17:26:15 +02:00
llama-grammar.cpp grammar : degrade max repetition >= 2000 to unbounded (#26613) 2026-08-05 07:39:10 -05:00
llama-grammar.h common/grammar : replace problematic backtracking regex [\s\S]* (#18342) 2026-01-03 16:02:43 -06:00
llama-graph.cpp llama : support multi-output backend sampling (#25532) 2026-08-10 16:58:56 +03:00
llama-graph.h llama : support multi-output backend sampling (#25532) 2026-08-10 16:58:56 +03:00
llama-hparams.cpp model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-hparams.h model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-impl.cpp llama : correct platform-independent loading of BOOL metadata (#21428) 2026-04-06 01:40:38 +02:00
llama-impl.h llama: refactor fused ops (#24646) 2026-07-08 18:18:09 +08:00
llama-io.cpp server : avoid checkpoint data host copies (#22558) 2026-05-02 18:03:25 +03:00
llama-io.h llama : add option to save memory in device buffers (#22679) 2026-05-05 06:35:07 +03:00
llama-kv-cache-dsa.cpp llama : allocate indexer cache only in "full" indexer layers (#26474) 2026-08-03 14:56:30 +02:00
llama-kv-cache-dsa.h llama : allocate indexer cache only in "full" indexer layers (#26474) 2026-08-03 14:56:30 +02:00
llama-kv-cache-dsv4.cpp DeepseekV4 MTP + DSpark (#25784) 2026-08-02 20:55:34 +08:00
llama-kv-cache-dsv4.h DeepseekV4 MTP + DSpark (#25784) 2026-08-02 20:55:34 +08:00
llama-kv-cache-iswa.cpp llama-batch: add n_keep_tail in split_equal for recurrent models (#25278) 2026-07-08 15:55:19 +08:00
llama-kv-cache-iswa.h DeepSeek V4 (#24162) 2026-06-29 16:58:51 +08:00
llama-kv-cache-msa.cpp model: M3: Move MSA into a new memory implementation (#26338) 2026-08-03 16:30:08 +03:00
llama-kv-cache-msa.h model: M3: Move MSA into a new memory implementation (#26338) 2026-08-03 16:30:08 +03:00
llama-kv-cache.cpp model : Granite-Switch Architecture (#25107) 2026-08-10 09:53:46 +02:00
llama-kv-cache.h model: M3: Move MSA into a new memory implementation (#26338) 2026-08-03 16:30:08 +03:00
llama-kv-cells.h kv-cache : avoid kv cells copies (#24277) 2026-06-07 21:42:54 +03:00
llama-memory-hybrid-iswa.cpp llama-batch: add n_keep_tail in split_equal for recurrent models (#25278) 2026-07-08 15:55:19 +08:00
llama-memory-hybrid-iswa.h llama + spec: MTP Support (#22673) 2026-05-16 20:06:23 +08:00
llama-memory-hybrid.cpp llama-batch: add n_keep_tail in split_equal for recurrent models (#25278) 2026-07-08 15:55:19 +08:00
llama-memory-hybrid.h llama + spec: MTP Support (#22673) 2026-05-16 20:06:23 +08:00
llama-memory-recurrent.cpp llama: various bug fixes (#26051) 2026-07-24 18:56:42 +02:00
llama-memory-recurrent.h llama : MTP clean-up (#23269) 2026-05-19 15:32:58 +03:00
llama-memory.cpp memory : correctly handle failure in apply() (#14438) 2025-06-30 18:03:03 +03:00
llama-memory.h llama : add Gemma4 MTP (#23398) 2026-06-07 20:50:54 +08:00
llama-mmap.cpp Update llama-mmap to use ftello/fseeko (#22497) 2026-04-30 14:17:52 -07:00
llama-mmap.h llama: fix llama-model-saver (#20503) 2026-03-25 12:53:16 +02:00
llama-model-loader.cpp ggml : recurrent state rollback for ggml_ssm_scan (#26623) 2026-08-14 17:20:40 +03:00
llama-model-loader.h model : allow reshape of tensors during load (#26531) 2026-08-04 09:06:44 +03:00
llama-model-saver.cpp model: Muse Glimmer Support (#26841) 2026-08-10 13:07:27 +02:00
llama-model-saver.h llama: fix llama-model-saver (#20503) 2026-03-25 12:53:16 +02:00
llama-model.cpp model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-model.h model : add support for MiniMaxText01ForCausalLM and MiniMaxM1ForCausalLM (#27018) 2026-08-15 00:02:38 +02:00
llama-quant.cpp llama : load MTP tensors only if they are really used (#26296) 2026-07-31 14:57:02 +02:00
llama-quant.h llama : refactor src/llama.cpp (#10902) 2025-01-03 10:18:53 +02:00
llama-sampler.cpp llama : support multi-output backend sampling (#25532) 2026-08-10 16:58:56 +03:00
llama-sampler.h llama : support multi-output backend sampling (#25532) 2026-08-10 16:58:56 +03:00
llama-vocab.cpp vocab : validate plamo2 byte tokens (#26511) 2026-08-04 11:40:02 +03:00
llama-vocab.h Add support for Laguna XS.2 & M.1 (#25165) 2026-07-22 09:54:08 +08:00
llama.cpp llama : allow virtual igpu devices (#26953) 2026-08-14 15:14:19 +03:00
unicode-data.cpp server : better security control for public deployments (#9776) 2024-10-08 13:27:04 +02:00
unicode-data.h llama : reduce compile time and binary size (#9712) 2024-10-02 15:49:55 +02:00
unicode.cpp unicode,test: add Qwen3.5 non-backtracking tokenizer handler and regr… (#22110) 2026-05-14 11:03:40 +02:00
unicode.h vocab: fix Gemma4 tokenizer (#21343) 2026-04-03 10:33:03 +02:00