Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d4f5c26
CUDA: use 64-bit dst offsets in mul_mat_q (#32374)
am17an Nov 19, 2026
ecafc67
vulkan: use floating-point zero for storage-only FP16 in DIAG/TRI (#3…
Ngoroth Nov 19, 2026
573aa89
vulkan: Implement stream-k MUL_MAT (#28528)
jeffbolznv Nov 19, 2026
7a4117e
vulkan : enable MMQ with mixed signedness integer dots (#31045)
birkskyum Nov 19, 2026
39039aa
llama : fall back to buffered I/O on EIO (#32545)
angt Nov 19, 2026
8043748
ui: cut Llama Chat's first-load JavaScript by 63%, load diagrams, mat…
allozaur Nov 19, 2026
b5dbca1
ci : use LLVM 22 (#32565)
angt Nov 19, 2026
95b09b6
llama : remove PATH_MAX (#32557)
angt Nov 19, 2026
76f186d
ggml : IQ2 creation speedup through caching (#31910)
bartowski1182 Nov 19, 2026
51a77c4
qwen3vl : set t_layer_inp for EAGLE-3 (#32589)
cecwxf Nov 19, 2026
41d8297
metal : CONV_2D tensor API for M5, split-K for all chips (#32542)
ServeurpersoCom Nov 19, 2026
5812201
ci : fix build-opencl.yml (#32594)
angt Nov 19, 2026
8bf2132
readme : fix release badge (#32597)
ggerganov Nov 19, 2026
01592dc
llama : remove redundant fields from llm_graph_params (#32596)
ggerganov Nov 19, 2026
4db8b76
webgpu: add POOL_2D support (#32250)
SS1618 Nov 19, 2026
f8caa5e
metal : fix the second argument of NSMakeRange (#32602)
sanmai Nov 19, 2026
8af68d4
llama: fixes for Inkling 2 attention mask (#32429)
pwilkin Nov 19, 2026
ac830a9
ggml : add backend scheduler tests (#27258)
aendk Nov 19, 2026
c746810
cuda: Scatter kernel for set_n (#32489)
bhargav191098 Nov 19, 2026
9a080f4
ggml-openvino: fix OpenVINO CI, minor fixes and optimizations (#32590)
ravi9 Nov 19, 2026
53ecea0
mtmd : fix YuE2 projector loading (#32606)
JamePeng Nov 19, 2026
7fce543
ggml : add BF16 support to ROPE and SET_ROWS (CPU, CUDA) (#32387)
anujj Nov 19, 2026
c406f43
opencl: support dp4a for KQ mm in decomposed FA (#32577)
shaofeiqi Nov 19, 2026
50518b6
model : hrm : do not compute slot count as uint32_t (#32601)
imdadvs Nov 19, 2026
b94959a
CUDA: implement support for duplicate expert IDs (#32505)
JohannesGaessler Nov 19, 2026
8bf88ba
vulkan: disable subgroup arithmetic on Qualcomm's driver (#30826)
wanghqc Nov 20, 2026
7e960f4
opencl: fold GQA head for f16 FA for better efficiency (#32631)
shaofeiqi Nov 20, 2026
2d8d003
webgpu : add COL2IM_1D support (#31708)
LeON-Nie-code Nov 20, 2026
16f80bd
vulkan: chunked GATED_DELTA_NET implementation (#30207)
0cc4m Nov 20, 2026
c0b97be
vulkan: optimize RMS_NORM_MUL_ROPE loop control (#31149)
SG-Amadeus Nov 20, 2026
9fbe30c
CUDA: keep the MUL_MAT_ID precision in the per-expert fallback (#31345)
JonSnow1807 Nov 20, 2026
ea84d70
CUDA: optimize Orin single-column MMVQ (#31268)
meitmt Nov 20, 2026
d7d1b63
webgpu : fix 2D indexing for copy kernel (#32576)
nikhilJain17 Nov 20, 2026
52e8db6
kleidiai : allow OHOS (HarmonyOS) AArch64 target (#32265)
sys2008 Nov 20, 2026
bed8ec2
llamafile(s390x): add QK data type support (#32600)
taronaeo Nov 20, 2026
55d3235
model: add Domyn Edge 4B Model (#32559)
nicholas-mainardi-domyn Nov 20, 2026
4c4a0f0
llama : reserve graph nodes for the MoE cache (#32636)
am17an Nov 20, 2026
55b8d8d
ui: full-screen diagram preview that zooms around what is on screen, …
allozaur Nov 20, 2026
6aee508
ui: set the reasoning effort from the model picker (#32632)
allozaur Nov 20, 2026
652d559
llama : move the graph node budget into the model classes (#32648)
am17an Nov 20, 2026
d40394f
Merge upstream master through 652d559ed into mtmd-backend
co-seven Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/behavior-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ jobs:
source .venv/Scripts/activate
pip install -r requirements/requirements-convert_hf_to_gguf.txt
- name: Install LLVM
run: |
choco install llvm --version=22.1.8
echo "C:\Program Files\LLVM\bin" >> $env:GITHUB_PATH
- name: Build
id: cmake_build
shell: cmd
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-opencl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ jobs:
run: |
choco install ninja
- name: Install LLVM
run: |
choco install llvm --version=22.1.8
echo "C:\Program Files\LLVM\bin" >> $env:GITHUB_PATH
- name: Install OpenCL Headers and Libs
id: install_opencl
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-vulkan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ jobs:
run: |
choco install ninja

- name: Install LLVM
run: |
choco install llvm --version=22.1.8
echo "C:\Program Files\LLVM\bin" >> $env:GITHUB_PATH

- name: Build
id: cmake_build
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<b>LLM inference in C/C++</b>

[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Release](https://img.shields.io/github/v/release/ggml-org/llama.cpp?filter=v*&color=brightgreen)](https://github.com/ggml-org/llama.cpp/releases?q=tag:v1)
[![Release](https://img.shields.io/github/v/release/ggml-org/llama.cpp?color=brightgreen)](https://github.com/ggml-org/llama.cpp/releases?q=tag:v1)
[![Nightly](https://img.shields.io/github/v/release/ggml-org/llama.cpp?label=nightly&filter=b*&color=orange)](https://github.com/ggml-org/llama.cpp/releases?q=b)
[![Server](https://img.shields.io/github/actions/workflow/status/ggml-org/llama.cpp/server.yml?label=Server)](https://github.com/ggml-org/llama.cpp/actions/workflows/server.yml)
[![Docker](https://img.shields.io/github/actions/workflow/status/ggml-org/llama.cpp/docker.yml?label=Docker)](https://github.com/ggml-org/llama.cpp/actions/workflows/docker.yml)
Expand Down
1 change: 1 addition & 0 deletions conversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"DistilBertForMaskedLM": "bert",
"DistilBertForSequenceClassification": "bert",
"DistilBertModel": "bert",
"DomynEdgeForCausalLM": "domynedge",
"Dots1ForCausalLM": "dots1",
"Dots3NoteForCausalLM": "dots3",
"Dots3NoteForConditionalGeneration": "dots3",
Expand Down
3 changes: 3 additions & 0 deletions conversion/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,7 @@
# To avoid unexpected issues - we make sure to normalize non-normalized tokens
if not added_tokens_decoder[i].normalized:
previous_token = token
token = tokenizer.decode(tokenizer.encode(token, add_special_tokens=False)) # ty: ignore[invalid-assignment]

Check warning on line 2115 in conversion/base.py

View workflow job for this annotation

GitHub Actions / python type-check

ty (unused-ignore-comment)

conversion/base.py:2115:102: unused-ignore-comment: Unused `ty: ignore` directive help: Remove the unused suppression comment
if previous_token != token:
logger.info(f"{repr(previous_token)} is encoded and decoded back to {repr(token)} using AutoTokenizer")

Expand Down Expand Up @@ -2470,6 +2470,9 @@
if chkhsh == "5635e1c8d621dff7b4825f41f2f97b6ceb39bcf2d5c541db28577080d6efd5e5":
# ref: https://huggingface.co/thinkingmachines/Inkling-2-Small
res = "inkling2"
if chkhsh == "32d85c31273f8019248f2559fed492d929ea28b17e51d81d3bb36fff23ca72b3":
# ref: https://huggingface.co/domyn/Domyn-Edge-Teacher-IF
res = "domyn-edge"

if res is None:
logger.warning("\n")
Expand Down Expand Up @@ -2968,7 +2971,7 @@
# To avoid unexpected issues - we make sure to normalize non-normalized tokens
if not added_tokens_decoder[i].normalized:
previous_token = token
token = tokenizer.decode(tokenizer.encode(token, add_special_tokens=False)) # ty: ignore[invalid-assignment]

Check warning on line 2974 in conversion/base.py

View workflow job for this annotation

GitHub Actions / python type-check

ty (unused-ignore-comment)

conversion/base.py:2974:102: unused-ignore-comment: Unused `ty: ignore` directive help: Remove the unused suppression comment
if previous_token != token:
logger.info(f"{repr(previous_token)} is encoded and decoded back to {repr(token)} using AutoTokenizer")

Expand Down
53 changes: 53 additions & 0 deletions conversion/domynedge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
from .base import TextModel, ModelBase
import gguf


@ModelBase.register("DomynEdgeForCausalLM")
@ModelBase.example("domyn/Domyn-Edge-Teacher-IF")
class DomynEdgeModel(TextModel):
model_arch = gguf.MODEL_ARCH.DOMYN_EDGE

def set_gguf_parameters(self):
super().set_gguf_parameters()
hparams = self.hparams
self.gguf_writer.add_vocab_size(hparams["vocab_size"])

position_layers = hparams["position_layers"] # list of "rope"/"nope" strings per layer
head_sizes = hparams["head_sizes"] # list of int head dims per layer

# Per-layer rope/SWA pattern: True="rope", False="nope"
rope_pattern = [v == "rope" for v in position_layers]
self.gguf_writer.add_rope_pattern(rope_pattern)
self.gguf_writer.add_sliding_window_pattern(rope_pattern) # SWA <-> RoPE in domyn-edge

# window_sizes entries are flash-attn style [left, right] (current token excluded; -1 = full attention),
# while llama.cpp's n_swa counts the current token, hence the +1 (matches HF's sliding_window=1025)
swa_window = hparams.get("sliding_window")
if swa_window is None:
window_sizes = hparams.get("window_sizes") # list of [size, offset] pairs per layer
if window_sizes is None:
raise KeyError("Neither `sliding_window` nor `window_sizes` found among domyn edge hyperparameters")
left = next((ws[0] for v, ws in zip(position_layers, window_sizes) if v == "rope"), None)
swa_window = left + 1 if left is not None and left > 0 else None
if swa_window is None:
raise ValueError("No sliding window size found among domyn edge hyperparameters")
self.gguf_writer.add_sliding_window(swa_window)

# Head dims differ between full-attention ("nope") and SWA ("rope") layers
full_head_dims = {h for v, h in zip(position_layers, head_sizes) if v == "nope"}
swa_head_dims = {h for v, h in zip(position_layers, head_sizes) if v == "rope"}

if len(full_head_dims) != 1:
raise ValueError(f"Expected one head dimension for full attention layers, found {len(full_head_dims)}")
full_head_dim = full_head_dims.pop()

self.gguf_writer.add_key_length(full_head_dim)
self.gguf_writer.add_value_length(full_head_dim)

if len(swa_head_dims) != 1:
raise ValueError(f"Expected one head dimension for SWA attention layers, found {len(swa_head_dims)}")
swa_head_dim = swa_head_dims.pop()

self.gguf_writer.add_key_length_swa(swa_head_dim)
self.gguf_writer.add_value_length_swa(swa_head_dim)
self.gguf_writer.add_rope_dimension_count_swa(swa_head_dim)
6 changes: 3 additions & 3 deletions convert_hf_to_gguf_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class TOKENIZER_TYPE(IntEnum):
{"name": "mmbert", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/jhu-clsp/mmBERT-base", },
{"name": "k2-horizon", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/IFM/K2-Horizon-36B", },
{"name": "inkling2", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/thinkingmachines/Inkling-2-Small", },
{"name": "domyn-edge", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/domyn/Domyn-Edge-Teacher-IF", },
]

# some models are known to be broken upstream, so we will skip them as exceptions
Expand Down Expand Up @@ -227,8 +228,6 @@ def download_model(model):
repo = model["repo"]
tokt = model["tokt"]

os.makedirs(f"models/tokenizers/{name}", exist_ok=True)

files = ["config.json", "tokenizer.json", "tokenizer_config.json"]

if name == "gpt-4o":
Expand All @@ -243,6 +242,7 @@ def download_model(model):

if os.path.isdir(repo):
# If repo is a path on the file system, copy the directory
os.makedirs(f"models/tokenizers/{name}", exist_ok=True)
for file in files:
src_path = os.path.join(repo, file)
dst_path = f"models/tokenizers/{name}/{file}"
Expand Down Expand Up @@ -484,7 +484,7 @@ def get_vocab_base_pre(self, tokenizer) -> str:
tokenizer = AutoTokenizer.from_pretrained(f"models/tokenizers/{name}", use_fast=False)
else:
tokenizer = AutoTokenizer.from_pretrained(f"models/tokenizers/{name}")
except (OSError, TypeError) as e:
except (OSError, TypeError, ValueError) as e:
logger.error(f"Failed to load tokenizer for model {name}. Error: {e}")
continue # Skip this model and continue with the next one in the loop

Expand Down
3 changes: 3 additions & 0 deletions docs/backend/OPENVINO.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ The models below were tested with `llama-cli` and `Q4_K_M` files on an Intel® C
| [bartowski/prism-ml_Bonsai-8B-unpacked-Q4_K_M](https://huggingface.co/bartowski/prism-ml_Bonsai-8B-unpacked-GGUF) | ✓ | ✓ | ✓ |
| [LiquidAI/LFM2.5-2.6B-Q4_K_M](https://huggingface.co/LiquidAI/LFM2.5-2.6B-GGUF) | ✓ | ✓ | ✗ |
| [bartowski/inclusionAI_Ling-mini-2.0-Q4_K_M](https://huggingface.co/bartowski/inclusionAI_Ling-mini-2.0-GGUF) | ✓ | ✓ | ✗ |
| [tiiuae/Falcon-H1-0.5B-Instruct-Q4_K_M](https://huggingface.co/tiiuae/Falcon-H1-0.5B-Instruct-GGUF) | ✓ | ✓ | ✗ |
| | | | |
| [Qwen/Qwen3-Embedding-0.6B-Q8_0](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF) | ✓ | ✓ | ✗ |
| [ggml-org/bge-m3-Q8_0](https://huggingface.co/ggml-org/bge-m3-Q8_0-GGUF) | ✓ | ✓ | ✗ |
Expand Down Expand Up @@ -990,6 +991,7 @@ build\ReleaseOV\bin\llama-simple.exe -m "C:\models\Llama-3.2-1B-Instruct-Q4_K_M.
- Multimodal features (audio/image/video) are a work in progress.
- Embedding models: reranking models are not validated.
- Llama.cpp tool coverage across CPU/GPU/NPU is not uniform.
- Mamba-based models (e.g. Falcon-H1): `llama-perplexity` with several sequences per batch fails; set `-b` to the same value as `-c`. GPU accuracy is slightly lower than CPU.

**GPU-specific**

Expand All @@ -1012,6 +1014,7 @@ build\ReleaseOV\bin\llama-simple.exe -m "C:\models\Llama-3.2-1B-Instruct-Q4_K_M.
- `llama-perplexity`: requires `-b 512` or smaller.
- Flash attention must stay on, which is the default (`-fa auto`). With `-fa off`, the run fails on the NPU.
- `llama-embedding` fails on the NPU.
- Mamba-based models (e.g. Falcon-H1) fail on the NPU with `Failed to set tensor` (element type mismatch).
- Lunar Lake NPU: decode slows down sharply when the context is large. The context size at which this starts depends on the model.
- **Workaround:** Pass the smallest context that fits the use, e.g. `-c 512`, or `-c 256` for larger models.
- Panther Lake NPU: the load of a Qwen3.5 model can end with a segmentation fault in the NPU compiler of OpenVINO 2026.4.1.
Expand Down
4 changes: 2 additions & 2 deletions docs/ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Legend:
| ARGSORT | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | 🟡 | ✅ | ✅ | ✅ | ❌ | ❌ |
| CEIL | ❌ | ❌ | ✅ | 🟡 | 🟡 | 🟡 | ✅ | ✅ | 🟡 | ✅ | ✅ | ✅ | ❌ | ❌ |
| CLAMP | ❌ | ✅ | ✅ | ✅ | 🟡 | ✅ | ✅ | ✅ | 🟡 | ✅ | ✅ | ✅ | ❌ | ❌ |
| COL2IM_1D | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
| COL2IM_1D | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | 🟡 | ❌ | ❌ |
| CONCAT | ❌ | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ✅ | 🟡 | 🟡 | ✅ | ✅ | 🟡 | ❌ | ❌ |
| CONT | ❌ | 🟡 | ✅ | ✅ | 🟡 | 🟡 | ✅ | ✅ | 🟡 | ✅ | ✅ | 🟡 | ❌ | ❌ |
| CONV_1D_DW | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
Expand Down Expand Up @@ -90,7 +90,7 @@ Legend:
| PAD | ❌ | 🟡 | ✅ | 🟡 | ❌ | ✅ | 🟡 | ✅ | 🟡 | 🟡 | ✅ | ✅ | ❌ | ❌ |
| PAD_REFLECT_1D | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ |
| POOL_1D | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
| POOL_2D | ❌ | 🟡 | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
| POOL_2D | ❌ | 🟡 | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ |
| REGLU | ❌ | ✅ | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ❌ | 🟡 | ✅ | ✅ | ✅ | ❌ | ❌ |
| RELU | ❌ | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ✅ | ✅ | 🟡 | ✅ | ✅ | ✅ | ❌ | ❌ |
| REPEAT | ❌ | ✅ | ✅ | 🟡 | 🟡 | 🟡 | ✅ | 🟡 | ✅ | ✅ | ✅ | 🟡 | ❌ | ❌ |
Expand Down
Loading
Loading