Skip to content

model: add MiniMax-M3.1 - #320

Open
danielhanchen wants to merge 470 commits into
base/upstream-08c252e22from
minimax-m31
Open

danielhanchen wants to merge 470 commits into
base/upstream-08c252e22from
minimax-m31

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Adds MiniMax-M3.1-Flash: https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash

  • Converter for the mixed MXFP8 + NVFP4 checkpoint: routed experts stay native NVFP4 with a per-expert 1/global_scale tensor (or are dequantized exactly to BF16 / F16 / F32 / Q8_0 with --outtype, --fp8-as-q8 for Q8_0 dense weights); MXFP8 tensors decode exactly
  • Sparse attention (MSA) on every layer, including the dense-lead layers: a layer runs MSA iff it carries indexer tensors, so MiniMax-M3 GGUFs behave exactly as before
  • MSA batch path chunked over tokens so no intermediate reaches 2^31 elements (large prompts with a large -ub)
  • BPE tokenizer applies tokenizer.ggml.normalizer.nfc like the Unigram one already does (M3.1 declares an NFC normalizer); GGUFs without the key are unaffected
  • DSpark speculative drafter: DSparkMiniMaxDraftModel converter, swigluoai in dflash.cpp and per-layer target taps
  • Fix: the Gemma 1 + w norm add runs in F32, so F16 sources no longer lose the low bits of w

Tested against transformers in float64 with exact dequantization, on fixtures with the real tokenizer and storage formats: mean KL 5.8e-7 (BF16 source) and 5.6e-7 (NVFP4 + MXFP8), top-1 100%; the MiniMax-M3 layout gives 1.8e-6. The tokenizer matches HF on 3,221 documents and 605 rendered chats. On the real weights, the native NVFP4 GGUF agrees with a reference GPU implementation on 95.5% to 99.1% of top-1 tokens over its own greedy continuations (chat, math, code), and greedy decoding with the DSpark drafter is identical to plain greedy. MiniMax-M3 and MiniMax-M2 GGUFs convert byte-identically and give bitwise-identical logits on this branch. GGUFs: https://huggingface.co/unsloth/MiniMax-M3.1-Flash-GGUF

Run with llama-server -m MiniMax-M3.1-Flash.gguf --jinja -fa on -np 1 (sparse attention needs one slot or --no-kv-unified); for DSpark add --spec-type draft-dspark -md MiniMax-M3.1-Flash-DSpark-BF16.gguf --spec-draft-p-min 0.

The branch is based on upstream b11835, after the BPE tokenize() rewrite in ggml-org#30974.

AI Usage

Used Claude and Local Models for testing, iteration and code design - manual verification of model / PR usage

@danielhanchen
danielhanchen requested a review from CISC as a code owner October 23, 2026 13:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T13:40:58.551126Z a9a210a PR opened
🔒 Security Review ✅ Completed 2026-10-23T13:35:21.037643Z a9a210a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a9a210a1ea

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread conversion/minimax.py Outdated
raise ValueError(f"MiniMax DSpark: scale {name!r} has no weight")
w = self.model_tensors[weight_name]
s = self.model_tensors.pop(name)
self.model_tensors[weight_name] = lambda w=w, s=s: dequant_mxfp8(w(), s())

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mark dequantized DSpark weights for Q8_0

When converting the new DSpark checkpoint with --fp8-as-q8, this override dequantizes each MXFP8 weight but never adds weight_name to _fp8_dequantized. ModelBase.tensor_force_quant() only selects Q8_0 for names in that set, so the CLI option silently writes these weights in the inferred F16/BF16 type instead; add the same bookkeeping used by MiniMaxM3Model.dequant_model().

Useful? React with 👍 / 👎.

