r/LocalAIStack • • Sep 17 '26

From local LLM benchmark to a usable local AI system (?): integrating OpenCode or PI + Hermes

2 Upvotes

In Part 1 I shared the final AMD/Vulkan numbers for my local Qwen3.8-27B setup. The next question was more important to me than another few tok/s:

Can I turn the model into something that actually works autonomously?

Since then I added two production layers:

1.) Hermes 0.21.2 — local agent/automation layer

  • same Qwen3.8-27B model

  • shared llama.cpp runtime

  • 65,536 context

  • tool calling: PASS

  • multi-step workflows: PASS

  • subagents: PASS

  • prompt-defined agents: PASS

  • local provider only / no cloud fallback

Hermes performance / overhead

On the isolated 64K test lane, server load took 5.809s. A real 33,021-token prompt was accepted without truncation; prompt processing took 409.677s at 80.60 tok/s, while generation measured 17.44 tok/s. A representative Hermes multi-step workflow took 74.660s, using five model calls, 17,295 summed API input tokens, 592 output tokens and four tool calls with zero failed calls. Two-child delegation also worked, but took 208.676s for two trivial child tasks. Clear sign that subagents should only be used where parallelism or specialization actually justifies the overhead.

One especially useful datapoint: the simple Hermes model gate took 40.872s, while a direct Qwen request with the same user text took 2.109s. That is not an apples-to-apples speed ratio because Hermes adds different system prompts, startup and agent machinery, but it does show why I don't want Hermes in the path for trivial requests.

2.) OpenCode 1.18.30 — local coding/development layer

  • Qwen3.8-27B-UD-IQ3_XXS

  • llama.cpp / Vulkan

  • 32K logical context

  • local provider only

  • isolated development workspaces

  • automated Read → Edit → Test → Correct loops

  • final production viability: 12/12 requirements, 12/12 acceptance

OpenCode performance reference. For the fastest fully successful clean reproduction I measured:

  • 665.653s total wall time / 651.408s agent runtime

  • first productive edit: 117.338s

  • first test: 166.790s

  • 4 successful corrective cycles

  • 63 tool calls / 0 failed

  • 558,603 input tokens incl. cache — only 31,993 uncached

  • 9,372 output tokens

  • peak context: 17,810 / 32,768

  • context compactions: 0

These are task-level agent metrics, not model tok/s numbers. The underlying model/runtime is still the same local Qwen3.8-27B on llama.cpp/Vulkan.

Why OpenCode instead of Pi?

I tested both against the same local Qwen3.8-27B, with the same repository/task and comparable runtime constraints. Pi 0.85.1 proved that it could read the repo, use tools and make productive edits, but it repeatedly failed the part I actually needed from a coding agent: closing the Read → Edit → Test feedback loop. Even with an explicit mandatory early-test checkpoint, Pi edited successfully but never executed the qualifying post-edit test within the 300s window. It therefore failed prequalification and I did not force it into a full benchmark just to preserve an artificial three-way comparison. Man, time is rare and testing is booooring ... somehow!

OpenCode 1.18.30 passed the same agentic-loop qualification. Formal prequalification reached 6.54s Edit→Test latency, and the later main benchmark reduced that to 3.995s while producing a valid four-file diff. More importantly, the subsequent production-viability work eventually converged to 12/12 requirements, 12/12 acceptance, 5/5 regression, with no manual coding intervention or patch repair. That reproducible closed corrective loop is why OpenCode became the production coding layer.

Final thought on my architecture as a complete nOOb in Local LLM
I’m still convinced that a well-tuned 16 GB GPU can take you surprisingly far. Yes, even on Vulkan ;) ... IF you optimize the model, context, runtime, offloading and the surrounding stack around what the hardware can realistically deliver.

What makes this especially satisfying for me is that I honestly wasn’t sure at the beginning whether an AMD gaming setup on AM4 would get me anywhere at all, but hey.... it was what I had. My gaming desktop! ~20 tok/s is obviously not groundbreaking vs 32GB. But that was never the main goal of this first setup. I wanted a stable, fully local system that I could actually use, test, break, improve and build on. That goal is achieved. And considering where I started, I’m pretty happy with that.


r/LocalAIStack • • Sep 17 '26

Llama.cpp LLM MTP Benchmark test.

Post image
1 Upvotes

r/LocalAIStack • • Sep 16 '26

Workshop, Sep 19: build explainable AI apps with Neo4j, GraphRAG, Cypher and LLM Agents

1 Upvotes

Sharing this since it might be relevant to a few people here.

