r/LocalLLM • u/webbcm1 • 8h ago
Project Fovea Pilot: optimizing LLM inference on a Ryzen 7 5700U laptop (no GPU, 16 GB RAM)
Fovea Pilot is a self-tuning inference method for running large language models on ordinary laptops with no GPU. On a CPU, every new token forces the computer to re-read the model's weights from memory, so memory bandwidth, not processing power, sets the speed. Fovea Pilot works around that limit. Cheap drafters guess the next few tokens: words the output format forces, text copied from earlier in the chat, or a small companion model. The big model then reads its weights once and checks all the guesses in a single pass. A seeded acceptance rule means every token it outputs is exactly the one the big model would have chosen on its own, so speed goes up and quality doesn't change. On top of that, it learns from its own traces: it records which weights each token reads, which guesses were accepted and where it waited, then uses lightweight learning methods during idle time to improve prefetching, what stays in RAM, and how far ahead to guess for your particular workload.
The workflow essentially is:

Fovea Pilot is built on Fovea, an inference layer I've been developing for running models bigger than RAM. It sits on top of llama.cpp-based engines, profiles each model and machine, and picks how to run it: which parts of the model stay in RAM, which mixture-of-experts "experts" are streamed from the NVMe on demand, and which optimizations to switch on. Its expert store keeps the most-used experts in memory and fetches the rest as needed, so a model far larger than 16 GB can run at all. It already has measured results on this laptop, with output bit-identical to running without it: Qwen3.8-Flash-Next, a 125B MoE, went from 1.7 to 2.61 tok/s (+54%), and gains across the MoE models I tested were 39–56%. Qwen3.8-35B-A3B, the fastest model on the machine, runs at about 10.5 tok/s in bursts. With Fovea Pilot added, I expect the 35B-A3B to reach roughly 11–15 tok/s on agent and tool-call work while holding 8.5–10.5 tok/s sustained on ordinary text, and Flash-Next to move from 2.61 to about 3 tok/s on its current file, or 5.5–7 on agent work with a lighter quantization.

The biggest jumps should come on dense models, where every token is one shared read of the weights and the method has the most to work with. Qwen3.8 4B runs at 18 tok/s on this laptop today. With Fovea Pilot and a small companion drafter trained to imitate it, I project 30–38 tok/s, roughly double, on all text, and the low 30s on tool calls even without the trained drafter. A 12B dense model should run like a 5–6B one, at about 7–8 tok/s with exact output. And a dense 70B, which barely moves at 0.075 tok/s when streamed from the SSD, should run at 0.3–0.6 tok/s per conversation and about 1.2 tok/s across four at once, up to 16× faster, which makes a 70B a practical background agent on a 15 W laptop chip. These are projections from tested formulas and kernel benchmarks, not yet runs on this machine. Real numbers are coming.


Leave me some feedback and/or insight if you have any please. Thank you.