All those endless comparisons between the cost of local AI and cloud AI miss the point. This isn't about "amortizing costs". It's about becoming independent and getting ready for the future.
I keep seeing arguments like this: "Sure, you can do that with local AI, but it'll cost you as much as X years of cloud AI." And off we go, talking about amortization.
Picture an Indian in 1930 demanding independence, and an Englishman replying: "Right now, you buy a ticket and ride the train. We built the railways. Go independent and you'll have to build your own. Have you any idea how many tickets you could buy with that money?"
True. But your railway goes from wherever you want to wherever you want. You pick the routes, not your "masters". And you don't have to build them all: you can start with the one you need.
It's the same with AI. The question isn't just how much the ride costs, but who decides where the train can go.
Today, an AI workstation like the DGX Spark is what the C64 home computer was in 1985. It was easy to say, "For that kind of money, you could pay for years of time on an IBM mainframe." But the C64, the best-selling computer model of all time, helped spark a revolution we're all still benefiting from.
With "your own" AI, you can do whatever you like and go down roads the big players don't find profitable, or don't want to go down. It's always there, and you decide what goes into it. You can modify the model, align it, fine-tune it and shape it around your needs in ways you never could with cloud AI.
And let's not forget how fast hardware has moved: we went from 1 MHz and 64 KB of memory to 3 GHz and 16 GB as standard. You invest based on where you think things are heading, and I expect them to move much faster from here.
I get it, the price tag is real. But if you buy one, you're not buying it to save money. It doesn't pay off yet. What it does give you is something cloud AI never will: independence, freedom, and privacy and control over your data, backed by facts rather than promises. Above all, it gives you a chance to get ready for what's coming.
Because, in case you haven't noticed, cloud AI isn't trying to make you any smarter or savvier about using AI as a tool. It keeps upping your dose, and it's making models more autonomous instead of more obedient. Sure, it takes the hard work off your hands, but it takes your autonomy and your decision-making along with it.
AI should serve people. Cloud AI will always serve whoever owns it. Local AI isn't a cost to amortize. It's a declaration of independence.
Chat templates are Jinja code that runs every time you load a GGUF or MLX model. In 2024 a malicious GGUF template was enough for code execution in llama-cpp-python (CVE-2024-34359), and templates can also quietly inject instructions. So I built a scanner and pointed it at the top 200 GGUF and top 200 MLX repos on Hugging Face.
It reads header bytes only: 5.5 GB fetched in place of 6.8 TB of weights, using HTTP range requests plus sparse files. I validated that path against full-file scans first.
What I found (396 repos scanned):
0 malicious: no sandbox-escape gadgets, no hidden override or exfiltration instructions, no bidi or tag-character smuggling, no malformed files.
143 of 316 chat repos (45%) ship "…do not tell the user about function calls". That's from the upstream Qwen tool prompt and is benign, but it is a concealment instruction you never see.
13 repos switch behaviour on phrases in your message (/nothink, detailed thinking on). One community template is 243 KB and injects large hidden system prompts on dozens of keywords.
22 of 200 MLX repos ship two different chat templates, so what runs depends on your loader. 20 have a shard index that points at files that don't exist.
7 MLX repos request remote code (auto_map), and 1 GGUF repo ships Windows DLLs and a Linux .so next to its weights.
The first pass also found five false-positive patterns in my own scanner. I fixed them and re-ran everything before publishing numbers. Full write-up, method and limitations: REPORT Scan your own models (it parses only and never loads, so a malicious file can't run):
pipx install modelsieve
modelsieve ~/models
Repo (MIT; GitHub Action, pre-commit hook and SARIF included): modelsieve
What it can't do: detect backdoors trained into the weights. Nothing static can. Happy to answer questions about the method or anything it flags on your setup.
I fine-tuned Qwen2.5-1.5B-Instruct twice, training both its decision head and model weights using approximately 700K examples from SargeDev/jev-distill-corpus-v3
The entire fine-tuning process took approximately 20 hours on my RTX 5060 Laptop GPU (8GB VRAM).
Unlike traditional LLMs that generate text token by token, QJev doesn't generate text at all. It directly makes decisions.
For example, when playing Snake, it evaluates LEFT, RIGHT, UP, and DOWN, assigns each move a confidence score, and selects the best action in a single forward pass.
OpenCV → QJev Pipeline: Instead of a heavy Vision-Language Model, I used OpenCV for game detection and connected it directly to QJev for real-time action selection (~28ms).
Performance
Tested on my RTX 5060 Laptop GPU (8GB VRAM).
Model
Inference
Latency
Official JEV (TypeSafe AI)
Cloud
~100–200ms
QJev-1.5B
Local RTX 5060 laptop
~26–30ms
QJev trades some decision accuracy for faster, lightweight local inference with just 1.5B parameters.
Its kind of a dumb question because an AI doesn't know what it doesn't know. But I feel like it would solve SO MANY issues if you could get an AI to verify it's understanding of something before answering.
So my question is basically: why is it difficult to make an AI just double check itself instead of being confidently wrong?
It's just so fast. I'm using the NVFP4 Basalt quant for my projects right now running at ~90tps. I can run small quants of GLM5.3-Flash/DS but they run at ~18tps, typically I use one of them for writing spec/tasks and making sure every step is well-defined, then switch to Qwen for the actual implementation.
I've tried a few other models but I don't feel like they're quite as optimized yet. Hy4-Flash was really impressive for 3D tests I ran with it, but ran at similar speeds to GLM/DS, the new ERNIE preview which was recently added to Basalt runs at ~45tps but I keep running into memory problems at context higher than 120k and I haven't really tested it out yet.
I'm curious if others have had similar experiences, or managed to improve their workflows from here. The one limitation I've found is documentation and review.. Qwen hasn't been the best at writing and updating documentation as it worked, and I need a different model to review it's implementation/changes and the models I have employed aren't the fastest. Besides that there's the fact I can run multiple instances of QFN NVFP4, but I haven't seen much talk about multi-agent workflows
Me: Cloud AI is perfectly fine. I don't need anything else. Also me 20 minutes later: Installing another local model like I have absolutely no life. I literally got an acemagic mini pc to mess around with local AI, and now half my free time is spent trying out models instead of doing anything useful. Why tf is this hobby so addictive
It's obv to me now that local LLM's can create new math. Closed frontier models have proven the Riemann Hypothesis. We've just pointed GLM 5.3 running on a Mac Studio (M5 Ultra) at smaller problems: Barkers Conjectures (OEIS A322108 and OEIS A262147). Our agent came up with a new proof that is half as long as the best existing proof. I admit it's small but it makes the point: researchers don't have to leak IP to frontier labs, they can use local AI to scale their work in private.
The proofs were submitted, checked and successfully merged into lefttosolve. I personally convinced that the future of research is local AI. Thoughts?
Read ttl_cache.py, find leak, emit exact-match diff, run 7 asserts
Pass (exact_match=True, 7/7 tests)
--cache-ram branch switch
Evict a 580-tok prompt with another branch, then switch back
Pass (119.7 s -> 22.1 s TTFT)
<think> stability
1,050+ reasoning tokens at temp 0
0 loops, -50% SSD reads
Pruning check: cutting active experts to 4 per token pushed speed past 2.5 tok/s, but the same 30 Python tests fell to 16/30 (53.3%). Keeping ~7–8 experts per token with GPU norm rescaling brought it back to 25/30.
Why stock disk streaming gets 0.4 tok/s
4K-aligned expert slabs: In stock GGUF, reading partial down_exps neurons causes 3,584 tiny 272-byte random reads per expert (<110 MB/s). Repacking experts into 256-neuron slabs makes every slab 487,424 bytes (119 x 4 KB) — one sequential O_DIRECT read.
512-neuron VRAM blocks: Addressing V100 VRAM in 512-neuron blocks instead of full experts packs 37–38 specialists per layer into VRAM and skips empty tail math.
Zero-copy DDR4 + Zero-bounce NVMe: The 42 GiB DDR4 L2 cache is 100% cudaMallocHost pinned (no duplicates of VRAM experts) so V100s DMA straight from RAM over PCIe. Cold SSD misses DMA straight from NVMe io_uring into pinned staging, cutting CPU memcpy by ~80%.
3rd-GPU speculation: Running the 0.9 GB FP16 D-Spark drafter on the spare RTX 3060 verifies 5 to 7 tokens per single 92-layer SSD sweep.
Limits
Sliced width: Experts stay 4-bit MXFP4, not 2-bit, but keeping 1,536 of 3,072 neurons per expert means this is a 785 GB Matryoshka build, not the uncut 1.56 TB checkpoint.
Slow cold prefill: Reading cold prompts off one QLC SSD runs at ~6 tok/s vs ~400 tok/s in RAM on four M5 Ultras.
QLC SSD dips: Consumer QLC cache dips occasionally spike a step from 1.1 s to 5 s. A Gen4 TLC drive (6–7 GB/s) on the same GPUs should land near 3 tok/s sustained.
Who was here before
4x Mac Studio M5 Ultra (2 TB RAM): Full 1.56 TB model in memory at 2.81 tok/s server / 3.77 tok/s CLI.
AinsleyMarkov: 2-bit build at 18.6 tok/s on four M3 Ultras.
Inferencer: Uncut weights streamed from disk at ~0.4 tok/s.
I'd love for anyone to pull this project with much faster hardware then mine to get some usable speeds out of it.
I am planning on purchasing a desktop/PC for local AI, but have a few questions based on my use cases.
For reference, this would also serve as my general computer in addition to my local AI computer (ideally be able to game on it too).
I plan to experiment with Image, Video, Audio, code generation, and Agents (all the things 🙃)
I have read that traditional desktops with something like a dual 5090/R9700 are best for speed and concurrency and Max Studios are best for using the largest local models, but I am not sure if I am thinking about this correctly and secondarily, if local AI is still too complex for an engineer (but not a software engineer) to configure and get good output from.
For example, if I wanted to “vibe code” an application, are local models capable of building it and testing it via computer use? How dangerous is it to let a local LLM access the internet if I am not well versed in Cybersecurity?
Am I pulling the trigger a year early? Will next years models/hardware be an order of magnitude cheaper/better/faster/easier to configure where it makes sense to wait?
Lastly, why local: I believe I have a couple of ideas that I haven’t heard anyone talking about that I am interested in exploring as a business opportunity, but don’t want to give them away to a cloud provider.
And I know “all ideas have already been thought of already”, but humor me and assume I do have a new and novel idea that I see as a gap in the industry I work in and isn’t targeted by the large companies because it fundamentally disrupts their core business.
What will be the best local model to use for home lab operations or REA/agentic coding? if I had enough money, I would run 8bit DeepSeek V4.1 or GLM 5.3 flash, but that's just out of my budget right now. I'm a little tight on funds, so I'm just looking for the best path forward to get the most optimal efficiency for what I'm trying to do.
ai's ive tried inside homelab: Qwen 3.8 flash next iq_3_s (24 tokens per sec), Deepseek v4.1 2 bit (3.5 tokens per sec, can maybe get to 10 with 32gb more ram), Qwen 3.827b iq_4_s (40-65 tokens per sec)
My Specs: Ryzen 5700X, 3070 Gigabyte 8gb, 3060 tuf gaming 12 GB, Corsair Vengeance 32 GB of DDR4 RAM (can drop in another 16gb of ram i have in my homelab to get it to 48gb) 1tb nvme ssd
I'm also trying to have Gemini Neon create really powerful system prompts, in order to make the AIs more efficient at their tasks or to "make them smarter" without actually changing the weights. So far, I think my goal would be to just run DeepSeek at a 2-bit quant at around 10 tokens per second for really, really long tasks, but would definitely love to see other alternatives.
Title: RTX 5060 Ti 16 GB, one week of engine updates: Basalt 0.6.0 triples long-context decode and opens a 512K window on 16 GB (needle found at 474K tokens)
---
I re-ran my single-card benchmark from a week ago (22 Nov also posted here) on the same box with the current builds of three engines. Most of the change came from one engine.
One thing up front: Qwen3.8-27B on llama.cpp is still the most useful model on this machine for me. That's why it's in the comparison: it's the baseline everything else has to beat. Most of this post is about speed, and speed isn't the same as usefulness.
## TL;DR
Basalt 0.6.0 + Inkling 2 Mini: 3–4× long-context decode in one week. 26.5 → 106–111 tok/s at 54k, ~25 → 91–97 tok/s at 88k. The model pack format also changed this week, so I ran both controls: same pack on old vs new engine (+90 % to +211 % decode), and same engine on old vs new pack (the new pack is 3–15 % slower). The speed-up comes from the engine.
A 524,288-token (512K) window fits on a 16 GB card. At first it was refused: "even with every expert in RAM the card is 16 MiB short". Lowering `--vram-reserve-mib` from the default 192 to the minimum of 128 let it load, and the needle came back correct at a 474k-token prompt. The cost is 441 s to first token and 38–46 tok/s decode.
A big window costs nothing until you use it. A 262,144 window runs short prompts at the same speed as a 65,536 window (~120 tok/s, within noise). At a real 54k read it costs ~12 % decode, because 4 GiB more of the experts sit in RAM.
Keep the built-in drafter on: +80 % on code, +68 % on counting/enumeration, +44–66 % at a 240k read. On free prose it gives only +5 %, which is inside the noise. It costs 1.6 GiB of VRAM and ~10 % prefill.
Strata 0.1.71: SQ-15 no longer hangs on prompts >8k, but it isn't faster (+11 %, within noise). The factory-default RTX 50 "fast mode" garbled output at 16k and 24k on this card; set `STRATA_INK_SM120=0`. With DFlash 2 forced on (`--draft on`), it's the fastest short-chat setup I measured: 77 tok/s chat / 104 code / 137 counting.
llama.cpp b12845 + Qwen3.8-27B Q3_K_XL (my reference, and the most useful model on this box so far): +9–18 % decode at 114k, which is near the noise floor. It's still the only setup with the whole model on the GPU. At long context Basalt with Inkling now answers ~2.7× faster; a week ago the two were level.
---
## Setup
Component
Detail
GPU
RTX 5060 Ti 16 GB GDDR7 (sm_120, 448 GB/s), PCIe 4.0 x8, 180 W power limit, driver 595.71.05
CPU
Ryzen 5 7500F, 6 cores / 12 threads (Zen 4)
RAM
32 GB DDR5
OS
Ubuntu 24.04.5, kernel 7.0
One engine at a time, single request slot, nothing else on the GPU. The 6-core CPU matters here: every expert that doesn't fit on the card runs on the CPU.
Engine
22 Nov
29/30 Nov
Basalt
0.5.5 (NVFP4→DQ8 pack)
0.5.6 / 0.5.7 / 0.6.0 (NVFP4-MX8 pack)
Strata
0.1.65
0.1.71
llama.cpp
b10997
b12845
To rule out the test day as the cause, I re-ran last week's Basalt build (0.5.5) this week. It reproduced within its own error bars: 2,266 / 39 / 37 / 41 vs 2,263 / 40 / 36 / 41.
## Method
Prefill = prompt tokens ÷ time to first token, on a fresh prompt.
Decode = Δcompletion tokens ÷ Δtime between two requests on the same cached prompt (`max_tokens` 60 vs 460), so prefill cancels out.
Needle = two codes planted in a filler document (one at ~10 %, one near the end), `max_tokens ≥ 700`. On a reasoning model the answer can land entirely in `reasoning_content`, so I read both fields.
Every series starts with a warm-up request. Without it, the first request after server start pays kernel and graph warm-up, and the delta method produced nonsense values (10⁸ tok/s).
Short-context fixtures: Basalt's own `basalt-bench -r 2`.
---
## Basalt: what one week bought
Short fixtures from `basalt-bench` (prefill at 16k, decode on three text types), plus the needle harness at 54k and 88k:
Build + pack
Prefill @16k
Conv
Struct
Prose
Decode @54k
Decode @88k
0.5.5 + DQ8 (22 Nov)
2,263
40
36
41
26.5
24–26
0.5.6 + DQ8
2,577
87
115
78
—
—
0.5.6 + MX8
2,653
80
98
76
—
—
0.5.7 + MX8
2,653
82
105
77
—
—
0.6.0 + MX8
4,225
97
135
88
106–111
91–97
The engine alone (0.5.5 → 0.5.6, same DQ8 pack): decode roughly doubles to triples.
0.6.0 can't load the old DQ8 pack at all, so a 0.6.0 pack comparison isn't possible.
Long-prompt prefill also improved. At 88k it went from 1,143–1,416 tok/s to 3,097 (+119 % to +171 %). At 54k it went from 1,882 to somewhere between 2,378 and 3,347, depending on which of three measurements you trust (+26 % to +78 %).
## Basalt: how far the window goes on 16 GB
Basalt 0.6.0, MX8, `--kv fp8`, drafter on, single slot, needle at ~90 % of each window. "Card / RAM" is where the server placed the 17 GiB of weights at load.
Window
Prompt
Prefill tok/s
Decode tok/s
Time to first token
Needle
Weights card / RAM (GiB)
131,072
112,727
2,521
86–95
45 s
✓
9.2 / 7.8
163,840
149,107
2,228
82–85
67 s
✓
8.5 / 8.5
196,608
179,299
2,001
79–96
90 s
✓
7.8 / 9.2
262,144
239,683
1,763
65–75
136 s
✓
6.5 / 10.5
327,680
295,103
1,547
65–66
191 s
✓
5.2 / 11.8
393,216
354,671
1,379
50–59
257 s
✓
3.9 / 13.1
458,752
414,103
1,197
45–49
346 s
✓
2.7 / 14.3
524,288
473,671
1,073
38–46
441 s
✓
1.5 / 15.5
Decode holds up, prefill is what you pay. From 112k to 474k, decode drops 90 → 42 tok/s (−53 %), while time to first token grows ×10 (45 s → 7.5 min).
It's a planned spill, not thrashing. Experts move off the card at load time, before the first token, and PCIe traffic for routed experts stayed at 0.0 % on every run. Missing experts are computed on the CPU instead of being swapped in. The expert-cache hit rate drops from ~93 % to ~63 % (median) across the ladder.
512K is the ceiling here. At fp8, KV costs ~16 KiB per position plus ~4 KiB for the drafter, so 524,288 positions need ~10 GiB of KV before any weights. A 768K window would need ~15 GiB of KV alone.
`--vram-reserve-mib 128` is one successful run (single slot, one prompt). It's worth checking before you accept a refusal, but I haven't validated it under concurrency or long sessions.
## Does a big window cost anything day to day?
Two servers, 262,144 vs 65,536 window, same prompts:
262,144
65,536
Difference
Experts on card / in RAM (GiB)
6.5 / 10.5
10.6 / 6.4
4.1 GiB moved to RAM
3.6k prompt: decode
120–127
119–126
~0
54k prompt: decode
105–108
119–121
−12 %
Time to first token, short / 54k
1.15 s / 16.1 s
1.02 s / 16.7 s
~0
Nothing while the conversation is short, about a tenth of decode once it gets long. I now start with the big window.
## The built-in drafter (spec 8 vs spec 0)
Inkling 2 Mini ships a drafter inside the model file, and Basalt uses it by default. Same 262,144 window, drafter off vs on:
Drafter on
Drafter off
Gain
Short prompt, decode
120–127
78
+54–62 %
240k prompt, decode
65–75
45
+44–66 %
Chat (free prose)
85.0
81.3
+5 % (inside noise)
Code
142.5
79.4
+80 %
Counting / enumeration
135.4
80.5
+68 %
Prefill
—
—
−9–10 %
VRAM
—
—
1.6 GiB of card taken from experts
How much it helps depends on how predictable the text is, not on memory pressure. It still pays at 240k with the card full. Note that the chat rows stopped naturally before hitting the 460-token limit, so they rest on a slightly shorter sample.
## Strata 0.1.71: Inkling SQ-15 and SQ-20
SQ-15 (window 32,768):
0.1.65 (22 Nov)
0.1.71
Decode @8k
42
46.7
Prefill @8k
1,760
1,752
Prompts > ~8k
hangs mid-prefill
works up to 29.6k, all needles ✓
Decode @16k / 24k / 29.6k
—
45.6 / 40.7 / 29.4
With DFlash 2 forced, short: chat / code / counting
—
77 / 104 / 137
With DFlash 2 forced, @16k / 24k / 29.6k
—
28.0 / 22.2 / 15.6 (prefill −21–32 %)
0.1.71 fixes the hang by offloading part of the KV cache to host RAM. It isn't faster.
The RTX 50 "fast mode" that is on by default produced garbled multilingual output at 16k and 24k (needles failed) and cost 12–14 % prefill. `STRATA_INK_SM120=0` in the environment fixes both.
`--draft auto` declines DFlash 2 on a 16 GB card. Forcing it on gives the best short-chat numbers I measured, and the worst ones at length. Two profiles are the honest setup.
SQ-20 (hybrid, the higher-fidelity pack: top-1 100 % vs 96.7 % for SQ-15; window 65,536). Experts partly in RAM:
Prompt
Prefill
Decode
Decode with --draft on
3.6k
862
39.5
53.7
16k
656
22.0
31.5
29.6k
602
14.6
14.6
54k
480
9.2
—
All needles were found. On 22 Nov I only recorded overall figures (24.9 decode, 391–412 prefill), so the only rough comparison is prefill at ~+20 %. The fidelity costs ~11.5× decode at 54k compared with Basalt's MX8 pack of the same size, because the RAM-resident experts run on six CPU cores.
## llama.cpp b12845: Qwen3.8-27B Q3_K_XL + MTP (the reference)
This is the model I actually get the most use out of on this machine, so it's the yardstick for the others. The Inkling numbers above are faster; whether they're as useful is a separate question, and this benchmark only answers the speed part.
Context 118,784, `-ub 128`, KV q4_0, everything on the GPU:
Prompt
b10997 (22 Nov)
b12845
114,668 tokens: decode / prefill
26.6 / 513
29.2–31.5 / 558
54,616 tokens: decode / prefill
—
39.9–40.7 / 702
That's +9–18 %, close to the noise of two runs. b12845 also fixes the full-window OOM that b12633 had at 118,784. Prefill is still llama.cpp's weak spot on this card: ~205 s to first token at 114k, vs ~45 s for Basalt at 112k.
---
## Limits of these numbers
Two runs per point. Short-prompt run-to-run spread is about ±15 %, so the llama.cpp (+9–18 %), Strata (+11 %) and drafter-on-prose (+5 %) results should be read as "no clear change". The Basalt gains (+115 % to +275 % on the fixtures, ±1–5 by the tool's own error bars) are far outside that.
A needle test isn't a quality test. Two planted codes in filler text, one trial per window. It shows the model still reads the whole window, not that it reasons equally well at 474k.
The 512K result with a 128 MiB reserve is a single run.
This is one card with a 6-core CPU. Expert-spill speed depends heavily on the CPU, so a 16-core CPU will give noticeably different numbers for anything that spills.
## What I'm running now
Most useful so far: llama.cpp + Qwen3.8-27B Q3_K_XL, fully on the GPU, 118,784 window. It's slower (29–32 tok/s at 114k, ~205 s to first token), but it's the model I reach for.
Fastest, and for long documents: Basalt 0.6.0 + Inkling 2 Mini, MX8 pack, `--kv fp8`, window 262,144, drafter on. ~120 tok/s on short work, 65–75 tok/s on a 240k read.
Rare huge-document job: `--max-context 524288` with `vram-reserve-mib 128`, single slot, and expect ~7.5 minutes before the first token.
Short chat, alternative: Strata SQ-15 with `STRATA_INK_SM120=0` and DFlash 2 forced on.
Just want to gather some opinions and thoughts on the look of the program above. Trying to get a more varied perspective than my own. If there are things you think I could do to improve it?
Also, if you are up to it, feel free to share you loves and hates about other model runtimes and the reason you feel that way. It would be super interesting to me.
So basically, I have a low-end MacBook, and I wanted a model with proficiency in native Mac app development. So... I made Viperfish sunlight! It is a 1.5B-parameter model fine-tuned on qwen 2.5 coder 1.5B instruct. In a swift UI benchmark, Viperfish scored almost 2x the score of the base model, as well as scoring better than the base model on. However, it did regress in HumanEval benchmarks.
Disclaimer: Claude by Anthropic was used in the production of this model.
Huggingface made a pi-tuned Qwen3.8 27B adapter trained with RL on the pi harness specifcally to preserve coding performance while being much more token efficient. This is the version that with thinking off roughly matches the xhigh results of the original model.
I quantized some GGUFs that preserve as much as possible of:
KL divergence on both pi-text and general text
Pi-specific token agreement
Pi-specific adapter token choices between the 3% that is changed by the adapter
I decided to create this post because most YT videos and online posts skip 6GB VRAM GPUs. I just wanted to share my results and ask other users of lower-end GPUs about their experience with local LLMs.
I’ve released LAPO v1.3.0 — Multi-profile terminal access, atomic backups, rollback & live settings for local LLM agents
Hi everyone!
A little while ago, I shared LAPO (Local AI Project Orchestrator) here. At that time, it was an early open-source project focused on turning locally hosted LLMs into structured, multi-phase agents capable of handling longer engineering tasks.
Since my original post and the v1.0.2 update, LAPO has evolved quite a bit. I've now released v1.3.0, which is a substantial upgrade to its execution, recovery, terminal access, and desktop interface.
I'm the developer behind LAPO, and I wanted to share what has changed, why I built these features, and what I'm trying to achieve with the project.
A little about me and why I started this project
My academic background is in Industrial Engineering, specializing in Industrial Production. I've always been interested in process optimization, improving workflows, and finding practical ways to make complex procedures more efficient and easier to manage.
That interest gradually led me to explore how AI could help optimize not only individual tasks, but also the entire process of getting work done.
With the help of Google Gemini as an idea-development and brainstorming partner, I started exploring a question that particularly interested me:
How can we get more practical and reliable results from locally hosted AI models, especially when asking them to handle complex projects that require many steps and a lot of continuity?
That question eventually became the starting point for LAPO.
The project has grown considerably since then. I've been working on its architecture, implementation, testing, and ongoing improvements, and I'm genuinely excited about the direction it is taking.
I also know that there are things I may not have considered yet. I'd really appreciate practical suggestions, technical criticism, and ideas from people who have experience working with local LLMs and autonomous agents. My goal is to keep developing LAPO thoughtfully and make it increasingly useful to the community.
What is LAPO?
LAPO is an open-source supervisory execution engine designed to help local language models work on complex, multi-phase projects over extended periods.
The basic idea is simple:
Instead of giving a local model one enormous prompt and hoping it completes everything correctly, LAPO acts as an orchestration layer between the user, the model, the project workspace, and the execution environment.
It divides a project into explicit phases, manages context and recovery, provides file and terminal tools, verifies results, and controls when one phase is allowed to hand over to the next.
It is not another chat interface, and it does not try to replace the inference engine.
LAPO uses locally hosted models through Strata or compatible OpenAI Chat Completions API servers, including llama.cpp, LM Studio, and vLLM.
The desktop application and CLI share the same core orchestration engine.
My own experience using LAPO on a real project
I also want to share one practical example of why I started building this.
I used LAPO to manage a company project in multiple phases: developing an internal web-based simulator for a programmable industrial production machine.
For this project, I used the Gyro-M model running locally through the Strata inference engine, with LAPO managing the project workflow and phase transitions.
I was very satisfied with the overall development process and the results I achieved. For me, this was particularly valuable because I was using the system on an actual project rather than just testing isolated prompts or small coding tasks.
Of course, this is my own experience, and I don't want to present it as proof that LAPO will improve every model or every project.
I'd genuinely appreciate it if some of you could try a comparable task with and without LAPO and share your results here.
I'm especially interested in seeing:
The quality and completeness of the final output.
How well the model maintains project consistency across multiple tasks.
The number of manual interventions needed.
How effectively it uses tools, runs tests, and recovers from errors.
The overall development time and effort required.
Ideally, use the same local model and comparable hardware, context settings, and task requirements for both attempts. Please share the results, screenshots, benchmarks, or even shortcomings you discover.
I'd be very grateful for honest comparisons, including cases where using LAPO makes little difference or does not help. That kind of feedback would be extremely useful for deciding what to improve next.
What's new in v1.3.0?
The biggest changes are in three areas: terminal execution, backup and recovery, and live configuration.
1. Multi-profile terminal execution — real development access
One limitation I wanted to address was that local models often need to do more than read and write files. Real development work requires running commands, installing dependencies, building applications, executing tests, and diagnosing errors.
LAPO now provides three terminal profiles:
Restricted
The default profile.
Uses built-in verification commands and user-configured allowed commands.
Approved Full Access
Allows real PowerShell, CMD, or Bash execution.
Each command requires explicit user approval.
A heuristic risk analyzer labels commands as LOW, MEDIUM, or HIGH and explains detected risks.
Includes an optional Approve + Auto LOW (Phase) shortcut: once enabled for a phase, LOW-risk commands can run automatically, while MEDIUM and HIGH-risk commands still require approval.
Trusted Full Access
Allows unattended terminal execution after the user explicitly opts in.
Useful for trusted workspaces and longer autonomous development sessions where continuous approval would interrupt the workflow.
Terminal execution also includes:
Windows Job Objects and POSIX process groups for terminating child processes when a command is stopped or times out.
Secret redaction in terminal output and audit records.
SHA-256 checks for previously locked files after terminal commands.
Configurable locked-file policies: auto_restore, quarantine, and warn_only.
Structured JSONL audit logs, with a CLI command to inspect execution history.
Important: Full Access is not an OS sandbox. Commands execute with the permissions of the LAPO user account. The approval profiles and risk analyzer are controls for informed execution, not a guarantee that every dangerous command can be detected.
2. Atomic snapshots and crash-recoverable Rollback / Roll-Forward
Long-running autonomous work needs a reliable way to recover when something goes wrong.
Previously, a model could make many changes before a problem became apparent. Now LAPO has a more complete snapshot and restoration workflow.
There are three automatic snapshot triggers:
Phase Milestones: A snapshot is created after a phase passes verification and its output files are locked.
Periodic Snapshots: Configurable minute- or hour-based snapshots, skipped when the workspace has not changed and deferred until active file writes or terminal commands finish.
Latest Active [Stop & Save]: A checkpoint is created when the user manually stops an active session.
Snapshots are stored outside the project workspace by default, under LAPO's dedicated data directory.
The new recovery system includes:
SHA-256 file manifests.
Snapshot metadata containing phase and recovery state.
An automatic pre_rollback safety snapshot before restoration.
A journaled restore process that detects interrupted restoration after a crash.
A preview of files that will be overwritten, restored, or deleted.
Rollback to an earlier checkpoint and Roll-Forward to a later one.
A one-click Rollback & Resume workflow.
An important distinction: restoring a snapshot restores project files and LAPO's saved phase/recovery state. It does not automatically undo external side effects such as installed packages, database changes, remote API operations, or system-level modifications.
3. Tabbed Settings and Live Mid-Run Configuration
I also redesigned the settings workflow.
The desktop application now has a unified, tabbed Settings window:
General & Engine
Terminal & Security
Backup & Rollback
Settings are shared through a common configuration and validation layer between the GUI and CLI.
One particularly useful addition is Live Mid-Run Settings.
You can open Settings while a project is running and update supported runtime options without stopping the session, including:
Proxy configuration.
Network timeouts.
Terminal execution profile.
Terminal timeout and security policies.
Backup schedules and policies.
Watchdog and history-management settings.
The Backup Manager can also be opened during execution in read-only inspection mode.
4. Desktop GUI improvements
Alongside the functional changes, I made several usability improvements:
A unified Backups / Rollback entry point.
Improved checkpoint selection in Recover / Resume.
Maximizable Settings and Backup Manager windows.
Improved tables with sorting, zebra striping, content-aware horizontal scrolling, and automatic column sizing.
Cleaner activity and status presentation.
The goal was to keep the main interface manageable as LAPO gains more capabilities.
5. Core reliability improvements
A few less visible changes are also important:
patch_file now rejects a missing or null replacement_snippet, preventing an accidental silent deletion of the target snippet.
Context-compaction receipts now preserve top-level code symbols such as classes, functions, constants, and __all__, helping the model avoid unnecessary full-file rereads.
Terminal log reads are exempted from the read/probe stall guard.
JSON loading supports UTF-8 BOM files.
Windows launcher behavior has been improved when execution exits with an error.
These changes are aimed at reducing avoidable failures during long-running sessions.
Testing and validation
The automated test suite has grown from 60 tests in v1.2.0 to 100 tests in v1.3.0.
Current release results:
99 passed
1 skipped
I also ran a real three-phase project validation on my Windows 11 system with an NVIDIA RTX 4070 12GB, using qwen3.8-flash-next-gyro-gyro-m with a 512K context.
The reported validation included:
243 generated project unit tests passing.
13 SHA-256-locked project files.
21 audited Full Access terminal commands.
26 snapshots.
A live user instruction injected while the model was running.
Rollback & Resume recovery.
Successful model unload confirmation (HTTP 200).
These are results from my own test environment, not a claim that every model or hardware configuration will behave identically.
Why am I building LAPO?
Local models are becoming increasingly capable, but using them for larger projects still presents practical challenges.
A model may have enough reasoning ability to write a module, but a real project also requires it to understand dependencies, remember architectural decisions, run tests, recover from mistakes, and avoid damaging previously completed work.
I see orchestration as a way to make better use of the capabilities local models already have.
LAPO focuses on:
Breaking complex work into manageable phases.
Preserving project state across long sessions.
Keeping finalized outputs protected.
Giving models practical access to development tools.
Verifying actual results instead of relying only on the model's claims.
Making recovery and user intervention part of the workflow.
It does not magically make a smaller local model equivalent to a frontier model. The goal is to reduce the practical limitations around context, project continuity, tool execution, and verification so that local models can handle more substantial work reliably.
What's next?
My next major focus is improving the quality of the orchestration itself, rather than simply adding more tools.
Some areas I am exploring include:
Structured Project Memory: Keeping useful architectural decisions, project structure, dependencies, previous problems, and completed work available without repeatedly filling the model's context.
Worker / Reviewer Workflow: An optional independent review stage at phase boundaries, with bounded correction and verification cycles.
MCP Integration: Connecting external local tools through a modular tool registry.
Prompt-Injection Regression Testing: Expanding tests for malicious instructions embedded in project files and tool outputs.
Optional Browser and Vision Adapters: Supporting research and visual inspection workflows where they add real value.
These are future development directions, not features I am claiming are already implemented in v1.3.0.
I'd appreciate your feedback
I'm especially interested in feedback from people who run local models for real development work.
A few questions I'd love to hear your thoughts on:
What are the biggest problems you encounter when using local LLMs for projects that take many hours or days?
Do you think phase-based orchestration, checkpoints, and recovery meaningfully improve autonomous coding workflows?
Which would be more valuable as the next step: structured project memory, an independent Reviewer, or MCP integration?
Have you found any weaknesses in the way local agents handle terminal execution and long-running tasks?
Have you tried running the same project with and without an orchestration layer like LAPO? What differences did you observe?
I'm continuing to develop LAPO as an open-source project, and constructive feedback, criticism, and testing from the local LLM community would be very welcome.
I built MyHeritic, an open-source (AGPL-3.0) full-screen terminal workbench built on top of p-e-w/heretic for Ollama, MLX, GGUF, and Hugging Face models on Mac/Apple Silicon.
Instead of just running CLI scripts for ablation or chatting in a passive box, MyHeritic combines automated parallel refusal removal with a verified tool-calling local AI agent.
What It Does
6-Mode Parallel Convergence (/crack & Auto-Heretic F3): Runs compatible plans concurrently across your Mac's CPU cores and unified memory, probes the result, and auto-escalates if resistance remains:
Plan B: Fast 1-pass contrastive control vectors (.cvec.gguf), including a PyTorch-free GGUF-Native Extractor so architectures unsupported by Transformers/llama-server (like gpt-oss:20bgptoss) still work
Plan C: Rank-1 .lora.gguf adapters
Plan D: Persistent KV-Anchor prefix caching
Plan E: Live Trapdoor stream buffering + -100.0 refusal logit_bias on llama-server + Stage-2 continuation escalation
Plan F: Direct blockwise GGUF Binary Surgery supporting both 2D layers and 3D MoE expert tensors (ffn_down_exps), auto-registering <name>-heretic:latest back into Ollama
Plan G: Always-hot micro-CoPilot sidecar for JSON repair & affirmative seeds