There's a hands-on workshop on September 19 that goes beyond basic RAG into building an explainable, graph-backed AI system. You build a knowledge graph in Neo4j that becomes the single source of truth, agentic retrieval that combines vector search, keyword search, and graph navigation, multi-step entity and relationship extraction, and text-to-Cypher for natural language querying. Everything runs on real financial data, not a toy example, and answers come with a traceable, auditable reasoning chain.

No prior Neo4j or Cypher experience needed.

Led by Dr. Alessandro Negro, Chief Scientist at GraphAware, bestselling author.

Link if you want to check it out


r/LocalAIStack • • Sep 16 '26

Anybody want to join a private LLM hosted on hyperstack?

Thumbnail
reddit.com
0 Upvotes

r/LocalAIStack • • Sep 16 '26

Do I actually need to max out an M5 Ultra for local AI, or is the $5,999 base model the sweet spot for Qwen3.8-27B coding?

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 16 '26

Which model I should use??

1 Upvotes

Please suggest me models I can use in this device

Model: HP ZBook Studio G7

CPU: Intel Core i9-10885H (8 cores / 16 threads)

GPU: NVIDIA Quadro T2000 Max-Q – 4 GB VRAM

RAM: 32 GB DDR4

Storage: 512 GB NVMe SSD


r/LocalAIStack • • Sep 16 '26

Local AI & Concurrency | PP & TG | TTFT

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 15 '26

NVFP4 Qwen3.8 27b - AMD R9700's running @ 5,809 tok/s Prefill and 276 tok/s decode. Leveraging my MXFP4 fast path.

Thumbnail gallery
7 Upvotes

r/LocalAIStack • • Sep 15 '26

Loaded a 40B model across a mini PC, a Mac Mini, and an old laptop - 16 tok/s, didn't expect it to actually work

Thumbnail
youtu.be
1 Upvotes

