Commit Graph

7846 Commits

Author SHA1 Message Date
Sascha Rogmann
dd23149dea CODEOWNERS: add common/ngram-map.* (#18471) 2026-01-26 22:06:43 +01:00
Sascha Rogmann
72f416e973 minor: comments 2026-01-26 22:04:00 +01:00
Georgi Gerganov
1f8d36665d minor : cleanup + fix build 2026-01-26 14:05:17 +02:00
Georgi Gerganov
a3300937e5 common : better names 2026-01-26 13:59:08 +02:00
Georgi Gerganov
f895bca71a minor : cleanup 2026-01-26 13:56:28 +02:00
Sascha Rogmann
fd4d803c60 common: print performance in spec decoding 2026-01-26 00:20:05 +01:00
Sascha Rogmann
288ab50597 doc: (draftless) speculative decoding 2026-01-25 23:58:55 +01:00
Sascha Rogmann
8ea068e5f8 spec: remove --spec-config 2026-01-25 23:56:29 +01:00
Georgi Gerganov
9ac881767c cont : naming 2026-01-25 21:39:54 +02:00
Georgi Gerganov
924517dd38 spec : refactor 2026-01-25 18:21:57 +02:00
Sascha Rogmann
af382c384a common: cleanup (use common_speculative_state_draft) 2026-01-25 16:41:44 +01:00
Sascha Rogmann
cb3a40277a common: moved self-spec impl to ngram-map 2026-01-25 01:16:06 +01:00
Sascha Rogmann
a1584ac80f server: cleanup (remove slot.batch_spec, rename) 2026-01-24 15:55:02 +01:00
Sascha Rogmann
1e29af4ea5 common: add option --spec-draftless 2026-01-24 15:55:02 +01:00
Sascha Rogmann
eb43748b05 common: add vector of speculative states 2026-01-24 15:55:02 +01:00
Sascha Rogmann
b38eb5907c common: add enum common_speculative_type 2026-01-24 15:55:02 +01:00
Sascha Rogmann
456268fa7f common: ngram map, config self-speculative decoding 2026-01-24 15:36:44 +01:00
Sascha Rogmann
907d094f9e server: can_speculate() requires a task instance 2026-01-24 15:36:44 +01:00
Sascha Rogmann
f1f6584ce6 common: use %zu format specifier for size_t in logging
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
2026-01-24 15:36:44 +01:00
Sascha Rogmann
917f4bb14b server: replace can_speculate() with slot.can_speculate()
Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
2026-01-24 15:36:44 +01:00
Sascha Rogmann
38f7c28795 server: can_speculate() tests self-spec 2026-01-24 15:36:44 +01:00
Sascha Rogmann
e3e809cc01 can_speculate() includes self-speculation
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
2026-01-24 15:36:44 +01:00
Sascha Rogmann
1faeb628db server: moved self-call into speculative.cpp 2026-01-24 15:36:43 +01:00
Sascha Rogmann
1fb2658b0d server: introduce self-speculative decoding 2026-01-24 15:36:43 +01:00
Johannes Gäßler
8f91ca54ec CUDA: re-use MLA K data for V in MMA FA (#19057) b7822 2026-01-24 10:09:36 +01:00
Aman Gupta
81ab64f3c8 ggml-cuda: enable cuda-graphs for n-cpu-moe (#18934)
* ggml-cuda: add split-wise cuda graph

* add n-cpu-moe compare_llama_bench.py

* fix hip/musa builds
b7821
2026-01-24 14:25:20 +08:00
nullname
8af1f5f430 ggml-hexagon: flash-attn opt (#19025)
* optimize flash attention kernel by improving score computation and online softmax update

* wip

* Refactor online softmax update in flash attention kernel for improved performance

* Optimize flash attention kernel by replacing float array with HVX_Vector for score computation

* wip
b7820
2026-01-23 22:02:07 -08:00
Georgi Gerganov
557515be1e graph : utilize ggml_build_forward_select() to avoid reallocations (#18898)
* graph : avoid branches between embedding and token inputs

* models : make deepstack graphs (e.g. Qwen3 VL) have constant topology

* ci : enable -DGGML_SCHED_NO_REALLOC=ON for server CI

* cont : pad token embeddings to n_embd_inp
b7819
2026-01-23 18:22:34 +02:00
Neo Zhang
cb6caca191 [SYCL] use malloc to support both iGPU and dGPU in same time (#18992)
* use malloc to support both iGPU and dGPU in same time

* support windows

---------

Co-authored-by: Neo Zhang Jianyu <jianyu.zhang@intel.com>
b7818
2026-01-23 20:54:10 +08:00
Xuan-Son Nguyen
b5b8fa1c8b chat : fix translategemma crash on common_chat_format_example (#19019) 2026-01-23 12:03:42 +01:00
Daniel Bevenius
a14b960bc7 model-conversion : use BUILD_DIR variable in all scripts (#19015)
This commit modifies all the utility scripts to use an optional
BUILD_DIR variable/argument to specify the build directory.

The motivation for this is that Commit
3d55846a5c ("model-conversion : add
BUILD_DIR variable to run-converted-model scripts") introduced this
variable to the causal and embeddings scripts, but I missed the scripts
in the utils directory.
2026-01-23 09:01:36 +01:00
Alberto Cabrera Pérez
091a46cb8d ggml-cpu: aarm64: q5_K repack gemm and gemv (and generic) implementations (i8mm) (#18860)
* Boilerplate for q5_Kx8 REPACK on ARM and fallback

Signed-off-by: Alberto Cabrera <alberto.cabrera@liquid.ai>

* Implements make_block_q5_Kx8 by extending make_block_q4_Kx8

Signed-off-by: Alberto Cabrera <alberto.cabrera@liquid.ai>

* q5_K repack gemm and gemv generics

* Gemm and Gemv ARM implementations (i8mm)

* Improved qh manipulation looking at non-repack vec_dot implementation

* Full unroll

* Apply Q5_K Gemv vand and vshl optimizations to gemm. Improve comments.

Signed-off-by: Alberto Cabrera <alberto.cabrera@liquid.ai>

* Fix wrong fallback definitions of Q5_K

Signed-off-by: Alberto Cabrera <alberto.cabrera@liquid.ai>

* Fixed comments. Reverted unnecessary formatting

Signed-off-by: Alberto Cabrera <alberto.cabrera@liquid.ai>

* Fixed typo in generic definitions

* Switching AND + Shift with Shift Insert. Better op interleaving.

* Vectorize + unroll the block scales

* Apply gemm optimizations to gemv

* Improve bias calculation

---------

Signed-off-by: Alberto Cabrera <alberto.cabrera@liquid.ai>
b7815
2026-01-23 09:55:08 +02:00
Aldehir Rojas
a3e812811d cli : load parser definition (#19031)
* cli : load parser definition

* cont : only unload if a parser is defined
b7814
2026-01-22 20:31:22 -06:00
Xuan-Son Nguyen
51fa458a92 server : support preserving reasoning_content in assistant message (#18994)
* support reasoning_content input

* report template caps to webui

* add docs

* rm commented code
b7813
2026-01-22 21:30:06 +01:00
Georgi Gerganov
a5eaa1d6a3 mla : make the V tensor a view of K (#18986)
* mla : pass V as a view of K to the FA op

* cuda : adjust mla logic to new layout

* kv-cache : fix rope shift

* tests : remove comment

* cuda : fix reusable_cutoff

Co-authored-by: Johannes Gäßler <johannesg@5d6.de>

---------

Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
b7812
2026-01-22 22:09:01 +02:00
Johannes Gäßler
e2baf02162 CUDA: fix alignment check for FA (#19023) b7811 2026-01-22 20:39:25 +01:00
Aman Gupta
e34d6d03b2 convert_hf_to_gguf.py: refactor modify_tensors to call super (#18866) 2026-01-23 02:58:07 +08:00
lhez
9c96465f99 opencl: enable the general fp mm for non-cont input and as a fallback for specialized kqv kernel for adreno (#18970)
* opencl: add `copy_to_contiguous` and utilize mm kernels

* opencl: only copy to cont for f32 and f16 tensors

* opencl: use cont mm for fallback when dst is large

* opencl: use nb local to copy-to-cont

* opencl: use local offset as well
b7809
2026-01-22 10:29:25 -08:00
Xuan-Son Nguyen
4e595b250a server: do not log certain endpoints (avoid log spam) (#19028) b7808 2026-01-22 19:24:37 +01:00
Georgi Gerganov
0e4ebeb057 quant : manual overrides of tensor types take precedence (#18952) b7807 2026-01-22 16:17:06 +02:00
Aaron Teo
8b30840703 release: update github api (#19022) b7806 2026-01-22 21:38:02 +08:00
Xuan-Son Nguyen
9eb5bfec1a mtmd : update docs to use llama_model_n_embd_inp (#18999) b7805 2026-01-22 14:36:32 +01:00
손희준
c6926d1d95 server: Reorder methods in server-task.cpp (#19016)
* Move `task_result_state::update_chat_msg` to match with header

* Move `server_task_result_cmpl_partial::to_json_anthropic()` to match with header

---------

Co-authored-by: openingnow <>
b7804
2026-01-22 14:36:04 +01:00
Aman Gupta
b70d251076 CUDA: add gqa_ratio 4 for GLM 4.7 flash (#18953) 2026-01-22 18:51:53 +08:00
shaofeiqi
5516b9c16a opencl: add TRI op support (#18979) b7802 2026-01-21 22:05:54 -08:00
Aleksei Nikiforov
94242a62c0 ggml-zdnn : mark zDNN buffers as non-host (#18967)
While buffers reside in host memory,
additional transformation is needed to use buffers with zDNN.

Fixes #18848
b7801
2026-01-22 01:16:21 +01:00
Pádraic Slattery
6b99a223e3 ci : update GitHub Actions versions [no ci] (#18935) 2026-01-22 00:57:18 +01:00
Mariusz Woloszyn
77078e80e5 convert : add Devstral-2 (Ministral3ForCausalLM) arch (#18972)
* Add Ministral3ForCausalLM architeture

This adds support for newer architectres like Devstral-2

* removed blank line found after function decorator

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

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
2026-01-22 00:55:55 +01:00
Piotr Wilkin (ilintar)
c301172f66 jinja: support none|string (#18995)
* jinja: support none|string

* Update common/jinja/value.cpp

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

* Update tests/test-jinja.cpp

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

* Add as_string()

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
b7798
2026-01-21 19:24:37 +01:00
Hendrik Erz
3802d3c78f fix: Use tabular-nums for chat message statistics (#18915)
* fix: Use `tabular-nums` for chat message statistics

* fix: Rebuild WebUI
2026-01-21 18:46:01 +01:00