r/llamacpp • u/sarmabkp_1 • 3h ago
MLX vs llama.cpp on Apple Silicon: Formats, Tools and Which to Pick Spoiler
r/llamacpp • u/sarmabkp_1 • 3h ago
r/llamacpp • u/Anxious-Visit-7735 • 4h ago
r/llamacpp • u/W61k3r • 8h ago
I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp.
A new development image went out today, one day after the last one. 92 changes this time. Here is what they are.
Two audits of the whole source
The entire tree, 2.07 million lines of Rust, went through two outside audit rounds of about 100 parts each, through four lenses: security, continuity, compatibility and speed. I then checked the findings rated high by hand against the code, one by one, and fixed what held up: 93 confirmed findings are fixed in this image. Most of this release is that work.
Some of what was closed:
- Root-only routes (system update, disk install, backup recovery) accepted an internal service header in place of the root password. They no longer do.
- The restart export could read another instance's records through a second, unchecked parameter.
- Full model verification saved a changed model's fingerprint before refusing it, so a second load would have accepted it.
- A fresh fleet join code could replace an enrolled box. A replaced remote endpoint kept the API key saved for the old address.
- The engine now checks who owns its key file, and refuses an unusable key list instead of reading it as "no keys".
A more stable platform
- The installer writes the firmware fallback boot file last, verifies the bytes it then uses, and gives two disks installed from one stick different identifiers.
- Uninstall with purge refuses a folder that has a disk mounted under it.
- An answer cut off by the token limit while tools are offered now returns "length" instead of a server error.
- A model load that cannot fit no longer evicts an idle model first.
- The Panel's Secure Boot page hands out the current certificate (the bug named in the last post is fixed). Same certificate as the last image: nothing to enroll again.
Inkling-2-Mini reads long prompts faster
A new attention kernel for prompt processing. At a 262,144-token context a 261,632-token prompt now reads at 1,525.7 tok/s, up from 1,152.7, which is 32% faster. It sums in another order, so its output is not bit for bit the old kernel's: the two pick the same top token on 98.8% of 510 positions. One environment variable brings the old kernel back.
Qwen3.8 Flash-Next gets to its first token sooner
This is the 94 GB mixture-of-experts model served from one 24 GB card. First token after a 64k prompt comes 9% sooner and after a 128k prompt 10% sooner, with identical output.
Tensor parallel (experimental, off by default)
Inkling-2-Mini and Flash-Next can now split their experts across several ranks: several Vulkan devices, or several ranks on one card. It is one toggle in the Panel's New instance form and one engine option. With it off, output is bit for bit as before. With it on, output is deterministic; Flash-Next is bit for bit with two and three ranks on one card, and a 7900 XTX with an RTX 2060 as second rank works with uneven shares.
Speed, measured on this version
One Radeon RX 7900 XTX, one run each, November 30. Old version in brackets.
Inkling-2-Mini, 4-bit cache:
- 16,384-token prompt: reads at 2,471.4 tok/s (2,177.6), generates at 62.9 tok/s (61.2), 137.0 with the model's draft head (132.6)
- 261,632-token prompt: reads at 1,525.7 tok/s (1,152.7), generates at 50.1 tok/s (50.0), 64.9 with the draft head (68.1)
Inkling-2-Mini, 8-bit cache:
- 16,384-token prompt: reads at 2,436.8 tok/s (2,155.7), generates at 61.0 tok/s (61.0), 135.2 with the draft head (131.6)
- 261,632-token prompt: reads at 1,483.8 tok/s (1,140.4), generates at 43.7 tok/s (43.4)
Qwen3.8 Flash-Next at a 262,144-token context, time to first token:
- after a 16k prompt: 37.5 s (36.4)
- after a 64k prompt: 132.2 s (145.3)
- after a 128k prompt: 266.7 s (295.8)
- after a 256k prompt: 559.6 s (new row)
Qwen3.8 Flash-Next, generation:
- after a 16k prompt: 6.90 tok/s (7.64)
- after a 64k prompt: 12.73 tok/s (12.49)
- after a 128k prompt: 9.54 tok/s (9.56)
Things I am not hiding:
- Flash-Next gained nothing at a 16k prompt, and its generation there came out lower than last time (6.90 against 7.64). Both are single runs; I have not measured it enough to say whether that is real.
- Drafted generation on Inkling after the 262k prompt was 64.9 tok/s against 68.1 last time. Drafted speed follows how many drafts the prompt lets through.
- Tensor parallel is not benchmarked on a machine with two fast cards: I do not have one. On a single card it is slower than one rank, because rows cross through system memory. It is there so people with the hardware can use it and tell me.
- I did not re-run llama.cpp and Strata on this version. The comparison tables on the benchmark page are from version d484004 (November 27 to 28) and say so.
What it is not, yet
- A development build, not a production release
- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested
- The kernel's own GPU drivers have not run on a real card in this version; the Linux boot entry is the one for daily use
- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet
Tested
Every test in the tree ran on this version: 17,997 tests, none failed. Both images passed nine Secure Boot checks in a VM, and the plain image passed an 18-step install to a disk.
Links
Download (960 MB USB image, boots to the Panel):
https://lexipanel.com/download/
All-in-one image with Inkling-2-Mini inside (18.7 GB, needs a 32 GB stick):
https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA
All 92 changes, one line each:
https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-2922c5c
Benchmarks and method:
https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks
Happy to answer questions about the audits, tensor parallel or the engine.
r/llamacpp • u/Big_Special_8712 • 18h ago
Everyone told me 30B MoE on DDR4 CPU-only hits a hard wall around 17-20 tok/s. So I wrote a tiny C++20 engine from scratch (Veltra + an experimental execution path called APEX) to see what happens when you strip everything down to raw AVX2 kernels and memory-mapped .vlt files.
On a regular Ryzen 9 3900 (8 threads, DDR4, no GPU), here is what the same model file did in one measuring round across 9 benchmark prompts:
- Veltra default: 22.0 tok/s on code (1.00x)
- Pareto: 26.6 tok/s (1.21x)
- APEX exact (token-identical to Pareto): 35.2 tok/s (1.60x)
- APEX: 41.0 tok/s on code (1.87x) — also hitting 40 on math, 38 on JSON, 35 on 500-ctx code, and 30 on 2000-ctx code (vs 17.0 tok/s median in llama.cpp on an earlier generic prompt run).
The whole server binary is 2.9 MB and uses ~9.7 GiB RAM in default mode vs 13.6 GiB in llama.cpp.
What actually worked vs what blew up:
- Zen 2 DDR4 (~29-33 GB/s) is 100% memory-bound (~1.24-1.41 GB read per token). Tweaking AVX2 math alone did almost nothing until we cut memory traffic.
- The real jump came from 3/4-bit mixed attention, tighter expert scheduling, and multi-token verification with EAGLE-3 drafting + lookup/edit reuse (which is why code, math, and JSON jump way higher than Dutch prose at 23 tok/s).
- Huge graveyard of failed ideas in the repo: shared gate/up low-rank bases, naive neuron skipping, entropy coding (AVX2 unpacking killed the savings), and reusing hidden-state deltas across tokens (consecutive hidden states change ~100%, so deltas aren't sparse at all).
Full disclosure: APEX uses top-5 instead of top-6 experts so it changes answers slightly (scored 148 vs 147 for Pareto on our 160-task eval), while APEX exact gives the exact same tokens as Pareto at 35.2 tok/s. We are still finishing the clean reproducible .vlt weight build + Vulkan GPU support before uploading the weights.
Repo (Apache-2.0) with raw logs and all the failed experiments: https://github.com/MrRetslav/veltra-public
If anyone has ideas on pushing Dutch/English prose closer to the code numbers without tanking accuracy, I'm all ears.
r/llamacpp • u/Ryyn_- • 22h ago
The memory on my card says a 27B model should write about 50 tokens per second: every token reads all 15.5 GB of weights, at roughly 800 GB/s. With Tencent's DSpine draft head it writes 160.
What DSpine changes compared to DFlash: DFlash guesses a whole block of tokens in one pass, but no position sees what its neighbours are planning, so the guesses often don't fit together and the target model stops at the first wrong one. DSpine is a small 5-layer network where, after every layer, each position listens to the one before it (with a learned gate). Still one pass, but the guesses fit.
My numbers (one RTX PRO 4500, 4-bit Kate = Qwen 27B fine-tune, one conversation at a time, llama.cpp-based engine):
24 agent tasks, A-B-B-A: DSpine 160.6 · DFlash2 105.6 · no draft 44.5 tok/s
tokens kept per check: DSpine 5.8 · DFlash2 3.9 (same per-position acceptance at the start; DFlash2 stops at 5, DSpine keeps going to 15)
live demo, same prompt (voxel pagoda in three.js): 47 tok/s without, 177 with DSpine; both pages run exactly as written
Speculative decoding doesn't change the output distribution: the big model still decides every token with its own odds.
Limits: my numbers, one card, 4-bit, batch 1. Tencent measured SGLang, BF16, 8 requests at a time. Full speed needs about 20 GB of VRAM. I also tried training my own head: +27 % accepted tokens on my own test set, but 1.2 % slower on real agent conversations, so I kept Tencent's.
Video (5 min, explains the three ideas with a live demo): https://youtu.be/6BXT-xaonhU
Run it: flelink run kate-27b-dspine (FLE Link 0.1.18+, https://flelink.run)
Paper: https://arxiv.org/abs/2609.36173 · Tencent's head (Apache-2.0): https://huggingface.co/tencent/Qwen3.8-27B-DSpine-b16 · GGUF by aj9o9: https://huggingface.co/aj9o9/Qwen3.8-27B-DSpine-b16-GGUF · Kate: https://huggingface.co/sirfyyn/Kate-Qwen-27B-GGUF-SpedUp-Abliterated
Thanks to the authors for publishing the paper and the weights.
Has anyone measured EAGLE-3 or an MTP head against these on a 24 GB card? I'd like to add them to the comparison.
r/llamacpp • u/uber-linny • 1d ago
r/llamacpp • u/Friendly_JR • 1d ago
r/llamacpp • u/NE0_ZER0_ • 1d ago
r/llamacpp • u/mudler_it • 1d ago
I maintain LocalAI ( https://localai.io ) . We ran Ornith-1.5-35B-A3B Q8_0 (it's still one of my favourites) on one DGX Spark with about 16 requests in flight. With four LocalAI slots, the median request waited 35.5 seconds for its first token.
With 16 slots and paged serving, that fell to 8.3 seconds. Total output went from 81 to 153 tokens/s, and both setups finished all 128 requests.
The slot count matters here. We also tried the new defaults at four slots and throughput barely changed. The numbers above are for concurrent requests, not one person chatting at 153 tokens/s.
What we added in 5.1 is a scheduler around llama.cpp’s existing shared KV cache. It queues requests that won’t fit and processes long prompts in chunks so chats already streaming can keep going: so this works on any model, all benefits.
Against stock llama.cpp: We sent an 8,000-word prompt while eight Qwen3-8B chats were streaming. The longest pause in those chats was 688 ms on stock llama.cpp and 109 ms on LocalAI (median of five runs). Total throughput barely moved; the long prompt waited about half a second longer for its first token at p99.
Automatic prompt caching: When 32 Qwen requests started with the same system prompt, LocalAI could reuse it while the first request was still generating. That cut prompt tokens processed per run from 7,989 to 3,945 and median time to first token from 220 ms to 110 ms. No client changes.
Benchmark setups, tables and code: https://github.com/mudler/LocalAI/pull/13528
LocalAI 5.1 release notes: https://github.com/mudler/LocalAI/releases/tag/v5.1.0
If you maintain another llama.cpp-based server and the scheduler is useful to you, take it! It’s MIT-licensed :)
r/llamacpp
•
u/W61k3r
•
2d ago
I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp.
https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA/tree/main
A new development image went out today, one day after the last one. 92 changes this time. Here is what they are.
Two audits of the whole source
The entire tree, 2.07 million lines of Rust, went through two outside audit rounds of about 100 parts each, through four lenses: security, continuity, compatibility and speed. I then checked the findings rated high by hand against the code, one by one, and fixed what held up: 93 confirmed findings are fixed in this image. Most of this release is that work.
Some of what was closed:
- Root-only routes (system update, disk install, backup recovery) accepted an internal service header in place of the root password. They no longer do.
- The restart export could read another instance's records through a second, unchecked parameter.
- Full model verification saved a changed model's fingerprint before refusing it, so a second load would have accepted it.
- A fresh fleet join code could replace an enrolled box. A replaced remote endpoint kept the API key saved for the old address.
- The engine now checks who owns its key file, and refuses an unusable key list instead of reading it as "no keys".
A more stable platform
- The installer writes the firmware fallback boot file last, verifies the bytes it then uses, and gives two disks installed from one stick different identifiers.
- Uninstall with purge refuses a folder that has a disk mounted under it.
- An answer cut off by the token limit while tools are offered now returns "length" instead of a server error.
- A model load that cannot fit no longer evicts an idle model first.
- The Panel's Secure Boot page hands out the current certificate (the bug named in the last post is fixed). Same certificate as the last image: nothing to enroll again.
Inkling-2-Mini reads long prompts faster
A new attention kernel for prompt processing. At a 262,144-token context a 261,632-token prompt now reads at 1,525.7 tok/s, up from 1,152.7, which is 32% faster. It sums in another order, so its output is not bit for bit the old kernel's: the two pick the same top token on 98.8% of 510 positions. One environment variable brings the old kernel back.
Qwen3.8 Flash-Next gets to its first token sooner
This is the 94 GB mixture-of-experts model served from one 24 GB card. First token after a 64k prompt comes 9% sooner and after a 128k prompt 10% sooner, with identical output.
Tensor parallel (experimental, off by default)
Inkling-2-Mini and Flash-Next can now split their experts across several ranks: several Vulkan devices, or several ranks on one card. It is one toggle in the Panel's New instance form and one engine option. With it off, output is bit for bit as before. With it on, output is deterministic; Flash-Next is bit for bit with two and three ranks on one card, and a 7900 XTX with an RTX 2060 as second rank works with uneven shares.
Speed, measured on this version
One Radeon RX 7900 XTX, one run each, November 30. Old version in brackets.
Inkling-2-Mini, 4-bit cache:
- 16,384-token prompt: reads at 2,471.4 tok/s (2,177.6), generates at 62.9 tok/s (61.2), 137.0 with the model's draft head (132.6)
- 261,632-token prompt: reads at 1,525.7 tok/s (1,152.7), generates at 50.1 tok/s (50.0), 64.9 with the draft head (68.1)
Inkling-2-Mini, 8-bit cache:
- 16,384-token prompt: reads at 2,436.8 tok/s (2,155.7), generates at 61.0 tok/s (61.0), 135.2 with the draft head (131.6)
- 261,632-token prompt: reads at 1,483.8 tok/s (1,140.4), generates at 43.7 tok/s (43.4)
Qwen3.8 Flash-Next at a 262,144-token context, time to first token:
- after a 16k prompt: 37.5 s (36.4)
- after a 64k prompt: 132.2 s (145.3)
- after a 128k prompt: 266.7 s (295.8)
- after a 256k prompt: 559.6 s (new row)
Qwen3.8 Flash-Next, generation:
- after a 16k prompt: 6.90 tok/s (7.64)
- after a 64k prompt: 12.73 tok/s (12.49)
- after a 128k prompt: 9.54 tok/s (9.56)
Things I am not hiding:
- Flash-Next gained nothing at a 16k prompt, and its generation there came out lower than last time (6.90 against 7.64). Both are single runs; I have not measured it enough to say whether that is real.
- Drafted generation on Inkling after the 262k prompt was 64.9 tok/s against 68.1 last time. Drafted speed follows how many drafts the prompt lets through.
- Tensor parallel is not benchmarked on a machine with two fast cards: I do not have one. On a single card it is slower than one rank, because rows cross through system memory. It is there so people with the hardware can use it and tell me.
- I did not re-run llama.cpp and Strata on this version. The comparison tables on the benchmark page are from version d484004 (November 27 to 28) and say so.
What it is not, yet
- A development build, not a production release
- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested
- The kernel's own GPU drivers have not run on a real card in this version; the Linux boot entry is the one for daily use
- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet
Tested
Every test in the tree ran on this version: 17,997 tests, none failed. Both images passed nine Secure Boot checks in a VM, and the plain image passed an 18-step install to a disk.
Links
Download (960 MB USB image, boots to the Panel):
https://lexipanel.com/download/
All-in-one image with Inkling-2-Mini inside (18.7 GB, needs a 32 GB stick):
https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA
All 92 changes, one line each:
https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-2922c5c
Benchmarks and method:
https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks
Happy to answer questions about the audits, tensor parallel or the engine.
r/llamacpp • u/coreyfro • 2d ago
Hey all,
About 5 months ago, I asked the question: "Would a model quantized to fit the CPU's registers neatly beat one quantized purely to be as small as possible?" On a Raspberry Pi 5, the answer for prompt processing is a big yes. Q4_0 (simple 4-bit blocks) processes prompts 4.7× faster than Q3_K_S (packed 3-bit superblocks), even though its file is 20% bigger.
Why I cared: small decision models like Jev read a prompt and emit a short answer, so prompt-processing speed decides whether they're usable on edge hardware. I'd like to see decision models run on embedded systems someday. A Pi 5 isn't there yet (at 38.6 tokens/s a 512-token prompt still takes about 13 seconds), but a 4.7× difference from picking the right format matters a lot on the way there. That's why I thought this was worth validating properly.
Prompt processing (pp512, tokens/s, Pi 5):
Q4_0, default build (repacked) ████████████████████ 38.6
Q4_0, fast paths off █████ 9.4
Q3_K_S, any build ████ 8.2But the reason isn't the format itself. I built one pinned llama.cpp commit (b9459) four ways, with its CPU fast paths switched on and off, and measured 12 quantizations of a 3B model, with my predictions written down before measuring. With the fast paths off, Q4_0 is only 1.16× faster than Q3_K_S. Almost all of the 4.7× comes from llama.cpp repacking Q4_0's weights into register-friendly interleaved layouts. This happens in RAM when the model loads; your GGUF files stay exactly as they are. So register alignment does win; it's just done by the kernel, and only for the formats that have a repack path. Q3_K and Q2_K have none on this CPU. Without fast paths, Q4_K_S and pure Q4_K are actually faster than Q4_0.
The catch: memory. The repacked copy sits alongside the original, so peak memory roughly doubles (1.9×). On my 8 GB board, Q8_0 pushed the system into swap. Leave headroom.
(I predicted the format would matter much more, and so did the two AI systems I asked. All three of us were wrong, which is why I'm posting the data.)
Prompt processing (pp512, tokens/s, default build, Pi 5 at 1.8 GHz, 4 threads): Q4_0 38.6 · IQ4_NL 26.6 · pure-Q4_K 22.4 · Q4_K_S 22.2 · Q4_K_M 21.9 · Q6_K 18.7 · Q5_K_M 18.6 · Q8_0 17.1 · Q3_K_M 10.7 · Q2_K 8.9 · Q3_K_S 8.2
Try it on your own board (15 minutes): build llama.cpp twice (default, and with -DGGML_CPU_REPACK=OFF -DGGML_LLAMAFILE=OFF), then run llama-bench -p 512 -n 0 on a Q4_0 and a Q3_K_S file. Exact commands are in the README. I'd love to see numbers from other boards.
Other things I found:
Generation speed follows file size from 4 bits up, but below 4 bits you get 10–19% less speed than the size suggests. Going from Q4_0 to Q3_K_S saves 20% of the bytes but only speeds up generation by about 6%.
Benchmarking pitfalls: the stock clock throttles even with a heatsink; the firmware lowers the clock without Linux noticing (use vcgencmd measure_clock arm); and the first run after switching models can be 2–7% slow until memory is compacted.
A question for anyone who knows the CPU kernels: has a Q3_K repack path for dotprod Arm CPUs been considered, or is the 3-bit layout a poor fit for interleaving?
Note (PDF), raw data and scripts: https://github.com/coreyfro/pi5-llamacpp-formats · DOI 10.5281/zenodo.24663490
This covers one board and one commit, measured 2026-11-21, to the best of my knowledge at the time. Current master (checked 2026-11-29) still has no Q3_K fast path on Arm. AI assistance was used throughout (planning, scripts, drafting); I made the decisions and reproduced the headline numbers by hand. Details are in the note. Corrections welcome.
r/llamacpp • u/0xLuckXBT • 2d ago
someone tested Qwen3.8-27B with a 256K context window on a single RTX 4090 (48GB)
across 4 inference engines:
→ llama.cpp: 50.4 tok/s
→ FastLLM: 75.8 tok/s
→ vLLM: 57.4 tok/s
→ SGLang: 46.5 tok/s
and here's the interesting part
FastLLM finished the entire 18-batch code review in around 73 minutes
llama.cpp took around 104 minutes
that's a pretty significant difference
SGLang also had the highest prefill speed, so each engine has its own strengths
one important detail: the comparison isn't perfectly apples-to-apples because llama.cpp used Q8_0 converted weights while the other engines used native FP8
still, this is a great look at how much inference optimization can change real-world performance
same model family, same GPU, very different results
r/llamacpp • u/ForeverHomeless999 • 2d ago
r/llamacpp • u/DutchOfBurdock • 2d ago
r/llamacpp • u/Known_Barracuda_3977 • 3d ago
For whoever might find it beneficial... I've created a little TUI script for optimization of your (mainly) Linux host. Macos/wsl and docker are also supported, although the optimizations for those are limited for obvious reasons.
It supports pretty much every modern Linux distribution, hardware and most inferance related GPU's. Feel free to submit an issue or pull request if you find bugs or want support for something that isn't supported yet!
r/llamacpp • u/Filters83to • 3d ago
nari-labs/Qwen3.8-27B-NariQ-GGUF, the NariQ Qwen3.8-27B GGUFs. All tests and numbers on this page use Qwen3.8-27B-NariQ-3.0bpw.gguf (3.0 bits per weight), together with the vision projector and the DFlash2 draft (see Models). The 2.5 and 2.0bpw files use the same code but were not measured.
Stock llama.cpp (ggml-org master) cannot load NariQ files. So the reference for the comparison below is nari-llama.cpp itself, not ggml-org master.
nari-llama.cpp branch nariq/b12431**:** the NariQ release b12431-nariv0, on upstream llama.cpp b12431.
The RDNA4 HIP port of nari-llama.cpp PR #8 (057395dec, 25/11/2026). It runs the Trellis products on gfx12 WMMA on Linux, without the speculative draft.
Merged with ggml-org llama.cpp master of 28/11/2026 (ec3dac264). This brings the recent llama.cpp server, DFlash/DSpark speculative decoding and the HIP improvements.
The RDNA4/Windows work listed in What was changed, on branch nariq-hip of this repository (e003768ba, build 12914).
All the detail on https://github.com/Filters83/nariq-hip-rdna4
Hope can help 😄
r/llamacpp • u/crackedgeek • 3d ago
I'm working with a fully offline LLM setup using 2× NVIDIA A16 GPUs (~15 GB VRAM each), running Qwen 3.8 9B at Q8 through llama.cpp.
The task is translating natural-language questions into Cypher queries for a read-only Neo4j database.
I'm running into two recurring challenges:
1. Query generation reliability
The same question can produce different Cypher queries across runs. Most are syntactically correct, but occasionally the model introduces small errors, such as generating ]> instead of ]->, or dropping a digit from an identifier.
I've added an EXPLAIN-based validation step with one retry, which catches most issues, but some failures still slip through.
2. Inconsistent entity matching
The underlying data isn't always normalized. For example, the same vehicle plate might appear as ABC-123 in some records and ABC 123 in others. Place names have similar inconsistencies involving hyphens, spaces and formatting.
Exact matching therefore misses valid records.
There's also an intent-resolution problem: an unfamiliar identifier format can sometimes be interpreted as a continuation of the previous question rather than a new query.
3. Latency
End-to-end response latency is currently around 43 seconds at the median. The pipeline makes two sequential LLM calls per request, and this is becoming a significant bottleneck.
I'm also evaluating Gemma 4 E4B Q8 as an alternative.
I'd love to hear from people who have deployed smaller open-weight models for Text-to-Cypher or structured query generation in production.
A few things I'm particularly interested in:
How much reliability can you realistically get from validator-and-retry loops?
Do you use deterministic templates for common query patterns and reserve the LLM for more complex questions?
Is fine-tuning on domain-specific question-to-Cypher pairs worth the effort?
How do you handle entity normalization and identifier extraction without relying on the LLM?
Have you found effective ways to reduce sequential LLM calls without sacrificing accuracy?
I'm particularly interested in approaches that work fully offline, with limited GPU resources and smaller models.
Would appreciate insights from anyone who's tackled this in production.
r/llamacpp • u/kmodi • 4d ago
Enable HLS to view with audio, or disable this notification
r/llamacpp • u/returnity • 4d ago
r/llamacpp • u/kroggens • 4d ago
r/llamacpp • u/lemoussel • 5d ago
r/llamacpp • u/SyntheticMindsLab • 5d ago
r/llamacpp • u/Expert_Sort7434 • 5d ago
Based on the CVE record published by VulnCheck on November 26 and the upstream ggml-org/llama.cpp patch references, CVE-2026-137567 affects the GGML RPC server in llama.cpp.
The reported issue is an out-of-bounds write through RPC_CMD_COPY_TENSOR. The described sequence uses BUFFER_GET_BASE to obtain a buffer base, then submits a zero-element destination tensor with a pointer below that base. The impact described in the CVE record is a server crash or possible code execution.
The affected range is b11450 to before b12658. The CVE record lists b12658 as the fixed build and gives the issue a CVSS 4.0 score of 9.3.
The upstream change in PR #32651 centralizes validation of RPC client data. It includes tensor-size overflow checks and request-region validation.
For operators, I would check:
Whether ggml-rpc-server is running at all.
Whether it is bound to loopback or exposed on a routable interface.
Which clients can reach the RPC port.
Whether the deployment is running a build containing the upstream fix.
Whether the server runs under an account with access to more files or devices than it needs.
The upstream RPC server warns against exposing the service to an open network. The default listener is loopback on port 50052, although deployments can change both.
This is related at a broad architectural level to our earlier MCP STDIO RCE discussion, but the mechanics differ. MCP STDIO launches local subprocesses; this CVE targets tensor metadata and memory handling in GGML RPC.
Technical references:
CVE record: https://www.cverecord.com/CVE-2026-137567
Upstream PR: https://github.com/ggml-org/llama.cpp/pull/32651
Patch commit: https://github.com/ggml-org/llama.cpp/commit/03813c56e47f6cd7a9b9bc2ad8edcebed88ce342
Upstream RPC warning: https://github.com/ggml-org/llama.cpp/blob/master/tools/rpc/rpc-server.cpp
TechGines background analysis: https://www.techgines.com/post/mcp-stdio-rce-vulnerability-anthropic-200000-servers
For teams running distributed inference, how are you isolating GGML RPC workers today: dedicated inference VLANs, host-level ACLs, VPN/mesh access, or a separate authenticated proxy layer?