Comment thread src/llama-vocab.cpp
try {
std::string canonical;
canonical.reserve(text.size());
for (const uint32_t cpt : unicode_cpts_normalize_nfc(unicode_cpts_from_utf8(text))) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Detect malformed UTF-8 before NFC normalization

For an NFC-enabled BPE vocabulary, malformed UTF-8 never reaches the intended catch path because unicode_cpts_from_utf8() catches invalid sequences internally and substitutes U+FFFD. The new normalizer therefore replaces raw invalid bytes before byte-level BPE processes them, whereas the previous tokenizer preserved and tokenized those bytes, so non-UTF-8 prompt data now changes tokenization despite the stated fallback.

Useful? React with 👍 / 👎.

Comment thread conversion/minimax.py Outdated
return self._nvfp4_pack_np(t[0], t[1])
w = self._dequant_nvfp4_eager(t[0], t[1], t[2])
# torch's float -> bf16 / f16 casts round to nearest even, like gguf.quants
return w.to(self._DEQUANT_RAW[self.ftype][1]).contiguous().view(torch.uint8).numpy()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Byte-swap raw expert values for big-endian GGUF

When --bigendian is used with an explicit F32 or F16 output type, this converts the expert values to typed Torch data and then exposes them to GGUFWriter as uint8. The writer's endian conversion consequently performs a one-byte byteswap, leaving the little-endian multi-byte values unchanged while marking the GGUF as big-endian, so all routed-expert weights are corrupted on load. Preserve a typed NumPy representation or explicitly swap each 2/4-byte value before passing the raw buffer.

Useful? React with 👍 / 👎.

Comment thread conversion/minimax.py Outdated
Comment on lines +321 to +323
if m is not None and (self._nvfp4_native or self.ftype in self._DEQUANT_RAW):
experts.setdefault((int(m.group(1)), m.group(3)), {})[int(m.group(2))] = base
continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject fused experts until MiniMax-M3 can load them

With --outtype q8_0 --fuse-gate-up-exps, Q8_0 is not in _DEQUANT_RAW, so the new packed experts fall through to the inherited conversion path, where the gate and up tensors are replaced by one ffn_gate_up_exps tensor. The MiniMax-M3 tensor loader still requires separate ffn_gate_exps and ffn_up_exps, and its graph passes no fused tensor to build_moe_ffn, so the resulting GGUF fails to load; reject this option combination or add fused-expert loader and graph support.

Useful? React with 👍 / 👎.

danielhanchen added a commit that referenced this pull request Oct 25, 2026
@danielhanchen
danielhanchen changed the base branch from base/upstream-f64a49819 to base/upstream-b3fa69955 October 25, 2026 14:31
danielhanchen added a commit that referenced this pull request Oct 25, 2026
pr-set: repin Inkling, #298 and #320 onto b11871
@danielhanchen
danielhanchen changed the base branch from base/upstream-b3fa69955 to master October 25, 2026 23:32
@danielhanchen danielhanchen changed the title model : MiniMax-M3.1 (MXFP8 + NVFP4 checkpoint conversion, sparse attention on the dense-lead layers, DSpark draft, BPE NFC) model: add MiniMax-M3.1 Oct 26, 2026
@danielhanchen
danielhanchen changed the base branch from master to base/upstream-cf34d3113 November 8, 2026 15:53
NilayYadav pushed a commit to NilayYadav/llama.cpp that referenced this pull request Nov 9, 2026
NilayYadav pushed a commit to NilayYadav/llama.cpp that referenced this pull request Nov 9, 2026
@danielhanchen
danielhanchen changed the base branch from base/upstream-cf34d3113 to base/upstream-08c252e22 November 19, 2026 16:07
angt and others added 9 commits November 25, 2026 14:59
* llama : honor metaspace_prepend_scheme for SPM

This fixes chat prompts for Nanbeige4.3-33B

Signed-off-by: Adrien Gallouët <angt@huggingface.co>

* Add global escaped_space

Signed-off-by: Adrien Gallouët <angt@huggingface.co>

---------

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
* ggml : bump version to 1.1.0

* authors : update
[no ci]
…ames (otherwise web interface gets Error 500) (ggml-org#33037)

* ready for PR

* addressing review comments
…3038)

* vocab : implement Metaspace prepend_scheme always for BPE

* Drop test-tokenizer-mmbert
* llama.cpp : bump version to 1.1.0

* authors : update
…33002)

* ggml-openvino: write back consumed in-place nodes of op-test graphs

On the naive path every node of an op-test graph is a model output,
except an in-place node that another node reads: it got no output, so
its destination buffer was never written. GATED_DELTA_NET_CACHE_FUSION
copies the final state into the cache and then reads the copy, so the
cache kept its old contents.

Write such a node back through its view_src, as is already done when
nothing reads it. Model graphs are unchanged.

* ggml-openvino: keep the rest of the buffer in a partial in-place FILL

An in-place FILL on a view into part of a larger buffer produced only
the filled values. Its output stands for the whole in-place source, so
the write-back put those values at the start of the buffer and not at
the view's offset.