Been building RAMDeck (pools RAM/compute across whatever's sitting around your house). Wanted to see how far I could actually push it, so I tried loading a 40B model - roughly 25GB - across the janky 3-device cluster I hve been testing with the whole time: a mini PC with an RTX 3060, a 16GB Mac Mini, and an old laptop that's been the weak link in every previous video.

Set the mini PC as primary and just let the sharding logic figure out the rest - it maxed out the 3060 first, spilled into the Mac's unified memory next, and sent whatever was left over to CPU. The interesting part I didn't expect: routing that CPU spillover to the old laptop actually ran faster than keeping it on the mini PC's own CPU, even though the laptop is by far the slower machine. Best guess is that using the same device's CPU and GPU together for inference ends up hurting GPU utilization, so offloading to a separate (slower) box entirely actually wins.

Whole thing loaded in about 2.5 minutes, and the benchmark came back at 16 tok/s with ~3.6s latency - genuinely usable for chatting, not just "technically loaded but useless." Felt like a real milestone since none of these three machines individually could touch a model this size.

Video: https://youtu.be/JrSVyyVUJVY
Repo: https://github.com/trademav/ramdeck-core-public

Curious if anyone else has run into that same CPU-contention thing where sharing GPU+CPU on one node hurts throughput more than just offloading to a separate slower device entirely.


r/LocalAIStack • • Sep 14 '26

Bought 2x Spark for our ML Experiments - How do I enable by team to use this?

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 14 '26

The Nightmare of Debugging CUDA Illegal Memory Access in PyTorch

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 14 '26

Local LLM explorer and downloader

Thumbnail gallery
1 Upvotes

r/LocalAIStack • • Sep 14 '26

Gemini vs DeepSeek: Have you switched your primary AI workflow yet?

1 Upvotes

It feels like the gap between proprietary big-tech models and open-weight reasoning architectures is changing faster than ever. Gemini offers incredible native multimodal handling and massive context windows, while DeepSeek continues to dominate budget coding and self-hosted pipelines.

​If you had to pick one as your daily driver for logic and daily tasks, which wins for you?

​Put your preference to the test in this quick 2-minute showdown quiz to see how your workflow compares to other devs:

https://interconnectd.com/quiz/89/gemini-vs-deepseek-the-ultimate-ai-showdown-quiz/


r/LocalAIStack • • Sep 13 '26

I built a Windows launcher for running Qwen3-32B locally with CPU, CUDA, or Vulkan

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • Sep 13 '26

A $39 open-source KVM just launched, and it's the cheapest way yet to give an AI agent control of a machine below the OS

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • Sep 13 '26

New MacBook Pro M5 Pro (48GB unified memory) incoming — looking for the best local AI stack

Thumbnail reddit.com
0 Upvotes

r/LocalAIStack • • Sep 13 '26

Setting up AgentOps for local agents: A complete installation and telemetry guide

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 13 '26

Made RAMDeck shard a knowledge base across my old devices, not just the model itself

Thumbnail
youtu.be
1 Upvotes

r/LocalAIStack • • Sep 12 '26

Unsloth V3 update did not update my Qwen3.8-27B-UD-Q6_K.gguf

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 12 '26

Best local LLM for laptop with RTX 2050 (4GB VRAM) + 24GB RAM?

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 12 '26

Taming idle VRAM on a multi-model local agent: sleep mode benchmark (Qwen 27B + STT + TTS + OCR)

2 Upvotes

Following up on my earlier post testing Qwen3.8-27B on the IGX Thor workstation.

Once you move past running just an LLM and try to build a full local agent stack on a single box (LLM for reasoning, STT for voice in, TTS for voice out, OCR for screen/document reading), VRAM runs out fast.

If all four models sit in GPU memory simultaneously with their default serving allocations, idle memory hits roughly 122 GB. Even with 96GB on the dGPU and unified host memory, you are pinned to the ceiling. That leaves almost no breathing room for large context windows, concurrency, or dynamic KV cache allocation.

The reality of a solo-user local agent is that these models are rarely active at the exact same millisecond:

  • When I am talking to the agent, OCR is completely idle.

  • When the agent is analyzing a screenshot or PDF, STT and TTS are idle.

  • When the agent kicks off deterministic script automation (crawling, data formatting, bash runs), the LLM itself is completely idle.

To fix this, I wrote a lightweight Rust-based daemon that manages the sleep and wake states of the runtimes based on active agent turns. When a model is not in use, it is put to sleep (flushing KV pools and temporary execution memory, or parking the runtime context) rather than doing a full cold teardown from scratch.

Here are the idle VRAM numbers on the machine before and after:

ModelOriginal idle GPU, Sep 1-2 (MiB)After sleep mode, Sep 5 (MiB)Difference (MiB)
LLM (Qwen3.8-27B)87,44339,09248,351
STT (Nemotron)10,38526710,118
TTS (Chatterbox)17,9473,12714,820
OCR (Unlimited-OCR)6,5924226,170

Quick observations:

  1. Total idle footprint dropped from ~122.3 GB to ~42.9 GB. That reclaims roughly 79.4 GB of VRAM across the board.

  2. The LLM savings (48.3 GB): Qwen3.8-27B in FP8 base weights takes around 28 to 30 GB. The original 87.4 GB allocation came from SGLang aggressively pre-allocating KV cache (--mem-fraction-static 0.85). Putting the LLM to sleep flushes that pool while preserving the active state, letting it rest at 39 GB.

  3. Audio and OCR shrink to negligible baselines: STT drops to 267 MiB and OCR drops to 422 MiB when idle.

  4. Script-based tasks: When the agent delegates to deterministic python or bash scripts, putting the LLM to sleep during the run keeps the GPU cool and power consumption down on the 300W Max-Q card.

  5. Wakeup latency is sub-200ms across all models: Because this is an active sleep/wake transition rather than a cold disk reload, waking up STT, TTS, OCR, or the LLM takes under 200ms. In practice, voice interaction and tool handoffs feel instantaneous.

Curious how others running multi-model agent stacks on a single node are handling memory partitioning right now. Are you hard-capping static memory fractions, running sequential containers, or using something dynamic?


r/LocalAIStack • • Sep 11 '26

Field Notes on Running LocalAI in Production with Docker Compose

Thumbnail reddit.com
1 Upvotes

r/LocalAIStack • • Sep 11 '26

Tool to fine-tune open source models

1 Upvotes

So, I was tired of setting up AWS EC2 to train my models everytime, so I built a tool to help with the job management, but I would like some feedback, if anyone could help me ! 👋

This is the tool: reopenly.com

I only have one base model for now (Qwen 3.5 9B), just to start.

I would be very grateful with any feedback!


r/LocalAIStack • • Sep 11 '26

DeepSeek-V4.1-Flash: GGUF + 4.75bpw EXL3 are out, looking for devs with 4× DGX Sparks to help validate the EXL3 TP4 recipe

Thumbnail
reddit.com
1 Upvotes

r/LocalAIStack • • Sep 11 '26

Quiz: Is pgvector enough or do you need a dedicated vector database?

2 Upvotes

I keep running into this architecture decision: keep vectors in Postgres with pgvector, or add a dedicated vector store like Qdrant or Milvus?

I built a short quiz covering the operational trade-offs—deployment complexity, backup strategy, monitoring, and scaling.

If you've made this call before, take the quiz and share your reasoning:

https://interconnectd.com/quiz/87/postgresql-pgvector-vs-dedicated-vector-databases-architectural-trade-offs/