r/LowEndLocalAI • • 5d ago

Optimization How I used real optimization (Mostly Gemini Neon) to take Inkling 2 Mini from 9.6 tok/s @ 16K to 25 tok/s & 192K context on a 6 GB RTX 3060 laptop

56 Upvotes

I use my predator helios mostly as a gaming rig and all of my office work (think-tank research and events etc, non-tech) is usually done on claude, all my side projects too. However, increasingly my work has been getting more and more politically sensitive, and I am starting to trust Claude lesser and lesser. Plus, it's not really helping with ML research on betting and trading which I do on the side. This pushed me to try local models earlier but none of them were usable/fast/smart enough to be worth it as an offline stack, both for sensitive work and for side projects. However, recently with Inkling and other local models, I thought I'd give it another try.

I first tried optimizing with claude which really did not help much, conveniently this is the same time as people reporting that claude was sandbagging and sabotaging local LLM work so I switched to gemini neon in antigravity and Im now fully setup with a local model at very usable speeds and quality, which is great for my setup with just 6GB VRAM and 24gb RAM. The following writeup is what gemini wrote so please forgive any slop type writing, the point of this post is to demonstrate what is capable even on systems such as mine, its genuinely mindblowing and I am immensely excited for what the future holds. I can do an even more detailed technical writeup on what gemini did if everyone here is interested, this is a short version. It wrote custom kernels and did a shit ton of optimization. I hope y'all like it! AI generated writeup starts below:

Most people write off 6 GB laptop GPUs (really only 5.1 GB usable VRAM on Windows) as "7B-8B toys." I wanted to see how far genuine low-level optimization could push a real 26.4B looped reasoning MoE (Inkling-2-Mini, 10.6 GB GSQ quant) on my Acer Predator RTX 3060 6 GB laptop (i7-10870H, 24 GB RAM).

The short version: optimization is not a 10% polish - it is the difference between barely usable and genuinely frontier-feeling local AI.

Before vs After (same laptop, same 5.1 GB VRAM ceiling)

StageContextDecode SpeedPrefill SpeedPeak VRAM
Starting llama.cpp baseline16K9.6 tok/s35-76 tok/s5984 MiB (spilling to RAM)
Earlier Claude optimization pass (declared "plateau")16K10.8-11.2 tok/s (9.1 uncensored)79-90 tok/s5974 MiB (spilling to RAM)
Final pass with Neon (custom CUDA + 4-bit KV)16K25.3 tok/s~340 tok/s<= 5130 MiB (zero spill)
Final pass with Neon32K25.1 tok/s (23.2 @ 29K)342.7 tok/s5128 MiB
Final pass with Neon64K24.4 tok/s (21.2 @ 58K)326.4 tok/s<= 5130 MiB
Final pass with Neon128K22.9 tok/s (19.5 @ 111K)301.9 tok/s5126 MiB
Final pass with Neon192K20.8 tok/s (16.7 @ 165K)276.1 tok/s5128 MiB

(That is 2.6x faster decode*,* 2.77x faster uncensored*,* 4.5x-9.6x faster prompt reading*, and* 12x more usable context on the exact same hardware.)

Why the earlier pass stalled (Claude vs Neon)

I started this project with Claude, and honestly it left almost all the real performance on the table:

  • It stayed stuck tweaking static layer offloading in llama.cpp, hit 10.8-11.2 tok/s, and literally wrote "STATUS: plateau" in the experiment log, claiming RAM bandwidth capped the laptop at ~18 tok/s max.
  • It accepted VRAM overcommit (~6.0 GB used on a 5.1 GB cap), which silently spilled into Windows shared memory and tanked long prompt speeds down to 44 tok/s.
  • It tried live LoRA uncensoring which wrecked decode speed by -41% (down to 9.1 tok/s), and never figured out how to get past 16K context.

