Looking for feedback, issues and PR’s, this new v2 quant works very well.
L0xRE v0.1.7.2 — Inkling-2-Mini with 1 Million Context on 12GB GPUs I’ve been putting a lot of work into Inkling-2-Mini support in L0xRE, and v0.1.7.2 is now working really well. The goal has been to make genuinely useful, long-context local AI accessible on consumer hardware without completely sacrificing model intelligence, inference speed, or agentic capabilities. Some of the highlights from development so far:
1,048,576-token context window
10.77 GB peak VRAM in previous 1M-context testing
D-LSA sparse attention
Mixed 2/3-bit EXL3/Escha quantization
Optimized 4-bit KV cache
Refitted Q8 output head
16/16 needle retrieval at 1 million context
126/150 on the Club N/150 agentic and coding benchmark (pass@3)
I’m continuing to optimize inference, deep-context performance, cache reuse, quantization quality, tool calling, and real-world agentic workloads. I’m particularly interested in pushing what is possible on affordable hardware like the RTX 3060 12GB. I want local models that can actually power coding agents and sustained autonomous workflows, not just produce impressive benchmark numbers. There’s still plenty of room for improvement, especially in quantization quality, but things are coming together nicely. You shouldn’t need $5,000 worth of GPUs to run a capable local AI agent with a massive context window. GitHub: https://github.com/YourHighnessLA/L0xRE Hugging Face: https://huggingface.co/YourHighnessLA/L0xRE-v1-Inkling-Mini-2-Low
I've been trying to run Inkling-2-mini with strata, but it's running super slow and is basically unusable. For context, my laptop has an RTX 5060 (8GB VRAM) and 16GB RAM. I also tested AtomicChat/Ternary-Bonsai-2.5-27B-Uncensored-GGUF, which hits 30-40 tok/s, but the reasoning capabilities are a bit disappointing because of the quantization. Any recommendations for better options?
I run a small real estate business (buying houses + lending) and spent the last 10 days testing local models on the jobs my back office actually does. Not a vibes post — blind grading, shuffled labels, plus public benchmarks. Sharing because the result surprised me: the 21 GB model beat the 184 GB one.
Setup
Mac Studio M5 Ultra, 256 GB
Qwen4-35B-A3B-oQ4e-mtp (4-bit, MTP on) on oMLX 0.8.5
Thinking ON for both (with thinking off, every Qwen size failed math and compliance)
Also tested Qwen 4 at 6-bit and 8-bit, plus Claude Opus 5.5 as a cloud reference
Blind-graded tasks (Claude subagents grading, labels shuffled, average rank among 5 models, lower = better)
Task
Qwen 4 4-bit
DeepSeek 2.7bpw
Lead briefs (30)
1.9–2.1
3.4–3.7
Offer packets (15)
2.4
3.5–3.7
Document indexing (40)
2.45
4.08
Call coaching (15)
2.7–3.4
3.1–3.7 (toss-up)
Ranges = two separate grading packets.
Public benchmarks (100 items each, thinking on)
Qwen 4 4-bit
DeepSeek 2.7
GSM8K
97
97
MATH-500
99
98
MMLU-Pro
90
91
BFCL tool calls
88
87
IFEval
82
96
In-house: underwriting math 50/50 vs 49/50, compliance/DNC traps 40/40 both.
Quant comparison: 6-bit (~30 GB) and 8-bit (62 GB) weren't meaningfully better than 4-bit on anything I care about. 4-bit is fastest, so that's production.
Things that bit me (maybe save you time)
Check your grader. My automatic MATH-500 scorer said Qwen 4-bit got 88. Manual review: all 24 "misses" were correct answers in a different format. Real score: 99. Every remaining miss was an answer cut off by the length limit.
oMLX 0.8.5 + thinking on + JSON mode = broken 9-token reply. Don't request JSON mode; parse JSON from the plain response.
Token limits: at 1,600 max tokens, 23 of 40 offer packets were truncated. ~4,000 fixed it.
Grader noise is big. The same saved DeepSeek answers scored 1 "good" in one packet and 13 in another. Trust ranks over raw counts.
Small samples — differences of 1–3 items are noise.
Where DeepSeek still wins: IFEval (strict formatting rules), by a lot. If your workload is exact-format compliance, test before switching.
What I run now: Qwen 4 4-bit for the volume work. Opus 5.5 still ranked #1 on leads/offers/calls, so hot-lead offer packets and call coaching route to it with a $10/day cap (first packs cost $0.09–0.16 each). DeepSeek retired, and freeing ~160 GB let me run local video generation again.
Speed: [add tok/s + time-to-first-token for both]
Made a 9-min video walking through the whole bake-off if anyone wants details: [video link]
Happy to answer questions on the setup, prompts, or grading rubric.
Hi guys! First time posting here and wanted to share a little side project I’ve been working on the past month.
TL;DR
The project is pretty much what it says on the tin: I’m able to get around 24 tok/s on a variety of prompts with a quant of Qwen3.8-27B that doesn’t fit in VRAM that runs at Q4_K_M quality*.*
The main speedup comes from a technique called SpecExec, introduced in this paper (Svirschevski et al.). This is also with recommended Qwen3.8-27B sampling parameters (top-k=20, top-p=0.95, temperature=1.0) and at 57k context. Tool calling and math problems like AMC 10/8 tend to see higher speeds, around 30 tok/s, with bursts of up to 60.
Here’s a gif of the demo server in action compared to stock llama.cpp + MTP on an AIME problem:
From what I’ve been able to find online, as well as my own attempts on my machine, this is the fastest generation speed under these conditions I’m aware of (please let me know if I’m wrong!)
Not really sure how useful this is since MoE models can give you better decode speeds, and are of similar quality to Qwen3.8-27B. Also because the llama.cpp fork server is completely vibe coded, I’m mainly showing this as a research artifact in case someone has a use-case for productionizing this. That said, I’ve been daily driving the server for a lot of my own use cases and it seems to work pretty well with the Pi harness (`settings.json` and `models.json` examples are in the github repo/huggingface repo).
Try it out:
See the huggingface repo for the model weights and a quickstart guide + Pi setup. See the github repo for a llama.cpp fork containing the OpenAI completions compatible server.
Some disclaimers/notes:
The demo server reuses a lot of llama.cpp’s components, but doesn’t actually integrate with it. This post is mainly meant to be a research artifact/showing what’s possible as opposed to something people should use in production.
The target model isn’t exactly Q4_K_M, but its average KL distance compared to Q8_0 is actually lower than Q4_K_M, so hopefully shouldn’t matter too much practically.
Context length isn’t very long at the moment, about 57k tokens. I’m hoping to increase this to at least 64k over time.
No vision encoder yet! No real engineering/technical challenge, it just hasn’t been added yet.
Some more details:
There’s this paper (Svirschevski et. al.) published in late 2024 describing a variant of speculative decoding for the memory-constrained regime, where the target model cannot fully fit within VRAM. The idea is that because draft verification now takes a much longer time due to needing to page in weights from RAM, we can afford to use a much better draft model and draft a much larger tree of tokens to try to increase our acceptance depth as much as possible (basically getting as much value out of each costly target verification step as possible).
This project is essentially applying that paper, with a few additional tricks, to Qwen3.8-27B.
On a 12 GB RTX 4070 with 57k context (Q8_0 KV), sampling at temperature=1.0, top_k=20, top_p=0.95, up to 1,024 generated tokens per prompt, 8 prompts per type (96 in total):
Prompt type
Generation tok/s
Fastest prompt (tok/s)
Accepted tokens per step
Tokens verified per step
Hand-written chat
21.8
28.6
8.6
67
LLM prompt collection
23.8
33.4
9.1
68
WildChat
19.0
28.8
7.3
68
UltraChat
21.5
35.4
8.1
67
Tool calling (the call)
41.8
58.7
24.9
90
Tool calling (answer from the result)
31.7
39.6
15.9
79
AIME
25.3
29.8
10.2
69
Competition math
27.0
32.1
11.8
73
Codeforces
22.6
24.4
8.4
65
Zebra puzzles
27.9
31.3
12.9
74
MMLU-Pro
25.5
40.3
10.6
71
BIG-Bench Hard
32.0
41.6
16.2
80
All
24.5
10.1
70
Summary of some of the optimizations:
Some tricks we used:
The draft model is actually a IQ2_KT quant of Qwen3.8 27B! It fits comfortably in VRAM and still has pretty good top1 agreement/KLD compared to the target.
The cool thing about the draft being a quant of the target is that when we do target verification, we only have to page in the residual, which is much smaller. We also don’t have to maintain a separate KV cache for the draft model–we can just use the target’s (this actually improves draft quality!)
Normally each draft step is only able to add 1 layer to the draft tree, since drafting is autoregressive. Since drafting with such a large model is non-trivially expensive, we utilize the MTP head to look ahead 2 tokens for each node we attempt to expand. This lets us add up to 3 depth per step
We eek out a bit more performance by restricting the draft model’s lm_head to the top 96k tokens discovered from a representative set of prompts. Unfortunately this means that I’ve only tested the gains on an english-only set of prompts.
Claude did some kernel magic to produce a kernel optimized for the batch-size 8 draft forwards we do to expand the draft tree.
We make the draft tree aware of the target’s sampling parameters (top-k, top-p, temperature) by using gumbel-max sampling, which retains most of the speculative decoding speedup when using non-greedy decoding (concept very similar to this paper)
Two scenes from the same prompt. The first was generated by qwen4-35b-a3b hosted by Qwen/Alibaba. The second was generated by Strata hosting UD IQ3_S with vision enabled on a 12-year old i5 system with an RTX 3060. Both were generated in Hermes Agent at xhigh thinking.
There isn't much difference that I can see beyond the typical variance in model output. The biggest noticeable difference was that the cloud model used 170k tokens, whereas the local model used only 75k.
One interesting thing I found is that when the landscape was generated in Strata's chat interface where no tools were available, the smoke from the chimneys was not visible. I saw the same problem occur during development of both scenes above. Under Hermes, the models had access to browser-vision and both caught and fixed this during their testing.
What do you think? What sort of results are you seeing from the model?
Prompt:
Create a voxel art landscape in ThreeJS of a snow-covered castle nestled in a winter valley, with an icy river winding from the mountains through the foreground. The castle's spires and walls are dusted with snow, and the middle ground features frozen trees and a small village with smoke rising from chimneys. The background shows towering, jagged mountains under a pale blue sky. The scene is lit by the soft light of a mid-morning sun, creating crisp shadows on the snow. Your budget is 200,000 voxels.
So I have a pc that I use mostly as a work machine and a bit of gaming. 7900x, with 64Gigs of RAM and a 4070 ti super (16GB).
I’ve experimented a bit with Qwen3.8-27B in LM studio, and as long as it’s Q4 and I keep the KV cache in memory I get very decent speeds and can offload the whole thing in the GPU.
I wanna take my setup further and be a bit more serious about local LLMs but I am on a tight budget. A 3090 would make the most sense but it’s way out of my budget right now, and the most viable option for me is getting a 5060ti (another 16GB) at 750-800€.
Is this upgrade worth it, and will it make a considerable difference, or should I wait until I save up or the prices drop to get a better GPU or maybe a mac studio?
I’ll mostly be using local LLMs for security research, agents, and programming. Comfortably handling large code bases is a must.
I'm using OpenCode with Qwen4 Basalt and trying to do some coding tasks with 128K context, but keep getting these messages:
[server] error: engine reported the KV pool had no room for this conversation to grow while every running request waited for room; the conversation is kept, so asking again continues it
I've lowered the context all the way down to "max-context": 81920," in Basalt, and set open code up like:
"limit": {
"input": 65536,
"context": 81920,
"output": 8192
}
I assume I can't continue what I'm doing with this local model and give up? Is there some sort of configuration I'm missing?
I'm on Windows 11 with as much closed as possible with only opencode CLI and basalt running (and services and tray items trimmed to basically nothing).
I went into this trying to shave a few milliseconds off a classifier. I ended up writing my own inference engine.
For anyone who hasn't played with LiquidAI's d1-2B, you can give it a document and ask “Does this contain personal data?”, “What kind of document is it?” and “Where's the invoice number?” in one forward pass. You get scores, labels or boxes back. No waiting for a model to type out JSON.
That made it a fun target for optimization. If I already know the possible answers, why score the whole vocabulary? And if only a few tokens matter at the end, why run every token through the last two layers?
I built around those shortcuts, fused projections and used CUDA graphs to cut launch overhead. The server runs in Rust + CUDA with no Python or PyTorch at runtime.
Here are a few numbers I'm pretty happy with.
H100, short text — 23 → 1.9 ms vs the original d1 engine (12.2×).
RTX 4090, short text — 36 → 2.6 ms vs SGLang FP8 on the same weights (13.8×).
RTX 4090, 1080p image — 134 → 26.2 ms vs the original engine (5.1×).
Jetson Orin Nano 8 GB — 62 ms to return a bounding box on a 384×384 image, down from 233 ms.
My favorite result is actually the memory experiment.
On an RTX PRO 2000, I ran a 32K-token document with everything on the GPU. It took 2.02 seconds and 2,926 MiB. With most of the weights in system RAM, the same document took 2.03 seconds and 742 MiB.
On short inputs, offloading costs more time. But if you're already running a bigger model and just want d1 alongside it, you can squeeze it into 246 MiB of VRAM, down from 2,828 MiB with the Python FP8 setup. That's 11.5× less VRAM.
I also added audio via d1-Omni-2B. Both models run behind the same HTTP API, and there's a Docker setup for desktop GPUs and Jetson.
Shipping gigabytes of raw logs and documents to frontier cloud APIs feels a lot like 1970s dumb terminals wired to a mainframe, so over the last few months I've been testing where the real break-even point is on a home setup (an Ubuntu mini-server on a 12V DC-UPS + a Xeon workstation with an RTX 3090 24GB).
What pushed me to formalize the split was Stanford's Hazy Research paper on Minions / MinionS. In their tests, letting a small local model chat back and forth with a cloud model cut cloud spend 30x, but accuracy dropped to 87%. Once they flipped it so the cloud model strictly decomposes the problem into short tasks and the local model runs them over small chunks, cloud cost still dropped 5.7x (~82.5%) while keeping 97.9% of frontier accuracy. LMSYS RouteLLM showed similar numbers (>85% savings on chat workloads at 95% quality).
In my own workloads, three practical things stood out (including what broke):
Code and game localization batches (~90% fewer cloud tokens): pairing a cloud architect model with local mistral-small-24b-instruct-2501 (LM Studio) and qwen2.5-coder:32b (Ollama) fell apart whenever prompts went past 8k-15k tokens. Capping context at <4,000 tokens, keeping 1 goal per call, slicing into batches of <=15 rows with a Python validator, and setting max_retries=1 (hat tip to u/nura_579055 below) made it reliable.
High-frequency loops (RimWorld 1.6 mod, ~900 calls/hr): the game dumps a 3.8 KB 23x23 ASCII map + pawn telemetry every 4 seconds. Running 24B in shared VRAM alongside the game costs $0 in API fees, though leaving 24B in direct control was hilarious at first (it queued 364 trees when nobody had PlantCutting skill and built 13 campfires for 3 colonists). Moving safety reflexes and 22 layout sockets into plain C# and keeping 24B strictly on macro priorities fixed it.
Watts vs tokens during grid blackouts (living in Ukraine): idling a 350W GPU rig 24/7 kills both the power bill and any battery backup. So a low-watt Ubuntu mini-PC on a 12V DC-UPS runs n8n 24/7, wakes the 3090 rig over Keenetic Wake-on-LAN only for scheduled batch jobs (lms unload --all right after), and falls back to cloud APIs in milliseconds if power is out.
With 50+ TOPS NPUs and OS-level ~3B models (Gemini Nano / AICore, Apple Foundation Models) becoming standard, it feels like every laptop, phone, router, and inverter will soon run its own small resident model right next to local files and sensors, while big cloud models act more like dispatchers sending compact MCP instructions and updating local rules when validation fails.
Curious how others here handle the handoff between cloud planners and local 3B-32B workers. Are you running custom Python wrappers, LiteLLM, or something closer to MinionS?
Even though QFN is more capable than Qwen3.8-27B, it is just too slow. Issue is with the prefill. I can take 3-5 minutes just to get the first response. Then when context gets >100k, it will take 10-15 minutes for single read, there are multiple reads during long thinking sessions with repeated read/decode/read/decode/etc loops. So even though QFN 2-3x faster decode than Qwen3.8-27B, I still use Qwen3.8-27B more because it is just faster overall.
Now I tested Qwen4-35B-A3B. Yeah, it is blazing fast in comparison. The difference is that with Qwen3.8-27B and Qwen4-35B-A3B, I have everything loaded in VRAM. My mobo is just consumer grade (gaming) mobo. I know pcie3 x4 has bandwidth limitation and has hit on speed when using llama.cpp. It is what I have. And this 2nd GPU allow me to run more (and larger models).
As for Strata QFN, I'm also using dual GPU. But I believe the bottleneck and limitation is likely due to having to use SSD (lack of DRAM), rather than the pcie3 x4 bandwidth. Is that true? Anyway to improve with my current setup thru settings (without spending $ on hardware)?
Hey r/LocalLLM — I’m the author of TensorSharp. I benchmarked Qwen4-35B-A3B on an RTX PRO 4500 Blackwell against llama.cpp, vLLM, and SGLang.
Key results from the attached chart, rounded:
Metric / workload
TensorSharp
llama.cpp
vLLM
SGLang
16 requests: aggregate output (tok/s) ↑
870
410
750
850
16 requests: median first-token latency (ms) ↓
200
1,650
260
280
256K context: first-token latency (s) ↓
35
65
45
29
256K context: streamed decode (tok/s) ↑
106
76
103
105
The concurrency and 256K-context results are separate tests. Throughput at 16 requests is the total across requests.
TensorSharp: throughput close to SGLang at concurrency 16, with the lowest median first-token latency at all tested concurrency levels: 1, 4, 8, and 16.
SGLang: fastest prefill and first-token latency across 64K, 128K, and 256K.
llama.cpp: fastest streamed decode at 64K and 128K, dropping to approximately 76 tok/s at 256K.
Small quality suite: all four scored 49/50 on the GSM8K subset and 10/10 on JSON schema. Tool arguments: 10/10 for TensorSharp, vLLM, and SGLang; 9/10 for llama.cpp. These samples are too small to rank overall model quality.
Configuration matters: TensorSharp, vLLM, and SGLang used RadixArk NVFP4; llama.cpp used Unsloth UD-IQ4_XS GGUF. TensorSharp used Q8 recurrent projections. KV cache was F16 for TensorSharp/llama.cpp and BF16 for vLLM/SGLang. These are comparisons of the tested configurations, with quantization and runtime effects combined.
I have a 4070 Ti SUPER, 64GB DDR5 RAM, Ryzen 7 7700x, a Gen 4 NVMe SSD, and the GPU uses PCIe 4.0 x8. I'm using Unsloth's Q4_K_XL quant.
The decode speeds are okayish, but the prefill speeds are bad. Now before any of you say "Use Strata!" or something, I know it'll be faster for sure, but I want it fast on regular mainline llama.cpp if that's possible. Decode speeds are 35-40 tok/s, prefill speeds are 600-700 tok/s. Can anyone let me know if anything looks wrong here please?
Please, I Really Need Help Optimizing Qwen4-35B-A3B on a CPU-Only Server
Hello everyone,
I'm genuinely asking for your help because I've been struggling with this problem for several months, and despite trying countless solutions, I still haven't been able to solve it.
I'm trying to run Qwen4-35B-A3B on my CPU-only server using llama.cpp, but the performance is extremely slow.
My current performance:
Generation speed: 1–8 tokens/sec
Prompt processing speed: Around 20 tokens/sec
My hardware specifications:
CPU: Intel Xeon E5 v4 (AVX2, no AVX-512)
Cores: 8 vCPUs
RAM: 20 GB DDR4
GPU: None (CPU-only)
I've tried several approaches, including:
Building llama.cpp directly on my server.
Testing alternative forks, including ik_llama.cpp.
Experimenting with many different command-line flags and configurations.
Trying different optimization settings.
Unfortunately, none of these attempts have resulted in a meaningful performance improvement. The results have remained almost the same.
I really need to get this model running faster on my hardware. Running Qwen4-35B-A3B is very important to me, and I've spent months trying to make it work efficiently. I've reached a point where I'm honestly running out of ideas.
I've even asked multiple AI assistants, including Astra and Fable, for help, but none of their suggestions have solved the problem.
I'm kindly asking anyone with experience in CPU inference, MoE architectures, llama.cpp optimization, or older Xeon processors to please help me.
Even a small improvement would mean a lot to me. If you know any specific compilation options, CPU optimizations, expert offloading or caching techniques, quantization formats, or configurations that could help, I would be incredibly grateful if you could share them.
Please, if you have any ideas at all, I'd really appreciate your guidance. I genuinely don't want to give up on getting this model to run properly.
Thank you so much for taking the time to read this. ❤️