Files
LocalAI/backend/cpp/llama-cpp-localai-paged/patches/paged/final_benchmark.csv
Ettore Di Giacinto 78fac9a28f refactor(paged): stock llama-cpp is patch-free; paged backend owns its patch series
Move ALL paged-attention content out of the stock backend/cpp/llama-cpp
backend and into backend/cpp/llama-cpp-localai-paged, so the stock backend is
pure upstream llama.cpp and the paged backend owns and applies its own vendored
patch series.

- Delete the dead early-exploration scaffold backend/cpp/llama-cpp/paged/
  (kernel/w4a16 Marlin scaffold, standalone paged_kv_manager, bench/loadgen,
  its own 0001-0002 patches, dense-era design docs, tests). Zero references
  repo-wide.
- Move backend/cpp/llama-cpp/patches/ (the 28-patch paged series + paged/README
  + 3 operational docs, plus the kernel/ scaffold patch and the top-level paged
  README/BENCHMARKS) to backend/cpp/llama-cpp-localai-paged/patches/. The stock
  backend keeps no patches/ dir; it had no non-paged base patches.
- Purify the stock backend: remove the LLAMA_PAGED make variable, the
  patches/paged apply loop, and the LLAMA_PAGED passthrough to prepare.sh;
  remove the paged-series handling from prepare.sh. The stock llama.cpp target
  now only clones the pin and applies its own (currently empty) base patches/
  series. The runtime paged option hooks in the shared grpc-server.cpp are
  untouched (inert without the patches).
- The paged backend's Makefile now applies its OWN patches/paged/0*.patch onto
  each freshly cloned tree via strict git apply (apply-paged-patches), after the
  copied stock infra clones the pin and applies base patches.
- Repoint every reference to the old patches/paged path: the upstream canary
  workflow + apply script, bump_deps.yaml, gallery/index.yaml, the docs,
  backend/index.yaml, backend-matrix.yml, the top-level Makefile comments, and
  the moved PIN_SYNC / README docs. Drop the now-removed LLAMA_PAGED=on
  build-toggle from comments.

Verified: the full 28-patch series applies strict-clean (git apply, exit 0) to
a clean ggml-org/llama.cpp checkout at the pinned c299a92c, and the repointed
canary apply script resolves and applies the series end to end.

Assisted-by: Claude:opus-4.8 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-06-27 11:01:22 +00:00

983 B

1modelenginenpldecode_agg_tpsdecode_perseq_tpsprefill_tpsttft_mean_mspeak_gb
2q36-27b-nvfp4llama882.59.57507.36038.153.51
3q36-27b-nvfp4llama32192.64.79115.0133551.769.63
4q36-27b-nvfp4llama64277.83.0995.9321618.883.96
5q36-27b-nvfp4llama128384.61.8669.7902762.793.82
6q36-27b-nvfp4vllm870.48.762096.21861.1110.92
7q36-27b-nvfp4vllm32211.86.282182.65353.2110.87
8q36-27b-nvfp4vllm64309.14.382088.99512.4110.88
9q36-27b-nvfp4vllm128418.82.791929.118449.5110.95
10q36-35b-a3b-nvfp4llama8211.824.451236.42477.139.66
11q36-35b-a3b-nvfp4llama32393.010.021213.98225.247.11
12q36-35b-a3b-nvfp4llama64527.06.151152.315849.557.13
13q36-35b-a3b-nvfp4llama128726.43.73276.8213017.261.51
14q36-35b-a3b-nvfp4vllm8256.531.845186.5768.8109.62
15q36-35b-a3b-nvfp4vllm32500.814.906223.41830.4109.63
16q36-35b-a3b-nvfp4vllm64686.19.835926.53224.4109.63
17q36-35b-a3b-nvfp4vllm128882.26.055300.56487.7109.64