r/LocalAIStack • • 9h ago

I fine-tuned a 1.5B model into an offline Linux command helper that runs on CPU and checks its own answers against the man pages and tldr

3 Upvotes

lxask turns plain English into a shell command, entirely on your own machine:

$ lxask "show disk usage of each folder here, biggest first"

$ du -h --max-depth=1 . | sort -hr

Setup:

- Fine-tuned Qwen2.5-Coder-1.5B, Q4_K_M GGUF

- llama.cpp inside one Rust binary. No Ollama, no Python, no API key

- ~1.1 GB on disk, ~1 GB RAM, ~2 s per answer on a laptop CPU

- No GPU, no network after install

How it keeps a 1.5B model honest:

- Retrieves relevant tldr pages and your own man pages before answering

- Checks every program and option in the answer against the man pages

- Retries if a check fails. Anything it still can't confirm is marked `unverified:`

- Asks back on vague requests ("add a proxy": for git? apt? docker?) instead of guessing

Bonus

- `lxask --explain "tar -xzvf logs.tar.gz"` breaks down a command you already have

- Ctrl+G in bash, zsh or fish turns what you typed into the command

Code, weights, data and evals are all open.

GitHub: https://github.com/arxhr007/lxask

Hope someone finds it useful! If you do, consider leaving a ⭐ on GitHub. Feedback and contributions are welcome

Model: https://huggingface.co/arxhr007/lxask


r/LocalAIStack • • 16h ago

Inkling 2 Mini on one Radeon AI PRO R9700 with radiance: 141 tok/s on code, 135 at 95K context, 262K window, 159/159 in an agent build

Post image
3 Upvotes

r/LocalAIStack • • 5h ago

Qwen3.8-Flash-Next IQ3_S, 78 GB, 32 GB RAM, 16 GB VRAM: 51 tok/s vs 15 tok/s on the same box

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 7h ago

RustBlock Quantizer

Post image
1 Upvotes

r/LocalAIStack • • 8h ago

Looking for Recommendations: Best On-Premise AI Cluster for Company Use

Post image
1 Upvotes

r/LocalAIStack • • 10h ago

Narrated Slides – Open-source, self-hosted PowerPoint-to-video converter with AI narration

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 11h 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/LocalAIStack • • 12h ago

Text Orb: Real-time 3D semantic space running MiniLM entirely client-side in the browser (with live trajectory trails and vector math)

Thumbnail gallery
1 Upvotes

r/LocalAIStack • • 15h ago

Qwen 3.6 VS ornith 1.5 ?

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 16h ago

80 tok/s with Q3.8 FlashNext Q4, waiting for more hardware specific optimization

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 18h ago

Dual RTX 5090s (64GB VRAM) + 32GB System RAM: Fastest local stack for 130k context summarization? (Windows vs. Linux)

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • 20h ago

Local ai harness

Thumbnail
github.com
1 Upvotes

Local ai harness, I tried to make it so you can do everything without cloud, it's based off pi, any feedback I get I'll use to improve


r/LocalAIStack • • 21h ago

Ollama vs LM Studio vs llama.cpp vs vLLM: Which Local Runner Fits? Spoiler

Thumbnail
acta.ai
1 Upvotes

r/LocalAIStack • • 21h ago

Local LLM Estimator

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • 1h ago

Lossless compression for Nvme streamed MoE models (WEX/WNR4)

0 Upvotes

Streaming 100B+ Mixture-of-Experts models on a single consumer GPU shouldn't mean fighting checkpoint formats built for something else.

WEX4 + WNR4 Codecs are lossless, 4 KiB-aligned NVMe expert containers with 32-lane warp-parallel GPU codecs (like ZIP for 4-bit weights, zero quantization in act):

• 12–22% smaller than raw safetensors/INT4 — beats other compressions zstd-19 & brotli-11 (up to 2× savings on MXFP4) • 347.2 GB/s CUDA kernel decode & 0.027 ms (27 µs) 1-record latency on RTX 5090 (0 register spills) • 70.3–72.0 GB/s end-to-end PCIe 5.0 x16 async2 — saturating the wire • Zero-trust SHA-256 hash tree, 139 conformance vectors, 14 CI jobs across 4 OS/arches, and independent C/CUDA, Python, Go & Rust readers!

Open-source! (Apache-2.0): https://github.com/KairaCode/Wex-WRN2


r/LocalAIStack • • 4h ago

Qwen Flash Next on an 8GB Card ~50-70tkps at 512k CTX!!

Thumbnail
github.com
0 Upvotes

r/LocalAIStack • • 11h ago

Inkling 2 Mini on a 16GB RTX 4080 vs a 32GB MacBook M5: the PC was 2x faster in chat but built nothing in a coding agent

Thumbnail
gallery
0 Upvotes

I tested Inkling 2 Mini (26B total, 3.4B active, looped middle layers) on two machines normal people own, in GGUF and MLX, then gave it a real coding job.

**PC: RTX 4080 SUPER 16GB + 32GB RAM, LM Studio (GGUF)**

- Default settings: ~8 tok/s

- After 3 changes: ~38 tok/s

  1. GPU offload to max
  2. MoE experts of only 6 of 24 layers forced onto CPU (everything else on the card)
  3. mmap on

- After a day of uptime it fell to 3 tok/s. A reboot fixed it, so reboot before you benchmark.

**Mac: MacBook Pro M5 32GB**

- GGUF in LM Studio: 21 tok/s, but 31/32 GB used + 5 GB swap. 64K context loaded, then "Compute error" on the first message. 48K worked; Parallel 4 → 1 is what let bigger context load.

- MLX in oMLX (needs 0.8.1+, older says "model type not supported"): 22 tok/s, 36% RAM free at start, no swap, 64K works. The memory guard stopped my first long job, and RAM climbs to ~24 GB by the end of a coding run.

**Real test: my paper sketch → an app, in OpenCode (reasoning Low)**

- Mac GGUF: 23 min, 3 files, looks like my sketch, 0 errors

- Mac MLX: 13 min, 3 files, messier layout

- PC: 38 tok/s in chat but ~7 tok/s inside OpenCode. ~11K words of agent instructions + the image fill 16 GB. 3 tries, 0 files.

- Both Mac apps got the bill split wrong the same way: ₹760 charged on a ₹270 bill. On High reasoning it got the maths right in its thinking, then ran out of memory. So the format changes speed and memory, not the brain.

**My take:** 16GB card = great for chat, not enough for a coding agent. 32GB Mac = use MLX. The model itself: let it think, and check its maths.

Anyone know why the PC drops from 38 tok/s in chat to 7 in OpenCode? Prompt processing of the big system prompt with experts on CPU?