Skip to content

Fix GGML_OP_COUNT assertion for RPC - #65

Merged
TheTom merged 1 commit into
TheTom:feature/turboquant-kv-cachefrom
cpburnz:patch-1
Apr 14, 2026
Merged

TheTom merged 1 commit into
TheTom:feature/turboquant-kv-cachefrom
cpburnz:patch-1

Conversation

@cpburnz

@cpburnz cpburnz commented Apr 10, 2026

Copy link
Copy Markdown

Overview

When compiling with the -DGGML_RPC=ON option, a static assert fails for GGML_OP_COUNT == 96. It should be 97.

Additional information

Specifically, compiling fails at:

/home/caleb/Downloads/llama-cpp-turboquant/ggml/src/../include/ggml-rpc.h:14:29: error: static assertion failed: GGML_OP_COUNT has changed - update RPC_PROTO_PATCH_VERSION

When compiling with the `-DGGML_RPC=ON` option, a static assert fails for `GGML_OP_COUNT == 96`. It should be 97.
@TheTom

TheTom commented Apr 14, 2026

Copy link
Copy Markdown
Owner

tested on M2 Pro:

confirmed: -DGGML_RPC=ON build fails on base branch with static assertion failed: GGML_OP_COUNT == 96

with this fix: RPC builds clean, assert passes with == 97

bench (1.5B Q4_K_M, p512/tg128): 1501 t/s prefill, 103 t/s decode — no regression

thanks for catching this!

@TheTom
TheTom merged commit 840f3d9 into TheTom:feature/turboquant-kv-cache Apr 14, 2026
1 check passed
UNDEFINED-BEHAVIOR referenced this pull request in UNDEFINED-BEHAVIOR/buun-llama-cpp-windows May 14, 2026
Phase A1 of multi-slot DFlash support (SD-078). Converts tape_gpu from a
context singleton into a vector of per-slot buffers so concurrent
llama-server slots don't clobber each other's DeltaNet tape entries
during verification decode.

- dflash_capture_data::tape_gpu (unique_ptr) → tapes (vector) + active_tape_idx
- allocate_tape_gpu(n_slots, max_tokens) overload; single-arg form = 1 slot
- set_active_dflash_slot(int) swaps cparams.tape_gpu pointer and invalidates
  graph reuse so the next decode resolves the new slot's tape tensors
- public API: llama_dflash_set_active_slot(ctx, slot_idx)
- eval callback and tape_replay read via active_tape() accessor

Default is 1 slot; behavior is byte-identical to pre-A1 for all single-slot
callers (spec-simple, llama-server -np 1). Multi-slot allocation will be
opted-in via --dflash-max-slots (task spiritbuun#65) once the server integration
piece lands.

Verified on dorei SD-078-A1 build: llama-speculative-simple with
Qwen3.5-27B-heretic Q4_K_M + DFlash Q4_K_M drafter gives 158.6 t/s
@ 70.520% accept (matches pre-A1 baseline exactly; tape allocation
30.4 MB = unchanged).

Co-Authored-By: Claude Opus 4 <[email protected]>
fukuro-kun referenced this pull request in fukuro-kun/fukuro-llama-cpp-turboquant Jul 19, 2026
…t — ⏭️ postponed

Training erforderlich (10M Samples, PyTorch), kein Code verfügbar
(anonyme MLSys-Submission), CC BY-NC-SA Lizenz (Non-Commercial),
Expert-Cache-Manager fehlt im Fork. Architektonisch möglich
(Gate POST-Attention, Predictor aus inpL), Gemma-4 kompatibel.
Re-Evaluation bei Code-Release oder Expert-Cache-Infra.
fukuro-kun referenced this pull request in fukuro-kun/fukuro-llama-cpp-turboquant Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants