r/llamacpp • • 12h ago

Host performance optimization TUI

Thumbnail
gallery
4 Upvotes

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!

https://github.com/bramvanoploo/strata-performance-setup


r/llamacpp • • 11h ago

Unofficial llama.cpp fork: NariQ (Nari Labs trellis-coded Qwen3.8-27B) on AMD RDNA4 with HIP/ROCm on Windows, DFlash2 speculative decoding

Thumbnail
github.com
2 Upvotes

Target model

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.

Where it starts from

  1. nari-llama.cpp branch nariq/b12431**:** the NariQ release b12431-nariv0, on upstream llama.cpp b12431.
  2. 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.
  3. 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.
  4. 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 • • 9h ago

Text-to-Cypher on a 9B model keeps breaking on messy entity names. What do you do?

1 Upvotes
  • 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 • • 22h ago

Plenty of VRAM left, still spills to RAM

Thumbnail
reddit.com
1 Upvotes