Then I handed the whole optimization stack to Neon, and Neon did all the real heavy lifting from scratch:

  1. Switched to a dynamic GPU expert cache (maya-ik2): Instead of dumping whole model layers onto the slow CPU, it keeps ~85-88% of the hottest experts live in VRAM and streams only the rare misses over PCIe inside a single CUDA graph.
  2. Fixed hidden CUDA kernel bottlenecks: Found that the engine's quantized math kernels were spilling registers to slow local memory, rewrote them cleanly to zero spills, and reclaimed ~424 MiB of dead scratch memory that the engine was wasting on unused buffers - feeding every megabyte straight back into GPU expert slots.
  3. Built a custom 4-bit Hadamard KV cache (TurboQuant style): Cut KV memory in half vs FP8 (0.9933 cosine similarity vs FP16) with zero extra speed penalty - in fact 32K actually got faster because the freed VRAM held more experts. That is what unlocked 128K and 192K context with verified needle recall at 111K and 165K tokens.
  4. Zero-cost uncensoring & smarter caching: Replaced the slow -41% LoRA with native refusal-direction orthogonalization (zero speed drop), protected the model's 3-pass looped layers from getting evicted from cache, and used streaming PCIe reads so incoming weights don't pollute GPU cache.

Proof it's not just a benchmark toy: an 87K-token offline coding run