For a contiguous view with a static shape, build the whole buffer: the
elements before the view, the filled values, then the elements after
it. Add NodeContext::get_inplace_op_src() to detect the in-place case.

* ggml-openvino: fix softplus precision for large negative inputs

softplus was computed as relu(x) + log(1 + exp(-|x|)). When exp(-|x|)
is below the precision of 1 + exp(-|x|), the log returns 0 or one ulp,
so for x below about -16 in f32 the result was 0 or far off. The
SOFTPLUS test case with inputs in [-16.6, -16] fails on CPU and GPU.

Compute log1p(y) for y = exp(-|x|) with the series
y - y^2/2 + y^3/3 - y^4/4 when y < 0.01, where its relative error is
below 2e-9, and keep log(1 + y) above that.

* ggml-openvino: finer GPU KV rounding for decode batches

Rounding the GPU KV length up to a power of two makes a batch attend up
to twice the rows that hold data right after each power of two. Decode
reads every attended row, so long contexts lose decode speed.

The GPU plugin keeps memory for each attended length: several large
buffers for a prompt batch, about one copy of K and V for a decode
batch. Keep the power of two for prompt batches (more than 16 tokens
per sequence), and round decode batches up to a multiple of 2^k / 4 and
of 256. That is four lengths per power of two, with at most 25% masked
rows.

* ggml-openvino : keep the head axis of the 4-D KV cache static

* ggml-openvino: split two one-line lambdas per clang-format

The backend's .clang-format keeps a lambda on one line only when it is a
function argument (AllowShortLambdasOnASingleLine: Inline). The constant
helpers in the softplus and FILL translators are assigned to variables,
so clang-format splits them. Formatting only.

---------

Co-authored-by: Mustafa Cavus <mustafa.cavus@intel.com>
* model : add hy_v4_flash on the DSA iSWA cache

Tencent Hy4 flash is a hy_v4 trunk (iHC, gated MLA, sinks) with
sparse and sliding-window MLA layers, sandwich norms, latent routed
experts and deepseek41 Engram tables.

The sparse layers select their context with a pooled indexer: the
keys of 4 consecutive tokens are pooled by a per-channel softmax of a
gate plus a position bias, normed, and rotated at the position of the
first token. A token attends to the best scored pools of its sequence
plus its own pool.

The model runs on llama_kv_cache_dsa_iswa as dots3note does. The
indexer cache holds the projected value and gate of each token, and
the pools are rebuilt from the cells for every ubatch by
llama_kv_cache::set_input_kpool(), so there is no pooled state to
keep in sync with sequence edits, checkpoints or state save/restore.
The selection goes through ggml_top_k_mask with the pool members as
blocks and the token's own pool as extra cells.

Not covered yet: the MTP block (its tensors are skipped), the vision
tower, multiple KV streams, and backends without GGML_OP_TOP_K_MASK.

* convert : add hy_v4_flash

The converter of the hy_v4_flash model, without the vision parts.

The four Engram tables are written as one per_layer_token_embd
tensor of about 127 GB in BF16. Concatenating them with torch.cat
materializes the whole tensor at write time, so they are streamed one
table at a time in row chunks through the _StreamedBytes path of
deepseek41, which keeps the conversion within 100 GB of RAM.

* tests : add hy_v4_flash to test-llama-archs

A 4 layer fixture that alternates sparse and sliding-window layers,
with hyper-connections, one Engram module, an indexer on the sparse
layers and a latent width distinct from the expert width, so that a
transposed routed_down or routed_up is caught.

* kv-cache : do not shift the pooled indexer cache

The pooled indexer of hy_v4_flash caches the value and the gate of
each token, without a position: the pooled key is rotated in the
graph. A K-shift rotated these rows as if they were roped keys, which
broke the pooled keys after a context shift.

* tests : add the hy_v4_flash Metal fusion baseline

* model, mtmd : add hy_v4_flash vision

The vision tower of hy_v4_flash, with its projector in mtmd and its
converter.

The published files carry M-RoPE sections, so the text model runs the
interleaved M-RoPE path: the rope rows keep their reference order and
are reordered to NeoX halves in the graph. The tokens of an image share
their position, so the indexer pools now group consecutive tokens in
sequence order instead of consecutive positions, and a pooled key is
rotated at the four positions of its first member.

Without a backend that runs GGML_OP_TOP_K_MASK, the picked pools are
expanded to their cells and go through build_top_k_mask.

* CUDA: lightning indexer for 16 heads

