Registry Mirror
Skip to content

Conversation

@dzannotti

@dzannotti dzannotti commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Merge upstream llama.cpp up to 9048bad (2026-11-17) into the fork. The fork's gfx1151 changes are kept.

Tests run on Strix Halo (gfx1151), all pass:

  • ctest -L main: CPU, HIP, Vulkan
  • test-backend-ops (full): HIP 56983/56983, Vulkan 61070/61070
  • validate.sh on the final tip, fork master vs this branch, HIP and Vulkan: no FAIL, test-backend-ops and test-llama-archs pass. Speed is the same or better (real models -1.3% to +3.2%, small model quants +4% to +8%). The open items are explained:
    • Quantizer output changed: only the imatrix file name in the metadata (upstream quantize: fix imatrix GGUF filepath metadata leak ggml-org/llama.cpp#32000). The tensor data is byte-identical.
    • qwen35moe server greedy decode: a tie at one token (logprob -1.222 vs -1.243 on the base build). The candidate picks the other one, as the base build does on Vulkan.
    • test-llama-context peak memory: on HIP, with -b 100 (the batch the test used before upstream changed it) the peak is the same as master (11900 vs 11895 MiB). On Vulkan, only the rollback case uses more memory: master fails it at position 6 and stops, this branch passes it.
    • Vulkan KV q4_0 pp512 @ d8192 at -7.0%: noise. The Vulkan code is the same as the previous validated tip, where this row was +1.3%. A rerun with 20 samples per side gives a median of -1.2%.
    • KLD a little above the reference on some real-model texts: against CPU logits the candidate is as close as master or closer (qwen3 HIP code 0.0054 vs 0.0057, numeric 0.0053 vs 0.0063; qwen35moe Vulkan prose 0.0049 vs 0.0050, numeric 0.0063 vs 0.0062 +/- 0.0005).
  • Rerun on the final tip: llama-bench of both real models on HIP and Vulkan within -0.9% to +3.0% of master (each within the run's own spread). Q8_0 mat-vec at 1 to 8 columns on HIP (upstream MMVQ: Tune ne11 Gate for RDNA3_5 ggml-org/llama.cpp#32308 gate): 0.0% to 0.9% faster, 5 rounds.

Also fixes a race in test-llama-archs: its ctest entries shared the same temporary GGUF files under ctest -j.

Fixes for the CI jobs added by upstream: the fork code now builds with -Werror (behavior-check), on WASI (no mmap in llama-ple-disk) and on Windows; fork tools and tests moved to the new llama_process batch API; upstream's --ple alias of --shard is removed, because the fork already uses --ple for the PLE table; test-rocmfp2-reference builds with -ffp-contract=off, so FMA runners give exact results; a data race on the GGML_ALLOC_DRY_RUN lazy init is removed (found by TSAN); UI import order is fixed for the new lint. Red CI jobs left: test-grammar-parser and test-qwen4exp-mtp-cache-only on llvmpipe, which also fail on master.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE

dzannotti and others added 30 commits November 15, 2026 00:51
Upstream: ggml-org/llama.cpp 7a2e5ab..fae9ac5 (4 commits)

Conflicts:
- .github/workflows/release.yml: kept deleted (retired by the fork in #222); upstream changed only steps the fork no longer runs.

verify REVIEW: only workflow files the fork disabled or deleted; the listed lines are upstream's own CI changes.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp fae9ac5..d78f40d (1 commits)

Conflicts:
- src/llama-graph.cpp: kept the fork's null-safe mask checks, which cover upstream's unallocated-mask case for glm5-next DSA too.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp d78f40d..85cc432 (4 commits)

Conflicts:
- common/common.cpp: took upstream's common_fit_apply and carried the fork's mtp_draft_vocab for the MTP draft context into it (edit in the moved function).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 85cc432..27b7a8a (6 commits)

Conflicts:
- src/models/models.h: kept the fork's QSA declarations (build_qsa_store_k / build_qsa_top_k); upstream's build_qsa_sel belongs to the k-pool path the fork replaced.
- src/models/qwen4exp.cpp: kept the fork QSA (maskless selected-key attention, strip selection); upstream's change rebuilds the k-pool sparse selection the fork does not use.

verify REVIEW: qwen4exp.cpp diff moved by one line where upstream removed kq_mask from its own k-pool selection; the auto-merge also dropped kq_mask from the fork's build_qsa_top_k declaration in models.h, restored (fix in this commit).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 27b7a8a..6886628 (11 commits)

Conflicts:
- tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte: upstream's search dialog (no mobile search route, itemClickHandler(item)) with the fork's external dashboard link (externalHref: href, no click handler, ExternalLink icon); the expanded button's href goes back to itemHref (edit after the hunk).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 6886628..f5222f2 (15 commits)

Conflicts:
- ggml/src/ggml-cuda/mmq.cu: upstream's MoE gate/up/GLU fusion (fusion_device filled up front, passed on the ids path too) on the fork's fusion_gate name; the assert also rejects the fork's swiglu-quantize input fusion together with it.

verify REVIEW: the two mmq.cu fork lines are the fusion assert / fill, now in upstream's form (MoE allowed).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp f5222f2..604cc43 (2 commits)

Conflicts:
- README.md: kept the fork README header (the fork rewrote README.md); upstream's maintainer-PR link change is for upstream's README.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 604cc43..ff0d396 (2 commits)

Conflicts:
- .github/workflows/release-publish.yml: kept deleted (the fork retired this workflow); upstream changed only steps the fork no longer runs.
- .github/workflows/release.yml: kept deleted (retired by the fork in #222); upstream changed only steps the fork no longer runs.

verify REVIEW: only workflow files the fork disabled or deleted; the listed lines are upstream's own CI changes.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp ff0d396..78febba (23 commits)

Conflicts:
- scripts/hip/gcn-cdna-vgpr-check.py: kept the fork's rewritten gfx1151 spill gate (baseline json); upstream only added a CDNA kernel to its ignore list, which the fork's gate does not use.

verify REVIEW: the vgpr-check fork diff grows by upstream's one new ignore-list line, which the fork's rewrite drops.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 78febba..3dd0f60 (1 commits)

Conflicts:
- docs/ops.md: upstream's OpenCL column update with the fork's EXL3 op rows kept.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 3dd0f60..3ed915e (3 commits)

Conflicts:
- tools/ui/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte: took upstream's restructured sidebar (the collapsed icon strip is gone) and re-applied the fork's external dashboard link on its single list: itemHref, rel / target, no click handler, ExternalLink icon.

verify REVIEW: the missing lines were the fork's copies for upstream's collapsed icon strip, which upstream removed (one copy per remaining list is kept).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 3ed915e..68d20b8 (7 commits)

Conflicts:
- conversion/base.py: both: the fork EXL3 payload copy, then upstream's FP8 E4M3 preparation.
- ggml/include/ggml.h: upstream's GGML_TYPE_F8_E4M3 = 43 (a free id below the fork's 100+ range; GGML_TYPE_COUNT stays 150, the fork comment on unused ids updated to 44..99) and GGML_FTYPE_MOSTLY_F8_E4M3 = 29 beside the fork's ftypes.
- ggml/src/ggml-cpu/ops.cpp: both: fork ROCmFPx cases and upstream F8_E4M3 in each type switch.
- ggml/src/ggml-metal/ggml-metal-device.m: both GET_ROWS exclusions (fork trellis types, upstream F8_E4M3).
- ggml/src/ggml-quants.c: both dequantize functions (fork ROCmFPx, upstream F8_E4M3; brace junction restored).
- gguf-py/gguf/constants.py: both: fork trellis types and upstream F8_E4M3 (43), in the enum and the size table.
- include/llama.h: both ftypes: the fork's trellis / ROCmFPx ones and upstream LLAMA_FTYPE_MOSTLY_F8_E4M3 = 42 (free in the fork).
- src/llama-model-loader.cpp: both ftype names and type -> ftype cases.
- tests/CMakeLists.txt: both: the fork MTP cache-only test and upstream's FP8 tests.
- tests/test-backend-ops.cpp: both type lists (fork ROCmFPx, upstream F8_E4M3).
- tests/test-quantize-fns.cpp: both tests (fork PTQ1_0 dot, upstream F8_E4M3).

verify REVIEW: the ggml.h comment now says 44..99 (43 is upstream's F8_E4M3); the metal line gained '&&' for upstream's added check.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 68d20b8..eb4e244 (1 commits)

Conflicts:
- ggml/src/ggml-cuda/mmvq.cu: kept the fork's separate RDNA3.5 MMVQ table and added upstream's RDNA4_M to the RDNA2 table where upstream puts it.

verify REVIEW: the two fork lines gained upstream's RDNA4_M.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp eb4e244..fb59972 (6 commits)

Conflicts:
- src/llama-graph.cpp: kept the fork's null-safe lightning-indexer mask check; the rotation set_input goes with upstream (the rotation is now a per-layer device constant).
- src/llama-kv-cache.cpp: dropped set_input_k_rot / v_rot with upstream (rotation constants live on the device).
- src/llama-kv-cache.h: kept the fork's is_causal_prefix declarations, dropped the set_input_*_rot ones with upstream.
- src/models/qwen4exp.cpp: fork comment with upstream's per-layer self_k_rot[il]; the fork's other qwen4exp rotation uses (maskless attention output, cache-only MTP K/V) moved to self_k_rot[il] / self_v_rot[il] too (edits outside the hunk).

verify REVIEW: the 5 qwen4exp fork lines are the same rotation calls indexed per layer ([il]), upstream's new form.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp fb59972..f72dc30 (30 commits)

Conflicts:
- README.md: kept the fork README (the fork rewrote README.md for Strix Halo); upstream's edit is to its own README text.

verify REVIEW: only workflow files the fork disabled or deleted; the listed lines are upstream's own CI changes.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp f72dc30..07ec7c8 (13 commits)

Conflicts:
- ggml/src/ggml-vulkan/ggml-vulkan.cpp: kept the fork's split-K condition (every n, #242, measured on gfx1151); upstream's RDNA small-n split-K block and its then unused rdna flag are not taken (Q4, keep fork, measure later).

verify REVIEW: ggml-vulkan.cpp fork diff grows by upstream's RDNA small-n split-K lines, which are not taken (Q4).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 07ec7c8..dcbb091 (1 commits)

Conflicts:
- ggml/src/ggml-vulkan/ggml-vulkan.cpp: both proc addresses: the fork's dispatch-census test hooks, then upstream's tensor-parallel comm functions (non-Windows); name is always used now, so upstream's UNUSED lines are dropped.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp dcbb091..6b00d56 (5 commits)

Conflicts:
- README.md: kept the fork README (the fork rewrote README.md for Strix Halo); upstream's edit is to its own README text.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 6b00d56..1b6935b (3 commits)

Conflicts:
- ggml/src/ggml-cpu/ops.cpp: both: the fork's selected-key list (now read from src[6]) and upstream's kv_rows (src[5]) in the FA chunk; the fork's tiled-kernel guard checks src[6].
- ggml/src/ggml-cuda/fattn-mma-f16.cuh: upstream's kv_rows indices on every tile load, with the fork's short-address template argument and i_load (the opaque copy of i) also in upstream's new indexed branch.
- src/llama-graph.cpp: took upstream's llm_attn_mask (raw / cnv / rows), set_input_attn_mask, can_reuse_attn_mask and the kv_rows argument of build_attn_mha, and re-applied the fork: llama_host_write for the host masks, the null-safe MLA / hybrid mask checks (maskless selected-key attention), the named mask tensors (build_attn_inp_attn_mask takes the fork's name argument too), cb names, can_reuse_causal_prefix in both reuse checks, and the causal-prefix hint, which is now off when the mask is over kv_rows (also in can_reuse_causal_prefix, outside the hunks); build_attn_mha asserts no top_k with kv_rows and drops the hint with kv_rows (outside the hunks).
- src/llama-graph.h: kept the fork's get_kq_mask() (now self_attn_mask.cnv) and can_reuse_causal_prefix on upstream's llm_attn_mask input.
- src/llama-kv-cache.cpp: the fork's per-sequence copied-row mask fill with parallel rest rows, on upstream's kv_rows columns (rows per stream; the fill already indexes cells through rows[c]); llama_host_write for the rows and the mask.
- src/models/deepseek4.cpp: the fork's top-k call with upstream's new kv_rows argument (nullptr).
- src/models/qwen4exp.cpp: kept the fork QSA call with upstream's new kv_rows argument (nullptr); the fork's maskless call outside the hunk gets it too.
- tests/test-backend-ops.cpp: both: the fork's FA top-k / QSA tests and upstream's kv_rows test (the shared initialize_tensors tail duplicated for the fork struct).

Edits outside the conflicts: the fork's FA selected-key list moves from src[5] to src[6], because upstream now puts kv_rows in src[5]: ggml/src/ggml.c (ggml_flash_attn_ext_add_top_k sets src[6] and asserts src[5] and src[6] are empty), ggml/src/ggml-cpu/ggml-cpu.c (work size), ggml/src/ggml-cpu/ops.cpp, ggml/src/ggml-cuda/fattn.cu (maskless abort and supports check), ggml/src/ggml-cuda/qsa-decode.cu and qsa-prefill.cu (the list is src[6]; both reject an op with kv_rows), ggml/src/ggml-cuda/ggml-cuda.cu (gated FA output overlap check also covers src[6]), ggml/src/ggml-vulkan/ggml-vulkan.cpp (flash_attn_sel, top-k, gather-compact, NaN-safe V and supports_op; upstream's Vulkan rejects kv_rows). src/llama-context.cpp: kv_rows is not enabled for qwen4exp (its QSA reads the dense mask layout and selected keys over the dense K/V view).

verify REVIEW: every listed fork line is re-spelled, none dropped in effect: the src[5] reads of the FA selected-key list are now src[6] (ggml.c, ggml-cpu.c, ops.cpp, fattn.cu, qsa-decode.cu, qsa-prefill.cu, ggml-cuda.cu, ggml-vulkan.cpp); the llama-graph.cpp mask lines use upstream's llm_attn_mask names, and the fork's null-safe 'if (mask && mask->buffer)' checks are now inside upstream's set_input_attn_mask, which skips an unallocated mask (kept explicitly for MLA and the hybrid input); the build_attn_mha calls in deepseek4.cpp / qwen4exp.cpp take the new kv_rows argument; the fattn-mma else-branch line moved into upstream's indexed branch with i_load.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 1b6935b..d02b4c0 (2 commits)

Conflicts:
- tools/server/server-context.cpp: both: the fork's model arch / description fields and upstream's TTS voice list.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp d02b4c0..2cbca38 (2 commits)

Conflicts:
- src/llama-batch.h: both members (fork resident nextn, upstream embd rows).
- src/llama-context.cpp: both graph params (fork exl3, upstream layer input device buffers), in member order.
- src/llama-context.h: both: fork vocab-subset LM head members and upstream layer-input device buffer / events.
- src/llama-graph.cpp: both initializers, in member order.
- src/llama-graph.h: both members and both reuse checks (fork exl3 / mtp_draft_vocab, upstream layer_inp_dev / src).

verify REVIEW: only fork diff sizes moved by 1-2 lines (alignment next to upstream's new members); no fork line missing.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 2cbca38..713319e (3 commits)

Conflicts:
- tests/test-backend-ops.cpp: both perf case lists (fork qwen4exp shapes, upstream ARANGE).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 713319e..74101b3 (1 commits)

Conflicts:
- scripts/hip/gcn-cdna-vgpr-check.py: kept the fork's gfx1151 spill gate; upstream only renamed CDNA ignore-list kernels for the kv_rows FA argument. Note: the fork's gfx1151 baseline json may need the new FA kernel signatures (checked at the end-of-sync VGPR gate).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 74101b3..ca8daad (5 commits)

Conflicts:
- src/llama-graph.cpp: kept the fork's named mask tensors and cb names, dropped the .cnv copies with upstream.

Edit outside the conflicts: src/llama-graph.h, the fork's get_kq_mask() returns self_attn_mask.raw (cnv is gone).

verify REVIEW: the fork's .cnv lines are dropped with upstream's removal of cnv.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp ca8daad..8fc0376 (9 commits)

Conflicts:
- ggml/src/ggml-cuda/quantize.cu: kept the fork's chunked quantize_mmq_q8_1 loop and applied upstream's correction-sum fix inside it (sum of the quantized values times d, computed after the rounding).

verify REVIEW: the fork's correction-sum lines are replaced by upstream's fixed form (quantized sum times d) inside the fork loop.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 8fc0376..749db7f (5 commits)

Conflicts:
- src/models/qwen4exp.cpp: same change on both sides (the fork already wrote the conv tail without a cont); kept the fork comment.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 749db7f..6cb3e67 (9 commits)

Conflicts:
- common/speculative.cpp: kept the fork's is_mem_shared test (gemma4 assistant only, a qwen4exp shared sidecar does not share memory); the nextn setters moved after it with upstream (target masked only when the memory is shared).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 6cb3e67..e56f006 (26 commits)

Conflicts:
- src/llama-context.cpp: took upstream: it fixes the same quantized-KV state copy size the fork fixed, and adds the divisibility asserts.

verify REVIEW: the fork's three copy-size lines are replaced by upstream's identical fix (plus asserts).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp e56f006..5ce06fc (1 commits)

Conflicts:
- ggml/src/ggml-cuda/mmq.cu: upstream's NVFP4 fusion scales and fused src1 precision on the fork's fusion_gate name; the assert still rejects the fork's swiglu-quantize input fusion.
- ggml/src/ggml-cuda/mmq.cuh: upstream's has_fusion write-back for NVFP4, then the fork's ROCMFP4_FAST case (unfused); the fork's HIP Q4 guard kept before upstream's extended fusion guard.

verify REVIEW: the fork fusion lines are re-spelled in upstream's NVFP4-aware form.

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 5ce06fc..3259ab6 (7 commits)

Conflicts:
- ggml/src/ggml-vulkan/ggml-vulkan.cpp: both: the fork's forward declarations / tile tables and upstream's AMD proprietary-driver large-tile check (RADV is unaffected).

Assisted-by: Claude Opus 5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
dzannotti and others added 13 commits November 17, 2026 17:05
Upstream: ggml-org/llama.cpp 8f647f1..67cf896 (4 commits)

Conflicts:
- ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte: kept the fork ExternalLink import (server dashboard link) with upstream ggml-org#32463's #lib/.../index.ts aliases; upstream now imports goto and page itself, so the fork copies are dropped.
- ui/apps/chat/src/lib/constants/ui.constants.ts: kept the fork Gauge icon and SERVER_DASHBOARD_URL imports with upstream's #lib aliases.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 67cf896..054a1ba (2 commits)

Conflicts:
- ggml/src/ggml-cuda/fattn-mma-f16.cuh: kept the fork load_mask / load_tile template arguments (padding, short addresses) and took upstream ggml-org#32407's kb0_next*nbatch_fa offsets for the next K/V block. The K/V block rotation only engages with multi-stage loading (cp.async, Ampere and later); on HIP nstages is 0, so the block order on gfx1151 is unchanged.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 054a1ba..7f106b5 (3 commits)

Conflicts:
- ui/apps/chat/src/lib/components/app/navigation/SidebarNavigation/SidebarNavigationActions.svelte: kept both imports: the fork ExternalLink icon (server dashboard link) and upstream ggml-org#32468's Button from @ggml-org/llama-ui.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 7f106b5..d3064fd (1 commits)

Conflicts:
- conversion/base.py: kept both: upstream ggml-org#32476's block-scaled FP8 dequant inside the modelopt branch, then the fork exl3 branch.
- conversion/qwen4exp.py: kept the fork import of logger next to upstream's LazyTorchTensor.
- src/models/qwen4exp.cpp: kept the fork PLE table modes (on-disk, EXL3, host gather) and took upstream's optional per_layer_tok_embd scale tensor; it is created for every table mode and applied after the gather on both the graph and the host-gather path (both gather with the type's to_float, so the rows arrive unscaled).

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp d3064fd..08a9b35 (2 commits)

Conflicts:
- tests/test-llama-archs.cpp: kept both new functions, the fork test_merged_weights and upstream ggml-org#32137 check_draft_rollback; the fork function gets its closing brace back at the junction.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 08a9b35..8777c0c (4 commits)

Conflicts:
- ggml/src/ggml-cuda/ggml-cuda.cu: kept the fork MMB routed path and added upstream ggml-org#32065's few-row MMQ for MUL_MAT_ID after it, as in the dense path. The few-row gate returns 0 on every non-NVIDIA device (ampere_mma_available), so MoE dispatch on gfx1151 is unchanged.
- ggml/src/ggml-cuda/quantize.cu: kept the fork quantize_mmq_q8_1_swiglu_cuda and took upstream's quantize_mmq_few_store helper after it; the fork function gets its closing brace back at the junction.

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Upstream: ggml-org/llama.cpp 8777c0c..ad9d9e8 (3 commits)

No conflicts. Upstream ggml-org#32483 replaces the PLE scale multiply with ggml_scale and a value read once after load; it lands on the fork placement from the previous step (after the gather, on both the graph and the host-gather path).

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
The UI assets come from a Hugging Face bucket at build time. Its
"latest" tag now holds the SvelteKit 3 build without workbox*.js, so a
fork commit from before the move fails its asset check and the
baseline does not build. validate.sh uses only the server API, so both
sides build with LLAMA_USE_PREBUILT_UI=OFF (an empty UI table).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
* Added support for Qwen3-TTS ICL/reference mode

Assisted-By: Claude Opus 5.5

* fix correctness

* attach transcription to bitmap

* nits

---------

Co-authored-by: Xuan Son Nguyen <son@huggingface.co>
The fast CONV_2D path (implicit GEMM with MMA, or cuBLAS for
pointwise convolutions) required an F16 kernel. F32 kernels fell
back to the naive direct convolution, which is much slower than
im2col + mul_mat on large channel counts.

Convert F32 kernels to F16 in a pool buffer, as is already done for
the input, and take the same path with F32 accumulation. The Metal
implicit GEMM kernel already stages both operands as F16.
Upstream: ggml-org/llama.cpp ad9d9e8..9048bad (3 commits)

Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
The fork runs test-llama-archs as more than one ctest entry. With ctest -j,
two entries wrote and read the same test-llama-archs-<n>.gguf, and one
failed with "failed to read magic".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
@dzannotti dzannotti changed the title Merge upstream llama.cpp up to e574a17b0 (2026-11-15) Merge upstream llama.cpp up to 9048bad8d (2026-11-17) Nov 17, 2026
dzannotti and others added 8 commits November 18, 2026 01:53
…sed-parameter

The new behavior-check CI job builds with LLAMA_FATAL_WARNINGS. The top-k
tests that override max_err(backend) hid max_err(), and one
initialize_tensors() did not use its context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
…sts to llama_batch_ext

Upstream deprecated llama_batch_init, llama_decode and llama_batch_free
(ggml-org#32356), and the behavior-check job builds with -Werror. The MTP draft-vocab
test passes its hidden state with llama_batch_ext_set_embd_state, the entry the
old token+embd batch was converted to. llama-speculative-prefill gives the same
kept tokens and output as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
…hard

Both sides registered --ple and test-arg-parser failed on the duplicate. The
fork's --ple replaces lookup tables of the same name and llama-bench uses it;
upstream's external PLE file loading stays available as --shard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
It is not exported from the Windows DLL and test-llama-archs failed to link
on Windows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
WASI has no mmap. The preload buffer reports no mapping there and the
preload falls back as it does when the mapping fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
The UI lint job failed on simple-import-sort in two files the fork changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
The test compares binary64 sums for exact equality. With an FMA target (the
ubuntu-26.04 CI runners) the compiler fused some sums and not others, and the
test failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
Two contexts reserving at the same time raced on the static (thread
sanitizer, test-thread-safety).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKmjzcT1LTvKtbw9EzBVGE
@dzannotti
dzannotti merged commit f5e7a5d into master Nov 18, 2026
25 of 32 checks passed
@dzannotti
dzannotti deleted the sync/upstream-2026-11-15-e574a17b0 branch November 18, 2026 06:01
dzannotti added a commit that referenced this pull request Nov 18, 2026
ci : fix test-grammar-parser and test-draft-vocab after #293; explain test-qwen4exp-mtp-cache-only
@waltercool

waltercool commented Nov 19, 2026 •

Copy link
Copy Markdown

They merged my commit, a PR previously rejected because "we don't serve old architectures" lol

#257

Not sure if say "sorry" or "thank you"...

9145ddb

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.