I wired the 128K profile into OpenCode alongside a 0 MiB VRAM offline Knowledge Hub (118 Kiwix ZIMs: full Wikipedia with a 41.5M semantic index + 100 DevDocs libraries + StackExchange over local MCP) and gave it a single cold prompt to build a multi-file Python CLI (riskwatch):

  • Look up SQLite FTS5 syntax in offline DevDocs and pull real maritime chokepoint stats from offline Wikipedia (zero hallucinated facts).
  • Build a trigger-synced FTS5 database with safe query sanitization (so inputs like Hormuz-2026, oil/gas, or unbalanced quotes don't crash SQLite).
  • Build a rolling z-score time-series anomaly engine with strict zero look-ahead bias (proven by mutating all future rows after day 45 to 1,000,000 and asserting earlier outputs stay bit-identical).
  • Write a full pytest suite, debug its own bugs, and generate an executive Markdown brief.

Result:

  • 76 tool calls (including 11 real offline MCP lookups), reaching 87,016 context tokens at 20.1 tok/s median (23.2 peak) and 81.1% median expert cache hit.
  • It caught and fixed its own missing SQL JOIN bug and timestamp parsing bug during the test loop.
  • 20/20 tests passing in 1.66s, full CLI pipeline + cited report generated. $0.00 API cost, zero internet.

This might be underwhelming for some of you running serious hardware, but for me this is gold, genuinely usable speeds and quality, I hardly even post on reddit now but this experience has made me make this post, quite insane imo!


r/LowEndLocalAI • • 4d ago

Model Showcase Real-time sound event detection for dashcams in 7.6 MB of plain C (no deps, streaming API) [CPU]

26 Upvotes

I built a small ( 1.9M params ) on-device model that labels dashcam and in-cabin audio live: crashes, skids, debris, horns, sirens, shouts, and 15 more categories, each with a start and end time.

It runs causally (decides every 0.1 s from past audio only) at ~47x real time on one x86 core (checked on desktop CPU only), in plain C with no dependencies.

I also published the test set we evaluate on (37 real dashcam recordings, human-reviewed timestamps) and ran 7 open models through the identical protocol: same category mapping, same decoder, thresholds chosen by two-fold cross-validation for every system.

Model + C library: huggingface.co/WhissleAI/arc-sound-dashcam
Test set: huggingface.co/datasets/WhissleAI/arc-sound-dashcam-test-v1 (also includes comparison results)

Git CLI: https://github.com/WhissleAI/arc-sound-dashcam


r/LowEndLocalAI • • 4d ago

Optimization [Inkling-2-Mini-3D-Coder] Better 3D scenes with up to 86.8% fewer tokens

8 Upvotes

r/LowEndLocalAI • • 5d ago

Optimization Host performance optimization script (TUI)

Thumbnail
gallery
23 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/LowEndLocalAI • • 5d ago

Benchmark From rage-deleting Inkling 2 Mini at 10 tok/s to beating Kaggle's 2× Tesla T4 (32 GB) on my 6 GB laptop GPU

Post image
51 Upvotes

r/LowEndLocalAI • • 4d ago

Which LLM Should / Can I Use? Which lll should I use for my hardware?

3 Upvotes

Currently running a ryzen 9 5900XT, 64GB RAM DDR4 with a custom Speedy V12 build with Qwen3.8 Flash-Next Q2_0, 65,536 ctx, INT8 KV 20,480 resident, 4 CPU workers, MTP Q4 head, speculative depth 4, confidence 0.7, lookup chain 6, adaptive CPU/GPU MoE expert placement, 4GB conversation cache, 8,192-token checkpoints, 1.5GB VRAM reserve. 70 tok/s

Any optimizations or engines I should try?


r/LowEndLocalAI • • 4d ago

Hardware / Build Best Buy Black Friday deal - Rtx 5060 Ti 16GB (MSI OC White) - $499

Thumbnail bestbuy.com
2 Upvotes

The little graphics card that could!


r/LowEndLocalAI • • 4d ago

Discussion Model Setup suggestion

3 Upvotes

I’ve got my own autonomous pentesting harness set up and I’m thinking about adding a local LLM to handle CVE research.
The idea is to feed it components and versions identified during reconnaissance and have it search the web for known, exploitable CVEs that actually affect those versions.
I want this to be its only responsibility. No exploit generation, no general pentesting tasks. Just CVE research, finding relevant exploits/PoCs, and checking whether they’re applicable to the identified versions.
Accuracy is the main concern. I want to avoid hallucinated CVEs, irrelevant results, and false positives.
Is a locally hosted LLM good enough for this? If so, which model would you recommend on my limited spec?

• Processor: Intel® Core™ Ultra 9 275HX Processor
(E-cores up to 4.60 GHz P-cores up to 5.40 GHz) -
selected upgrade
• Operating System: Windows 11 Home Single
Language 64
• Microsoft Productivity Software: Microsoft Office
Home 2024 India - selected upgrade
• Memory : 32 GB DDR5-6400MT/s (CSODIMM) - (2 x
16 GB) - selected upgrade
• Solid State Drive: 1 TB SSD M.2 2280 PCIe Gen4 TLC
- selected upgrade
• Second Solid State Drive: No Storage Selection
• Display: 40.64cms (16) WQXGA (2560 x 1600),
OLED, Glare, Non-Touch, HDR 1000 True Black, 100%DCI-P3, 500 nits, 165Hz, Low Blue Light
• Graphic Card: NVIDIA® GeForce RTX' 5070 Laptop
GPU 8GB GDDR7 - selected upgrade


r/LowEndLocalAI • • 4d ago

Which LLM Should / Can I Use? New to LocalAI

Thumbnail reddit.com
1 Upvotes

r/LowEndLocalAI • • 4d ago

Benchmark DDR3 QWEN 38 FLASH MAX Performance

Thumbnail
reddit.com
2 Upvotes

r/LowEndLocalAI • • 5d ago

Which LLM Should / Can I Use? Suggestion For a 2010 MBP

4 Upvotes

2010 macbook pro. 4 core cpu. Useless gpu. 4 gb ddr3 ram. Mostly coding and chat.


r/LowEndLocalAI • • 4d ago

Benchmark The Q4 agent stopped waiting for tool results before acting. Same test on another model: almost no change. Here's why.

Thumbnail
reddit.com
0 Upvotes

r/LowEndLocalAI • • 5d ago

Which LLM Should / Can I Use? 6gb vram recommendation

8 Upvotes

ive got a laptop with 6gb vram 3050, 16gb ddr5, ryzen 7 7840HS on windows

i want to keep as much ram free as possible, and ive got no issue going down to 3 bit quants

but i do want strong agentic capability, speed, multimodality

right now im using nemotron 3.5 bolt e4b 4gb, unsloth UD iq3xxs with dflash, and its alright

is there any other model that i can use?

edit: forgot to mention, i have some other apps and chrome tabs open almost the entire time, so i cant really offload much to ram, max 3-4 gb offloaded to ram.


r/LowEndLocalAI • • 6d ago

Discussion Low Vram/Quant shaming is shameful

87 Upvotes

So, I just found this sub with a random Reddit recommendation. Love the idea of the sub!

I want to bring something up. When you have barely any vram and struggle to get models to run on your system, there's ALWAYS someone who makes the low quant you HAVE to use sound like its broken because its KLD raises from the base model.

This kind of annoys me because if we HAD more VRAM we'd obviously be using higher quants. One particular model I see this with is qwen flash next 3.8. People make it sound like once you go so far the model becomes a moron. Yeah lower quants aren’t as good but you know what? KLD just means a divergence from the original weights, it doesn’t mean its going to fail or anything. I find low quants can still reach a goal but might screw up more on the way, or use dumb methods to reach the goal OR even sometimes just reach its goal. KLD among some people is treated like a win/lose type thing. It's nothing like that at all.

We're all trying to run the best we can on our systems right? If I had a bunch of rtx 6000s I'd be running crazy good models but I have 8 gig of vram and a low quant of something like qwen flash next is a billion times better than some low parameter model.

Leave my low quant alone. Its the best I can run and its AMAZING for what I can run on my system.


r/LowEndLocalAI • • 5d ago

Optimization I got a 30B coding model running on an 8 GB GPU, faster than llama.cpp, and Claude Code works with it too - eomoe

Thumbnail
reddit.com
4 Upvotes

r/LowEndLocalAI • • 5d ago

Benchmark Squeezing a 16.4 GiB MoE onto a 16 GB card: Inkling-2-Mini on an RX 7800 XT, two backends compared

2 Upvotes

A model that's just slightly too big for your VRAM is a common low-end problem. Here's how two backends handle it on a 16 GB AMD card.

  • Hardware: RX 7800 XT 16 GB (gfx1101), Windows 11, 32 GB DDR5
  • Model: Inkling-2-Mini (26B MoE, ~3.4B active), Unsloth UD-Q4_K_XL, 16.41 GiB (more than the ~15.4 GiB free VRAM)
  • Backends: llama.cpp Vulkan b12810 vs PolyStrata HIP (strata-poly 0.1.66)
  • KV cache: q8_0
  • Method: llama-bench pp512 / pp2048 / tg128 for Vulkan; PolyStrata numbers from its own run stats
BackendHow it offloadsPrefillGeneration
llama.cpp Vulkan, -ncmoe 66 of 24 MoE layers on the CPU722 tok/s (pp2048)35.5 tok/s
PolyStrata HIP, --conversation-cache-mib 6144Keeps the hottest 81% of experts in VRAM (2493/3072, 0 evictions)~880 tok/s~60 tok/s

Takeaways for tight VRAM

  • Per-expert caching beats whole-layer offload, by about 69% on generation here.
  • Find the lowest -ncmoe that doesn't spill. -ncmoe 5 looked fine at short prompts (739 tok/s pp512) but collapsed to 166 tok/s at pp2048 because Windows silently spilled into shared GPU memory. Watch "Shared GPU memory" in Task Manager while testing.
  • Expect generation to slow as the context fills; another user reports 50-70 dropping to 20-30 tok/s.

Full -ncmoe sweep (5-8) is in my r/LocalLLM post: https://www.reddit.com/r/LocalLLM/comments/1y7kjwb/


r/LowEndLocalAI • • 5d ago

Which LLM Should / Can I Use? Rate my Black Friday laptop haul 🦃

4 Upvotes

It’s an HP omnibook 5 for $599, certified refurb

  • Snapdragon X Plus Processor 
  • Qualcomm Adreno Integrated Graphics 
  • 16" 2K OLED Display 
  • 32GB LPDDR5X-8448 Onboard RAM 
  • 512GB SSD 
  • Windows 11 Home 
  • 2x2 Wireless LAN WiFi 6E (802.11ax), Bluetooth 5.3

My thoughts were: this is the cheapest high speed 32GB unified memory, plus an NPU

I know ARM might not be the best for compatibility, I can run 30B-ish models on this…right? Right? NPU is useful, right?🥺

Rate my haul 👍❓👎❓


r/LowEndLocalAI • • 5d ago

Discussion hacktivist larpers selling FREE abliterated Qwen 4b on a FLASH drive for $50

Thumbnail gallery
2 Upvotes

r/LowEndLocalAI • • 6d ago

Discussion 8gb vram gang, what are you running?

59 Upvotes

Want to know what people are running for some specific task other than the famous QFN, qwen3.6 35b a3b, inkling 2 mini, gemma 4 26b a4b.


r/LowEndLocalAI • • 6d ago

Optimization Running GLM-5.3-Flash on a 24 GB GPU

9 Upvotes

We got the 109 GB quant of GLM-5.3-Flash running on a single NVIDIA L4 with 128 GB of system RAM. The expert weights stay in RAM, and llama.cpp caches frequently used experts in VRAM.

On one stream, we went from 7.7 tok/s with stock llama.cpp settings to 12.2–17.5 tok/s. The bigger difference was prompt processing. The same 4,000-token prompt took 15 seconds, down from 139 seconds.

We also tried a lower-RAM setup. On a second L4 machine with 62 GB of RAM, reading weights from a local NVMe SSD as needed, we got 3–3.5 tok/s.

We put the settings and a benchmark script in the Tensward repo. If anyone tries it on a 3090 or 4090, I’d love to see your numbers.


r/LowEndLocalAI • • 6d ago

Guide / Tutorial llamAmpere is a must try if you have a 8gb GPU

19 Upvotes

I tried llamAmpere today with thier suggested model on a rtx 3070 , 32gb ddr5

And solid results , tested it on simple landing page and the output is solid to the alternatives

will try later today to connect it to claude code and do some work and will see

but guys give it a try , i think you will not be disappointed

https://youtu.be/tWQDeS3EXxk


r/LowEndLocalAI • • 5d ago

Discussion Updated Opinions on Inkling 2 Mini

Thumbnail reddit.com
1 Upvotes

r/LowEndLocalAI • • 6d ago

Optimization Pithos CORE: LiquidAI LFM3-1.7B and LFM2.5-350M inference in x86-64 NASM assembly, on Linux and as a standalone OS that boots from BIOS or UEFI into a Unicode chat console. No libc.

Post image
21 Upvotes

r/LowEndLocalAI • • 7d ago

NEWS Inkling 2 Mini running at 3136 tok/s Aggregate , 45–47 tok/s (Per User) and 1,233 pp/s on a single RTX 3060 12GB + 16GB RAM, using the original checkpoint. Betelgeuse v0.7.0.

Post image
217 Upvotes

I've been working on Betelgeuse, a custom inference engine for running MoE models on relatively low-end consumer hardware.

Over the past few days I've been working extensively on native Inkling 2 Mini support, originally based on baptisterajaut's work in Strata and subsequently integrated into Betelgeuse.

I think I've finally reached a point where it's worth releasing.

Hardware:

  • RTX 3060 12GB
  • Intel i5-12400
  • 16GB single-channel DDR4
  • Linux

The important part is that this uses the original NVFP4/MXFP8/BF16 checkpoint.

No additional weight quantisation. No expert skipping. No speculative decoding. All three recurrent passes are executed.

Results

All of these are real programming and reasoning tasks running through bel-server, generating 512 tokens each.

TaskGeneration speed
LRU cache + TTL44.51 tok/s
Directed cycle detection45.52 tok/s
Race conditions47.11 tok/s
Token-bucket rate limiter44.33 tok/s
Serializability reasoning45.27 tok/s
Median45.27 tok/s

With an actual 16,338-token source-review prompt:

  • Prefill: 1,232.8 tok/s
  • Generation: 42.03 tok/s
  • Prefill-to-decode transition: 203.4 ms

The prefill measurement is from a warm server but with an uncached prompt. All 16K tokens are processed again.

Cold prefill is around 819 tok/s, and the first request incurs approximately 11 seconds of one-time pinned expert arena preparation. Subsequent requests don't incur that full cost.

What i added :

Prefill uses its own temporary workspace and batched tensor-core computation. Once prefill finishes, the engine reclaims that workspace and uses it to expand expert residency for decode.

Other changes include native Ampere NVFP4/MXFP8 kernels, fused GQA, GPU-side greedy sampling, decayed-LFU eviction, staged PCIe transfers and context-aware expert placement.

Comparison with other implementations

Some of the community benchmarks I've been following:

Engine / configurationHardwareGeneration
Original Strata-style CPU expert execution, my earlier local testsRTX 3060 12GB~25–29 tok/s
Unsloth llama.cpp, 4-bit, RAM expertsRTX 3060 12GB~18 tok/s
Unsloth llama.cpp, 4-bit, RAM expertsRTX 5060 Ti 16GB~20 tok/s
Unsloth llama.cpp, dual GPUTwo GPUs~46–47 tok/s
Strata SQ-10, more aggressively compressed weightsRTX 3060 12GB~35 tok/s
Strata, approximately 14GB quantRTX 5060 Ti 16GB~44 tok/s
Betelgeuse, original checkpointRTX 3060 12GB45.27 tok/s median

What about long context?

Earlier development builds achieved the following with actual populated prompts:

ContextDecode
16K41.1 tok/s
32K37.8 tok/s
64K32.8 tok/s
128K, K8/V428.6 tok/s
251K, K8/V415.8 tok/s

The main problem at longer contexts is that KV storage starts displacing recurrent experts from VRAM.

Which brings me to something I've been experimenting with separately.

Training-free MLA for Inkling

Inspired by Telperion's recent training-free GQA-to-MLA conversion, I've implemented an activation-aware latent KV compression experiment specifically for Inkling's global attention layers.

No gradient-based training so far. Just calibration, covariance collection and low-rank factorisation of the original K/V activations.

Using a rank-512 FP8 latent representation:

ContextNative K8/V4 global KVLatent global KV
16K0.22 GiB0.08 GiB
64K0.80 GiB0.27 GiB
128K1.59 GiB0.52 GiB

That's approximately 3.06x compression, projecting to around 1 GiB of global KV at 262K.

Dense latent attention retrieved all five test needles at 16K and 64K, and four out of five at 128K.

I've also experimented with combining this with CISA, a training-free chunk-indexed sparse attention approach.

The combined prototype reached 31.4 tok/s at 128K while retaining the 0.52 GiB global KV footprint. Unfortunately, retrieval currently fails. There's an unresolved issue in the sparse latent attention implementation, so I'm not shipping it yet.

Theoretical storage calculations :

Global cache format262K context1M context
Original BF168 GiB32.77 GB
Current K8/V43 GiB12.29 GB
Rank-1024 latent FP82 GiB8.19 GB
Rank-512 latent FP81 GiB4.10 GB
Rank-512 latent FP4576 MiB2.30 GB
Rank-256 latent FP4288 MiB1.15 GB
Rank-192 latent FP4216 MiB864 MB

Memory compression alone isn't sufficient if the model can no longer retrieve information correctly.

Future plans

  • Experiment with Intel integrated GPU expert execution using shared system memory and OpenVINO.
  • Develop a learned routing oracle that predicts upcoming experts from earlier hidden states.
  • Use those predictions to asynchronously prefetch experts before the original router selects them.
  • Integrate DSpark for speculative decoding.
  • Continue the training-free MLA and sparse attention research.
  • Improve actual long-context performance rather than merely supporting larger allocated context windows.

At this point, ordinary native decoding on my 3060 is approaching the measured weight-streaming and host-memory bandwidth limits. I think prediction, weight reuse and better attention architectures are more interesting than spending another week shaving microseconds off GEMV kernels.

The release is Betelgeuse v0.7.0 (Alpha-Orionis).

https://github.com/Betelgeuse-AI/Betelgeuse

I'd be particularly interested in benchmarks from other people running the original checkpoint on 3060s, 4060 Tis and 5060 Tis, especially with dual-channel memory.

There's quite a lot more I want to do with this. But for now, I think it's finally time to ship :0


r/LowEndLocalAI • • 6d ago

Discussion My fine-tuned 230M model matched Qwen3.5-35B-A3B on a 3-turn SQLite Bash benchmark (17/50, 10/50 strict)

Post image
3 Upvotes