hy_v4_flash scores its pools with 16 indexer heads, which the CUDA
backend did not support, so the scheduler ran the 12 sparse layers'
indexers on the CPU at every step. Both kernels already handle 16
heads: the mma kernel needs a multiple of 16 and the vector kernel
splits the heads in 4 passes.

* model : move the Hy4 flash Engram gathers before the token embeddings

With the gathers after build_inp_embd, the mixed embedding DUP and SET_ROWS
sat between two host nodes and stayed on the CPU. Those ops use every thread,
so all the CPU workers woke up on each decoded token for a 12K copy.
Gathering first lets the scheduler put them on the GPU, as in qwen4exp, and
leaves only small single threaded lookups on the host.

* llama : speed up the Hy4 flash pool inputs on long contexts

set_input_kpool deduplicated the pools through a map keyed by vectors even
with a single sequence, sorted cells that are already in order and scanned
every pool owner for each token. Dedup only when the ubatch has several
sequences, skip the sort when the cells are ordered and mark the earlier
pools of the token's sequence directly. At 129k cells the host cost of a
decode step drops from 4.0 ms to 0.5 ms, the logits are unchanged.

* llama : use a unified KV cache for Hy4 flash

The pools gather their members from a single KV stream, so a split cache
with several sequences hit an assert in the graph. Switch to the unified
cache with a warning, the sequences then share n_ctx.

* rm redundant code in mtmd

* clean up comments

---------

Co-authored-by: Xuan Son Nguyen <son@huggingface.co>
ngxson and others added 28 commits December 3, 2026 19:18
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
Co-authored-by: Pascal <admin@serveurperso.com>
…gml-org#33622)

* ui: open the slideshow at the trace image that was clicked

The thread is walked from its leaf to its root and then sorted by
timestamp. Messages saved in the same millisecond, as the results of
parallel tool calls can be, kept the walk's leaf-first order through the
stable sort, so the slideshow listed a trace's images backwards and opened
each at its mirror. The path is put root first before the sort.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: one slideshow for every image of the conversation, in its order

The attachment lists and the slideshow showed their items newest first,
while the image clicked was found in the thread's own order: each click
opened its mirror. Nothing is reversed now: attachment lists keep the
order the files were added in and the slideshow the thread's order, so
the image clicked is the one that opens.

The images a tool call shows once opened (read media, a tool's output, a
shell command's) and an attachment's image in Markdown open the same
slideshow at themselves.

Assisted-by: Claude (Opus 5.5 Medium)
…gml-org#33611)

The RPC client's alloc-size cache key for
ggml_backend_rpc_buffer_type_get_alloc_size() omits the src tensors.
For ops in ggml_op_alloc_size_may_expand() the server-side allocation
size can depend on a src, e.g. TOP_K on Metal with nelements(src0) or
FLASH_ATTN_EXT on CUDA/Metal with the KV length. A size cached for a
small src could be reused for a larger one, overrunning the
server-side compute buffer.

Key the cache on the full layout of the tensor and its srcs, reusing
the supports_op key (renamed to op_layout_key), and move the cache and
its mutex from function-level statics into
ggml_backend_rpc_buffer_type_context.

ref: ggml-org#30794

Testing done (on Apple M4 Max):
    TEST_RPC_DEVICE=MTL0 bash tests/test-rpc-multi-server.sh \
        build/bin/ggml-rpc-server build/bin/test-rpc-multi-server


Assisted-by: Claude Opus 5.5

Co-authored-by: Brian Woods <me@brian.biz>
* vulkan: add subgroup shader for pool1d

Assisted-by: Google AI Search
* hexagon: move conv2d-dw kernels to conv2d-dw-ops.c

* hexagon: split conv2d-dw headers as well

* hexagon: add support for f16/f32 mixed types in conv2d

---------

Co-authored-by: Max Krasnyansky <maxk@qti.qualcomm.com>
…#32989)

* hexagon: CONV_2D/3D Cin chunking and cost-based tile solver

- stage input channels in chunks
- stage per (channel, kd) channel stride > 24-bit 2D DMA stride limit
- split weight packing into work items
- replace first-fit tile selection with a solver
- use fastdiv for the dilation division in the per-channel stage path

* hexagon: conv-2d/3d rebase and fixes (guards for corner cases, etc)

* hexagon: add mixed f16/f32 inputs, improve spad allocation and cleanup kparams

* hexagon: conv-2d remove replace all divs and further cleanup kparams

---------

Co-authored-by: Max Krasnyansky <maxk@qti.qualcomm.com>
* ggml : bump version to 1.2.0

* authors : update
[no ci]
* llama.cpp : bump version to 1.1.1

* authors : update
Assisted-by: OpenAI Codex
Assisted-by: Claude Opus 5.5
* cuda : batch contiguous concat slices in one launch

* add concat test case
…org#33608)

* metal : accumulate the bf16 flash attention O in bfloat

The bf16 prefill kernel kept the O accumulator in half while Q/K/V are
bfloat, which mixed the accumulator type with the operands. Accumulate
in bfloat and rescale the O matrix in float, since Metal does not allow
bfloat4 *= float.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)

