github ggml-org/llama.cpp v1.1.1

latest release: b12978
one hour ago

Overview

llama.cpp v1.1.1 adds Qwen4-35B-A3B, Amazon-FMR/Ergo (1.1T MoE), clef-omni, Apertus v1.5 text support and MiniCPM5 MoE, reworks the decision-model batch API into pool spans and attention scopes, and brings background tasks for the built-in shell tool in llama-server together with the matching task list in Llama Chat. It also fixes a long list of core and server issues (shared SWA cell reuse, the KV cache rotation node budget, checkpoint replay at temp 0, CORS with multiple origins), extends chat/Jinja parsing and the conversion pipeline, adds Hugging Face dataset sharing and a shared image slideshow to the UI, and updates ggml to v1.2.0.

API changes

  • llama-ext.h: rename llama_batch_ext_set_decision_order() to llama_batch_ext_set_pool_span_type() (#33305)
  • llama-ext.h: add llama_batch_ext_set_pool_span() and llama_get_embeddings_pool_span() (#33305)
  • llama-ext.h: add llama_batch_ext_set_attn_scope() (#33305)
  • server: background tasks for the shell tool, with the X-Conversation-Id header and the /tools/tasks routes (#33391, #33367)
  • server: accept repetition_penalty as an alias of repeat_penalty and audio as an alias of files (#33439, #33354)
  • server: add mcp_server to GET /tools and timings to Anthropic /v1/messages responses (#33598, #30244)

New models

  • Qwen4-35B-A3B: chat template, vocabulary and parser on the Qwen4-Exp graph (#33626)
  • Amazon-FMR/Ergo: 1.1T MoE with MXFP4 conversion (#33485)
  • clef-omni: Cloudflare decision model on the Qwen3-Omni-MoE backbone (#33354)
  • Apertus v1.5 8B/70B text support, including the reduced output vocabulary (#32880)
  • MiniCPM5 MoE: gated GQA, leading dense FFN layer and routed/shared experts (#32644)
  • DFlash2 draft head for Inkling-2-Mini (#33073)

Core changes

  • decision models: pool spans and attention scopes replace the decision order/group batch fields (#33305)
  • reuse SWA cells shared by several sequences once masked for all of them, and read recurrent states in place (#32309, #30139)
  • budget graph nodes for KV cache rotation so quantized K/V caches fit the scheduler hash set (#33382)
  • support MoE cache experts selected on another backend and cut the DeepSeek-V4.1 indexer candidate mask memory (#33133, #33495)
  • fuse SSM_CONV+SiLU in BailingMoE3 and expand Inkling 2 tau after the embeddings (#33081, #33186)
  • simplify the Qwen4-Exp PLE conv graph and fix the Laguna/AFMoe last-layer crop (#33380, #33557)
  • fix the Clef-Flash load crash on ARM and the Gemma4 12B size label (#32962, #33275)
  • refuse -sm tensor for Hadamard-folded models and allow prism.hadamard weights for LFM3 (#33080, #33387)
  • add get_yarn_attn_factor() and support Sentence Transformers dense output projections in BERT (#33314, #33280)
  • jinja: python modulo and negative indexing, strings in for loops, truthy functions (#33336, #33370, #33433, #33419)
  • jinja: unicode whitespace in strip/trim, replace with count=0, bitmask input marking (#33461, #33319, #33553)
  • grammar: fix a builder crash on invalid minItems/maxItems (#29497)
  • chat: add the Olala parser, allow K2 Horizon tool calls during thought, fix the Qwen3-ASR context placement (#33514, #32993, #33135)
  • unicode: fix \p{Lu}/\p{Ll} and speed up tokenization, and share the kv arg parser with llama-bench (#33403, #33164, #32831)
  • convert: recognize DeepSeek-V4 FP8 block scales and warn on per-channel FP8 dequant (#33510, #33312)
  • convert: fix GPT-OSS expert corruption, preserve the BERT pooler, NVFP4 pass-through for Inkling 2 (#32546, #33122, #33062)
  • gguf-py: avoid alignment padding amplification, allow F64 endian tensors, parse bool metadata (#33378, #33575, #33548)

Multi-modality changes

  • Drama 3: emit the first streaming audio frame immediately instead of waiting for 7 frames (#33512)
  • pad the Qwen3-Omni audio rows to the deepstack vision width and fix the deepstack audio/video path (#33041)
  • clef-omni groups images, audio clips and videos in the decision endpoint (#33354)

Server changes

  • move a running shell command to the background, read its output and stop it (#33391, #33367)
  • answer a list of CORS origins with the origin that asked, and load remote MCP icons with credentialless COEP (#33602, #33598)
  • avoid re-verifying replayed tokens at temp 0 so a checkpoint restore always makes progress (#33373)
  • unblock server_response readers on termination (#33404)
  • pass --json-schema into chat parsing so the grammar accounts for the reasoning prompt (#31862)
  • add a pdfDpi UI config for parsing a PDF as images and a 95M multimodal fixture for the server tests (#33061, #28815)

UI changes

  • share a conversation to a Hugging Face dataset as an agent trace (#32608)
  • list the conversation's background tasks under the chat form, with their output and a stop button (#33211)
  • open every image of a conversation in one slideshow, in conversation order (#33622)
  • rejoin a dropped reply once the page is back, and keep a single history entry in the installed app (#33615, #33535)
  • type /cwd and other slash commands anywhere in the chat input (#33070)
  • show NVFP4 as 4-bit in Discover, with the picked model's details inside Search (#33120)
  • draw markdown tables with row rules instead of a cell grid (#33195)
  • close the active tab with Cmd+W, close a code block as its fence is typed and scale inline SVG previews (#33152, #33364, #33182)
  • navigate through typed routes, move the demo harness to ui/lib/demo and talk to :9931 in npx llama-chat (#33539, #33125, #33095)

ggml changes

  • v1.2.0: ggml v1.2.0 adds quantization-scale support for FP8 and NVFP4 through extended matrix-multiplication APIs, introduces internal ops, and cleans up the FlashAttention sinks/bias API. It adds the experimental HRX backend, lets the meta/TP backend place a tensor entirely on a single device, adds an RPC SUPPORTS_OP command with graph preprocessing, and adds a CONCAT backward pass plus a BF16 src1 path for matrix multiplications. Backend work includes a CUDA fusion refactor with new fused chains, Vulkan FP8/scaled matmul and FlashAttention KV-row support, Metal Neural Accelerator detection, SYCL GDN replay, WebGPU scaled matmul, Hexagon HMX W8A8 tuning, and an OpenVINO 2026.5 update.

Assets

Nightly build: b12977

More info

Changelog since v1.1.0

1579b02 llama.cpp : bump version to 1.1.1 (#33672)
dd6b0fa sync : ggml
d6e988c ggml : bump version to 1.2.0 (ggml/1714)
72a780e hexagon: CONV_2D/3D Cin chunking and cost-based tile solver (#32989)
59b7165 hexagon: move conv2d_dw kernels to a separate file (#32982)
8c9895f vulkan: add subgroup shader for pool1d (#33221)
b9fcf77 rpc : fix stale alloc_size cache entry reused for larger src tensor (#33611)
2d4f848 ui: one slideshow for every image of the conversation, in its order (#33622)
74e7f44 model: qwen4 (#33626)
45b8962 gguf-py : allow F64 and integer tensors in gguf_convert_endian (#33575)
75d911f ui: rejoin a dropped reply once the page is back, retrying a few times (#33615)
9a811ba hexagon: conv2d_dw 5x5 performance improvement (#32979)
f727eab ui: drop the type-aware lint of plain .ts files (#33619)
d4adfb4 gguf-py : parse bool values in gguf-set-metadata (#33548)
debcc4d ui: answer a list of CORS origins with the origin that asked (#33602)
4c0ad42 models: laguna/afmoe: move inp_out_ids crop before attn_o_proj in last layer (#33557)
d39c260 vulkan: SSM_SCAN optimizations and coopmat2 support (#32916)
ae81d7f vulkan: hoist K-quant dequant in mul_mat_vecq (#31022)
a895595 ggml : fix view init skipped after buft max_size split (#25584)
05b9db8 ui: name the MCP server of each tool in /tools, and let MCP servers' icons load (#33598)
c1d3746 CUDA: add internal ops (#33600)
869790b ui: lighten the secondary badge in light mode (#33599)
32da68d tests: make local consts static for MSVC (#33587)
ff37ac7 cuda : add flat 1D kernel for small-ne0 non-contiguous CONCAT (#33389)
994cc45 CUDA: vectorize Inkling 2 depth_mix with float4 (#33507)
445d5f0 deepseek41 : cut the indexer candidate mask memory (#33495)
035b8c1 metal : remove the quantized FA kernels for head sizes that are not multiples of 32 (#33534)
8c447d5 ggml : add internal ops (#33000)
ee46715 jinja: use bitmask for input marking (#33553)
18264f8 openvino: update to OV 2026.5, CI fixes, add model support, add mtmd support (#33505)
08cd108 ui: navigate through typed routes, and let the dev proxy reach llama-server (#33539)
c17655b vulkan: add support for kv rows to Flash Attention (#33172)
b32429d ggml-cpu(arm): SVE Implementation of gemv q6 k 8x8 q8 k (#29256)
9ec9e1a ci : add RPC tests to models-check workflow (#33452)
55070e6 ui: keep a single history entry in the installed app, so the edge swipe opens the sidebar (#33535)
111f429 CUDA: allow the short conv fusion when past is the state cell (#33504)
1f95331 convert : recognize DeepSeek-V4 FP8 block scales in the scale check (#33510)
89a6a47 metal, vulkan : use Taylor series for metal ELU, EXPM1, XIELU and vulkan ELU (#33226)
0df4073 test: fix mistral-large4 rope test randomly fails (#33519)
9b4a75c model: support Amazon-FMR/Ergo (#33485)
eaa71ea mtmd : emit the first Drama 3 streaming audio frame immediately (#33512)
01d5774 webgpu: skip the expert slots with id -1 in mul_mat_scale (fix CI) (#33515)
483cab3 common : add Olala chat parser (#33514)
3fcb10c ggml : reject BF16 inputs in supports_op for ops without a BF16 kernel (CPU, CUDA) (#33190)
51b2562 ci : add HRX self-hosted runners (#33489)
800ae7e ggml : rename the mul_mat scale arguments after their operands (#33431)
cdaf1d9 rpc : add SUPPORTS_OP command (#32532)
7d58ebd vulkan: update topk_moe to handle bias rather than clamp (#32957)
aa6dbb7 CUDA: reject non-contiguous src in XIELU and LEAKY_RELU supports_op (#33383)
9e213cd CUDA: do not use restrict in FA vec helpers with PDL (#33384)
7650021 CUDA: fix grid-stride loop step in k_get_rows (#33140)
a14280f server : avoid re-verifying tokens on checkpoint replay at temp 0 (#33373)
58bd04a hexagon : fix F8_E4M3 INF scale handling in matmul epilogue (#33497)
c7a9208 sycl: extend K-type validation to V-types for flash attention (#32703)
02227e8 app : set distinct PDB_NAME for llama-app (#33156)
94f17f6 CUDA: few-row MMQ for NVFP4 (#32610)
08dc1ce llama : refactor decision model api (#33305)
94be107 model: add clef-omni (#33354)
92f76e5 hexagon: optimize IQ2_XSS grid gathers (#33407)
509468d ggml-cuda : optimize mmvq nwarps for Pascal DP4A (#25479)
b9073e5 jinja : support Unicode whitespace and multi-byte chars in strip/trim (#33461)
e5cd6e3 Vulkan: one thread per row for soft_max and sum_rows on short rows (#33197)
cda9b41 metal : add apertus to the Metal fusion baseline (#33453)
562f4b8 opencl: add log and non-contig scale (#33237)
9452452 ggml-et : fix multi-line L2 flush and replace L2-SCP polling with FCC 0 (#33313)
06fa894 metal : detect Neural Accelerators without hardcoding chips (#33272)
30b9001 CUDA/HIP: Use the MMA FA kernel for maskless attention on RDNA (#32930)
6d0716c gguf: document and test the NUL byte rule for keys and tensor names (#33443)
0458618 vulkan: read IQ1/IQ2/IQ3 grid tables from a storage buffer (#32915)
2e11b8a ui: list the conversation's background tasks under the chat form (#33211)
c9dbfa5 jinja : iterate over strings in for loops (#33433)
ae2b404 convert : fix silent expert weight corruption for GPT-OSS (#32546)
6fd26a7 cuda : use dst strides in unary_op_kernel_strided (#33322)
b7a59f3 vulkan: reduce cm1 int8 MMQ performance gap between AMD shader compilers - part 1: accumulate folding (#32528)
c82b798 server: add "repetition_penalty" as alias for "repeat_penalty" (#33439)
386e414 CUDA: optimize f16 conversion when using kv_rows (#33427)
2868ee9 server: background tasks for the built-in shell tool (#33391)
441d045 server : unblock server_response readers on termination (#33404)
75bfc7d metal : keep the MUL_MAT weight scale off skipped MoE slots (#33430)
a3f7cb2 model : add Apertus v1.5 text support (#32880)
8f24c22 vulkan: enable split-K for GQA batches above the tile row count (#32097)
2efe7f1 jinja : make functions truthy and give them no attributes (#33419)
dee778b grammar : fix builder crash on invalid minItems/maxItems (#29462) (#29497)
ba16f3f vulkan : fix large ROLL shifts (#32876)
103b19e webgpu: split the GDN replay into a separate pipeline (#33289)
7dca4a8 qwen4exp : simplify the PLE conv graph (#33380)
ce94c09 kv-cache : reuse SWA cells shared by several sequences once masked for all of them (#32309)
a1973da ggml-cpu : vectorize the Mamba-2 SSM scan on RVV (#32448)
5b1ba66 CUDA : read K/V through kv_rows in the vec flash attention kernel (#32520)
713fee7 llama : budget graph nodes for KV cache rotation (#33382)
e89795b sycl: Add GDN Replay support (#32944)
1f1e6cb unicode : fix \p{Lu} and \p{Ll} (#33403)
db503b8 server : fix build (#33410)
78c9ca4 llama : allow prism.hadamard folded weights for LFM3 (#33387)
abeb9e7 opencl: support scaled mm (#33240)
c8476ae gguf-py : avoid alignment padding round-trip amplification (#33378)
779b413 vulkan: add fp8 and scaled matmul support (#29791)
7dfa241 jinja : use python semantics for the modulo operator (#33336)
49f972e llama: Fix the Clef-Flash model loading crash on arm cpus (#32962)
019951e CUDA: one thread per row for soft_max and sum_rows on short rows (#33187)
616c931 ggml : add HRX backend (experimental, TinyStories-15M) (#32700)
e1b9f46 ui: close the active conversation tab with Cmd+W (#33152)
559afe3 ui: scale inline svg previews to fit the message (#33182)
2d48484 ui: close a code block as its opening fence is typed (#33364)
22d68b8 gguf: reject keys and tensor names containing NUL bytes (#33355)
7778397 server: run tool commands as a job ended with everything it started (#33367)
8d0323c vulkan: handle ADD_ID with more tokens than maxComputeWorkGroupCount[1] (#33232)
c2d2fc6 hexagon: add support for online FWHT-32 and Quant Scales (#33347)
9bb00f9 sycl : fix batched f16 mul_mat with broadcast batches and strided src1 (#33214)
3e23348 vulkan: improve CONV_2D/3D performance (#32629)
0f72a86 jinja : fix negative string indexing (#33370)
81a22ce webgpu: mat-vec workgroup size by row length (#33308)
a346a49 model: add get_yarn_attn_factor (#33314)
2924a0e common : fix Qwen3-ASR transcription context placement (#33075) (#33135)
808d1fe bert : support Sentence Transformers dense output projections (#33280)
89bfaba jinja : fix replace filter with count=0 (#33319)
f6621d0 vendor : update stb-image-2.34 (#33337)
9fde456 metal : one thread per row for soft_max and sum_rows on short rows (#33189)
aa631e0 ggml : clean up FA bias API (#33178)
bf062c6 sycl: convert f32 to f8_e4m3 without frexpf in device code (#33035)
2f94007 vulkan: fold verify tokens and GQA heads into one flash-attention row tile (#30190)
57d0c62 metal : avoid a second pipeline cache lookup (#32977)
9a278b0 server : include timings in Anthropic /v1/messages responses (#30244)
9fcc40d common : share the kv arg parser with llama-bench (#32831)
5757767 server : pass in --json-schema to chat parsing (#31862)
bb5aacd ggml-cuda: Add GCN HIP sparse fattn (#30370)
f6d944f mtmd: fix qwen3omni deepstack allow audio and video (#33041)
6c83d2e convert : warn when per-channel FP8 weights are dequantized (#33312)
84250b8 hip: fix CU_CHECK macro shadowing causing infinite loop with VMM (#33227)
5a18afa vendor : update cpp-httplib-0.69.0 (#33310)
e18d1b2 models : add MiniCPM5 MoE support (#32644)
63e22e6 webgpu: speed up prefill for flash_attn (#33192)
b80ec40 webgpu: apply the weight scale of MUL_MAT and MUL_MAT_ID (#33266)
db11654 gemma4 : fix 12B model size label (#33275)
918fe46 Honor --chunks when using llama-perplexity with --kl-divergence (#32257)
a43d06e unicode : speed up tokenization (#33164)
cbb7652 vendor : update cpp-httplib-0.68.0 (#33259)
115deee metal : keep ADD chain fusion independent of batch size (#33217)
ec3dac2 HIP: implement a ddp path for sum reduction operator (#32215)
16f090f server tests : add small-test, a 95M multimodal fixture covering toolcalls, vision and MTP (#28815)
3cadf64 agents: rework, add instruction for writing human-facing messages (#33157)
8d19519 HIP: few-row MMQ with WMMA for RDNA3.5 (#32224)
dc8e7eb TP: can assign data to single device (#32983)
17580c6 CUDA: fix dp4a MMQ compiler hint for CUDA 13 (#33064)
31b1752 webgpu : add CONV_TRANSPOSE_1D support (#32719)
2477ee0 ggml : add CONCAT backward pass (#32151)
1697369 ggml-cpu: optimize s390x vector intrinsic (#32253)
f16e79d chat : Allow K2 Horizon tool call during thought (#32993)
0c2209c tests : use the fused mul_mat tolerance for LOOP_CTRL (#33238)
2881150 model : expand Inkling 2 tau after embeddings (#33186)
786da85 CUDA: consistent ncols2 selection for mma FA (#32626)
8e23278 ui: show only the mention label in generated conversation titles (#33205)
6d8a888 ui: draw markdown tables with row rules instead of a cell grid (#33195)
4c73444 [Inkling 2] Support nvfp4 pass-through (#33062)
3ab3851 CUDA: fix ADD_ID launch for more than 65535 tokens (#33162)
d67b7a9 vulkan: handle empty conv3d kernel, fixes validation error (#33106)
3b103f7 vulkan: further optimize coopmat2 GDN (#32860)
4346838 ggml-zdnn: make zTensor memory usage visible for fitting (#31849)
0020197 CUDA: cache the device type at init (#33142)
a386950 ggml: support quant scales for fp8 and nvfp4 (#28898)
15fcfc7 convert : preserve pooler for BertForSequenceClassification (#33122)
7b74cb9 graph : read recurrent states in place instead of copying (#28841) (#30139)
2a8bf0f cuda : fix NVFP4 MMQ y_scale over-read in the stream-k fixup (#33136)
e7ec636 moe-cache : support experts selected on another backend (#33133)
69812f6 llama : remove unused llm_tensor enums (#33179)
f351f41 metal : check all fused nodes for concurrency (#33175)
00d5c14 ui: share conversations to Hugging Face datasets as agent traces (#32608)
ca123ba hex-hmx: fix accuracy issues in act and weight scaling, drop w8a8+f16 hybrid mode (no longer needed) (#33166)
f89a243 vulkan: add FA compact bias support for Inkling 2 Mini (#32898)
ed2153e sycl: dequantize reordered q6_K in f32 like the canonical kernel (#32726)
e0b9fd7 ggml-openvino: CI op-test fixes and NPU improvements (#33088)
a07831a sycl: route BMG D=256 single-query decode to the FA vector kernel (#30606)
9fa7a33 opencl: add multi token f32 GEMV for spec verify (#33098)
e087c6c hip : fix bf16 MFMA operand vector type for CDNA (#33086)
492d23c bailingmoe3 : fuse ssm_conv + silu and remove redundant copies (#33081)
e8d7128 ui: type /cwd and other slash commands anywhere in the chat input (#33070)
2a33525 ggml/CUDA+HIP: Flash Attention with indexed bias (#33063)
47d6192 opencl: add MoE int8 bin kernel host side changes for Adreno A850 (#33069)
6d54465 ci: relax spec dec acceptance length floor (#33127)
98cc730 tests : relax the DEPTH_MIX tolerance to the mul_mat one (#33141)
e630f78 ui: install the demo harness before the app's type check in CI (#33145)
5d7bb89 ui: fix the phone model sheet's search field and reasoning row (#33144)
0ac39e4 ui: NVFP4 as 4-bit in Discover, model details inside Search (#33120)
fa9f928 ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125)
0e4e925 CUDA: fuse the Inkling 2 short conv, depth mix, loop controller, L2 clip and situ chains (#33060)
6aad4c7 nix : remove x86_64-darwin support (#33114)
46ba8b7 vulkan: fix Windows driver RDNA1 architecture misclassification (#33123)
436d7e8 DPI setting for PDF as Images - Inkling-2-Mini-BF16's work (#33061)
a866b4a ui: pass theme to toasts (#33082)
4ba835c tests : add RPC support to test-llama-archs (#33112)
6891948 quantize : include clocale for std::setlocale (#33105)
fd4b137 CI: add Hip occupancy check and small static analysis report (#32365)
55d4828 DFlash2: support Inkling-2-Mini DFlash2 (#33073)
7365e47 tests : take the test-fusion moe flag from the fixture name (#33104)
b16f153 ci : move vulkan-nvidia runners to dgx spark (#33113)
b671865 CUDA: move the fusion code out of ggml-cuda.cu (#33087)
8c64180 ui: read the Enable MCP setting through one getter (#33067)
09c1410 ggml : support a BF16 src1 in MUL_MAT and MUL_MAT_ID (CPU, CUDA) (#32533)
28148b5 llama : refuse SPLIT_MODE_TENSOR for Hadamard-folded models (#33080)
51ab45e CUDA: fuse the top-k MoE weight norm with an additive sum bias (#32943)
caea914 CUDA: loop over ne2/ne3 in non-contiguous concat (#33006)
e38ea71 CUDA: fix ROCm CI, do not pick the tile FA kernel for DKQ 576 with a GQA ratio not divisible by 4 (#33045)
074f1f3 ui: npx llama-chat talks to llama-server on :9931 by default (#33095)

Don't miss a new llama.cpp release

NewReleases is sending notifications on new releases.