* metal : fix flash attention kv_rows with partial K/V chunks

The kv_rows path assumed the row lists are padded to the kernel chunk
(256/64/32) and asserted it, so a partial last chunk was mishandled:

- the pad kernel copied cache columns instead of the gathered rows, and
  the pad buffer was sized/indexed per cache stream (ne13) instead of
  per q slice (ne03), so slices >= 1 read the wrong region
- the vec path did not gather the partial chunk through the row list and
  read V at the wrong pad offset, dropping the last chunk
- direct row reads applied the cache stream stride to a shared cache

Gather the partial chunk through the row list, size the pad per slice,
and zero the stream stride for direct row reads. Also allow BF16 K/V with
kv_rows: the non-vec gather converts to F16 and the tensor path uses the
f16 kernel over the gathered rows.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)

* metal : use bfloat shared memory for the bf16 vec FA kernels

The bf16 vec instantiations used the half shared-memory type set, so
K/V were converted bfloat->half on load. Add FA_TYPES_BF with bfloat
Q/K/V in shared memory so the vec kernels read bfloat directly through
the direct K/V path, and convert Q from f32 to bfloat as the prefill
bf16 kernel does.

Add the tuned _q%d_ne%d bf16 variants to match the f16/quantized sets,
since the fa_vec tuning selects them, and use a float4 broadcast for the
zero-fill casts that bfloat4 does not accept. Add bf16 to the FA vec
slice test types to cover the new path.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)

* metal : gather the kv_rows K/V in their own type

The non-vec kv_rows path always gathered the referenced rows into an F16
buffer, so a BF16 cache was converted to F16 and the attention ran the
f16 kernels. Replace the use_kv_f16 flag with the type of the buffer that
the attention reads: quantized K/V is still dequantized to F16, but the
cache type is otherwise kept, so BF16 stays BF16 through the gather and
the partial-chunk pad.

The gather kernel is now same-type (template on T, no cast), the gather
and pad sizes/strides use ggml_type_size(kv_type), and the tensor,
half8x8 and vec pipeline selectors take kv_type instead of the boolean.
Add BF16 gather tests for the half8x8 path with and without the pad.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)

* metal : use clearer names for the FA kernel paths

Replace the historical half8x8/half4x4 labels with the 8x8 simdgroup
kernel and the vec kernel, matching the actual kernel families. Comment
only, no functional change.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)

* metal : trim redundant flash attention comments

Update the kv_rows support check that still claimed a contiguous F16 copy
with BF16 converted to F16, drop the duplicated kv_type, pad-per-slice,
dense-op and column-order explanations, and keep only the comments that
explain non-obvious behavior. Comment only, no functional change.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)

* metal : simplify the flash attention K/V type helpers

Make kv_type the single source of truth for the type the flash attention
kernels read, and derive dequant_kv from it (quantized cache and kv_type
F16). Remove use_kv_f16 - its heuristic moves into kv_type - and use
kv_type in the tensor path check and the is_q flag. This also enables the
tensor path for a quantized rows gather whose shape fills the GPU.

Remove the stale commented-out use_kv_f16/use_vec lines as well.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
…tch or n_ubatch (ggml-org#30523)

* llama : return an error instead of aborting when a batch exceeds n_batch or n_ubatch

llama_decode documents -1 for an invalid batch, but a
batch larger than n_batch (or n_ubatch for non-causal) hit a
GGML_ASSERT and aborted the process. A causal context caps n_batch at n_ctx, so
a caller that asks for n_batch > n_ctx and submits a full batch crashes. This
was found in an application that embeds llama.cpp, where a small context made
an audio/image prompt abort the app instead of failing the call.

Return -1 with an error message instead, before any state is touched, and add
the batch_big case to test-llama-context: it submits n_max + 1 tokens, expects
an error and an empty memory, then decodes n_max tokens.

* llama : drop the batch_big test and shorten the n_batch error message (review)
…ggml-org#33328)

* ui: file a conversation away with Archive, from its menus and in bulk

The "more actions" dropdown and the right-click menu of a conversation gain
Archive, next to Pin. A filed-away chat leaves the sidebar's sections -
Pinned, the groups and Ungrouped - and rests out of them; the search dialog
is where it is found, behind a "Show N archived" toggle under the chats a
query matched, its own Archived group among the results. The bulk selection
bar gains the same action for a whole selection: Archive over any selection
with a chat left in it, Restore once every selected chat rests in the
archive.

Archiving keeps a chat's pin and group, so restoring puts it back where it
was, and a move that gives it a home elsewhere - a pin, a group, a drop on
Pinned or on Recent - brings it back too, so such an action on a filed-away
chat never reads as doing nothing.

Assisted-by: Claude

* ui: fix archive selection, restore path and fork families

Select all, the selection count and shift or marquee ranges only take
the chats the sidebar shows, and archiving drops what left the sidebar
from the selection, so a bulk delete never reaches a hidden chat.

Writing in an archived chat brings it back, which gives it a way back
when conversation tabs are off, the default and the only option on a
phone. The bulk Restore path, which no selection could reach, is gone.

Archiving and restoring take the whole fork family, like moving into a
group, and an archived chat no longer shows twice in search.

* ui: count the whole fork family in the archive toast

The bulk write takes the family, so the toast reports the family's size
rather than the clicked selection, which a single chat with forks would
otherwise report as one conversation while several leave the sidebar.

Assisted-by: Claude

---------

Co-authored-by: Pascal <admin@serveurperso.com>
…#33686)

Repos shipping a bare Q4_K quant next to Q8_0 fell through to Q8_0
by default, since only Q4_K_M and Q8_0 were in the preference list.
Try Q4_K between the two; the tag still matches as a full token, so
Q4_K never picks a Q4_K_M file and vice versa.

Assisted-by: dsh:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (RTX 5090 32GB, DDR5 128GB)
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
…gml-org#33677)

* convert: fix GPT-2 and StableLM conversion after generator migration

* convert : drop the regression test

* tests : drop the removed conversion test
…3652)

* ggml-openvino : add Q2_0 and Bonsai 2 support

* openvino: enable text inference for Nemotron Lightning and LFM3

Assisted-by: Codex

* openvino: enable NPU host gather by default

* docs : host gather is on by default

* openvino: compute ELU with an accurate expm1

* ggml-openvino: compute NPU RoPE cos/sin on the host for long contexts

Assisted-by: Claude Opus 5.5

* openvino: review fixes for the NPU RoPE table

* openvino: replace the RoPE flags with GGML_OPENVINO_ROPE_SINCOS

* docs : reorganize OpenVINO docs and add a cookbook

* openvino: preserve token dimensions in Gemma 3n reductions

Assisted-by: Codex

* openvino: keep the compiled-model cache revision at 14

Assisted-by: Codex

* openvino: reject sequence-major SSM_SCAN inputs

* ggml-openvino : drop code that the ggml core does not need

* openvino: add GGML_OPENVINO_SPILL_RESIDENT to cap the spilled weights kept in RAM

Assisted-by: Claude Opus 5.5

* openvino: review fixes for GGML_OPENVINO_SPILL_RESIDENT

* openvino: take GGML_OPENVINO_SPILL_RESIDENT as a fraction

* openvino: add GGML_OPENVINO_SPILL and simplify the spill limiter

* openvino: add GGML_OPENVINO_COMPILE_MEM_SPILL

* openvino: clang-format fixes

* openvino: unwrap comments and docs per AGENTS.md

Assisted-by: Claude Code

---------

Co-authored-by: Mustafa Cavus <mustafa.cavus@intel.com>
Co-authored-by: Yu, Zijun <zijun.yu@intel.com>
Co-authored-by: Xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: ravi9 <ravi.panchumarthy@intel.com>
Co-authored-by: Anisha Kulkarni <anisha.dattatraya.kulkarni@intel.com>
danielhanchen added a commit that referenced this pull request Dec 6, 2026
 for the macOS -Wformat failure and the b12986+ / b13007+ / b13013+ conflicts (#500)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.