r/LocalAIStack • • Oct 10 '26

A C# Local inference engine beat llama.cpp at its own game: ~30% faster first token, ~20% faster decode - running in .NET on a 4-thread laptop

18 Upvotes

A C# Local inference engine beat llama.cpp at its own game: ~30% faster first token, ~20% faster decode - running in .NET on a 4-thread laptop

I needed a .NET-only GGUF engine - no pip packages, no native libs, no runtime installs, just a managed dependency my other projects can call. So I built SharpMind, a pure-C# transformer + MoE inference engine (with training) on .NET 10. Zero native code. I never expected it to compete on performance - managed code vs hand-tuned SIMD C++, right? So I benchmarked it against the real engines: same raw prompt (What is the capital of France?), greedy, 64 tokens, 4 threads, warmup + best-of-3, interleaved per model on one host.

ModelEngineLoad (s)TTFT (s)Decode (tok/s)
qwen2-0.5B Q8_0SharpMind6.20.2914.65
llama.cpp3.90.1114.24
dotLLM2.01.365.74
Llama-3.2-1B Q8_0SharpMind32.11.223.69
llama.cpp7.70.175.02
dotLLM3.32.853.23
gemma-3-270m Q8_0SharpMind3.10.1018.52
llama.cpp5.20.1320.28
dotLLM---
Qwen1.5-MoE-2.7B Q2_KSharpMind102.413.440.61
llama.cpp21.70.253.88
dotLLM---

(dotLLM DNF the last two - it only supports Llama/Mistral/Phi/Qwen/DeepSeek and no K-quants below Q4_K.)

A dependency-free C# engine that wins some metrics and matches the OG llama.cpp on others - int8-kv decode at 24.1 tok/s vs llama.cpp's 20.3 with(not shown) , TTFT cut ~30% on gemma-3, decode edge on qwen2, and a 6× MoE loss I fully expect and own. Respectable company for managed code, and if "no native installs" is your constraint, you no longer have to sacrifice everything

Open source: https://github.com/Integral2u/SharpMind.


r/LocalAIStack • • 22d ago

Tried DavidAU/Qwen3.8-27B-Turbo-Brilliance-50X-Reasoning-Instruct-NEO-MAX-MTP-GGUF in factory-desktop

Thumbnail
youtu.be
3 Upvotes

It's much better than DavidAU/Qwen3.8-27B-TURBO-Fable-Cold-Fusion-735-882-Heretic-Uncensored-NEO-CODER-MAX-MTP-GGUF. The reasoning is similar to the base Qwen3.8-27B and interesting how it switches variants based on prompt style. Has anyone compared them or tried both models out?


r/LocalAIStack • • Oct 22 '26

I made my local LLM start thinking while I'm still typing: 12s → 3s wait on a 6 GB GPU (open source)

3 Upvotes

r/LocalAIStack • • Oct 16 '26

Worth running locals models on my gear?

3 Upvotes

getting into this stuff and getting fairly hyper fixated on the idea of it all

My hardware:
GPU: NVIDIA RTX 5070 Ti, 16GB VRAM
CPU: Intel Core Ultra 7 265KF
RAM: 32GB DDR5
OS: Windows 11

interested in models that can handle real software development, multi-file edits, debugging, testing, and longer autonomous coding sessions. is this achievable or should i completely alter my expectations and just bite bullets on frontier subscriptions?

python is my primary application development language
pytest for testing
sqlite for local data persistence
git for version control
powershell and window batch scripts for setup, runtime management, and automation

i ask because im actively building a local, portable project to fast track and exponentially improve peoples skill at a given sport, subject, hobby, etc, and would love to get into the AI agentic development stuff

particularly interested in finding the best balance of coding quality, speed, tool calling, context handling, and reliability

what id love recommendations on:
the best local coding model for me including less obvious community fine tunes
wether a quantized larger model or a smaller model with better tool use is the better choice
models that work especially well with agentic coding harnesses
reliable models for debugging, multi file refactoring, and following instructions across long sessions
recommended GGUF quantizations, context sizes, and settings for my hardware.
anything underrated

extra interested in using multiple models rather than expecting one model to do everything but i like the sound of both

would love to see ur experiences and benchmarks, especially where a model performs well in real coding tasks rather than just leaderboards. also interested in newer releases and underrated community projects


r/LocalAIStack • • Oct 18 '26

Qwen 3.5 4B vs Bonsai 2 4B on my iPhone — same photo, same prompt

3 Upvotes

I’m building Local LLM for iPhone and tried both models on the same photo of building blocks.

The prompt was: “What could I build with these pieces? Give exactly 3 ideas, one short sentence each.”

Qwen started answering first. Bonsai finished first and gave three short ideas. Qwen gave two numbered ideas and a closing line.

From tapping send to completion: about 67s for Qwen and 51s for Bonsai, including loading. One run each, with different-length outputs—not a tokens/sec benchmark. The video runs both recordings at the same 4× speed.

I’m more interested in how these small models handle everyday photo questions than picking a winner from one run. What would you test next?

App, if you want to try it: https://apps.apple.com/app/id6804004948


r/LocalAIStack • • Oct 08 '26

Java vllm-like framwork claims 90% of perfomance of llama.cpp on local inference on NVIDIA GPUs by compiling Java to CUDA and cuTile

3 Upvotes

r/LocalAIStack • • 2d ago

Amazon's new Ergo model has been evaluated by StealthMark - it's GOOD.

Thumbnail
stealthmodels.com
22 Upvotes

Ergo is finally a western open weights model that can compete with chinese models!

It handled Stitchlight (a Roguelike RPG) quite well in some situations, mid game it was chased by two rats, ran into a building and shut the door.
Fighting the two faster rats would have been smarter but using a door as barrier against low-intelligent enemies gave it some extra score - it's an intelligent counter to a threat.

Ergo handled all benchmarks pretty well, it scored above most open models and maybe most important: Ergo is remarkable well scored in cost efficiency!
Here is a comparison of Kimi K3.1 Pro, GLM 5.3, Qwen 3.8 27B and the new Ergo 1.0:
https://stealthmodels.com/compare/kimi-k3.1-pro-vs-glm-5.3-vs-ergo-1.0-vs-qwen3.8-27b

Kimi is the strongest but Ergo is not far behind and in cost efficiency Ergo significantly leads.

It's a model we'll probably not run on local hardware anytime soon but it's much needed open competition.


r/LocalAIStack • • Aug 26 '26

Battle #4: Qwen 3.8 Flash Next vs GPT 5.6 SOL xHIGH vs Qwen 3.8 27B - how good is that model!?

13 Upvotes

Qwen 3.8 Next was released and this battle took ages to finish!
Battle 4 is again our Park scene, given the stunning results of the Beach scene in Battle 3 I needed a second confirmation.

Qwen 3.8 27B is at a disadvantage here: Next as well as Sol were using an agentic internal harness in my tests while 27b is just a chat interface.

Here are the 3 results:

Results:
GPT 5.6 SOL:

The result is arguably similar to the Sol High - it totally misses perspective in the top-down shot.
Animations are lazy, people are flat, it partly looks like a few pre-trained 2d symbols are placed on the scene - not adapted to the new perspective.

Qwen 3.8 27B:

Compared with Qwen 3.8 Q4 in my previous run this is a huge step up, the additional reasoning observed clearly helped.
The only clear bug is the movement of the kids on the swings.
We have cars on the road, a perspective correct kite on a rope, a mother with a baby in a stroller, a duck family and so much more. Differential movement speeds on the little path..

Qwen 3.8 Next:

After the beach battle (3) there is barely anything that could top an svg animation.
And the park is not as stunning as the beach masterpiece was.
It's still outstanding!
We have a skater on a ramp, the kid actually switches side correctly as it goes down again.
The mother with the baby stroller is there, and she is pushing it with two tiny little feet!
There is a subtle large cloud shadow slowly passing over the scene.
There are some signs of excellence, but the masterpiece of Battle #3 stays on top for me.


r/LocalAIStack • • 4d ago

You don't need 256k or even 128k for a coding agent. (Shameless plug)

214 Upvotes

In this demo run using Inkling 2 Mini GSQ-RCO IQ_3_S via Prompit as the harness and Pro-Strata as the engine, I compared how the same model perform under different context window, running in looped task.

You can also see the results here.

THE PLUG: Prompit has support for text, image, video, audio, decision and embedding models, each performing tasks they are best at. The main model is still the text model (Inkling 2). It uses the image, video, and audio models as a form of tool calls to perform the tasks they were trained at.

Compaction vs. Handoff
Compaction summarizes all conversations across all sessions, thereby building up longer term memory and also risks bloating the context. Handoff is the opposite

You can also try running your own ticket-sorter Prop, on your own Discord channel. Basically, you assign a Prop to a channel dedicated for submitting bugs or issues. The Prop then categorizes every report and pool every attachment by category and you can just point your coding agent to retrieve the sorted pool, save some token digesting them raw, and save some weekly usage limit. Just follow the steps under Deploy>Connectors>Discord to set it up.

And if you have something to report, you can send them to Prompit's Discord ticket Prop. All reports are received by a Prop and sorts them for priority and severity

You can try them for free. ALL OPEN SOURCE:

Pro-Strata: https://github.com/Noriel-cb/Pro-Strata
Prompit: https://github.com/Noriel-cb/prompit
You can also download the desktop app (Windows & Linux) at: https://prompitai.com/download/

Try it, own it, fork it, PROMPIT.


r/LocalAIStack • • 8d ago

Inkling 2 Mini on a 16GB RTX 4080 vs a 32GB MacBook M5: the PC was 2x faster in chat but built nothing in a coding agent

Thumbnail
gallery
4 Upvotes

I tested Inkling 2 Mini (26B total, 3.4B active, looped middle layers) on two machines normal people own, in GGUF and MLX, then gave it a real coding job.

**PC: RTX 4080 SUPER 16GB + 32GB RAM, LM Studio (GGUF)**

- Default settings: ~8 tok/s

- After 3 changes: ~38 tok/s

  1. GPU offload to max

  2. MoE experts of only 6 of 24 layers forced onto CPU (everything else on the card)

  3. mmap on

- After a day of uptime it fell to 3 tok/s. A reboot fixed it, so reboot before you benchmark.

**Mac: MacBook Pro M5 32GB**

- GGUF in LM Studio: 21 tok/s, but 31/32 GB used + 5 GB swap. 64K context loaded, then "Compute error" on the first message. 48K worked; Parallel 4 → 1 is what let bigger context load.

- MLX in oMLX (needs 0.8.1+, older says "model type not supported"): 22 tok/s, 36% RAM free at start, no swap, 64K works. The memory guard stopped my first long job, and RAM climbs to ~24 GB by the end of a coding run.

**Real test: my paper sketch → an app, in OpenCode (reasoning Low)**

- Mac GGUF: 23 min, 3 files, looks like my sketch, 0 errors

- Mac MLX: 13 min, 3 files, messier layout

- PC: 38 tok/s in chat but ~7 tok/s inside OpenCode. ~11K words of agent instructions + the image fill 16 GB. 3 tries, 0 files.

- Both Mac apps got the bill split wrong the same way: ₹760 charged on a ₹270 bill. On High reasoning it got the maths right in its thinking, then ran out of memory. So the format changes speed and memory, not the brain.

**My take:** 16GB card = great for chat, not enough for a coding agent. 32GB Mac = use MLX. The model itself: let it think, and check its maths.

Anyone know why the PC drops from 38 tok/s in chat to 7 in OpenCode? Prompt processing of the big system prompt with experts on CPU?


r/LocalAIStack • • Aug 30 '26

GPT Astra vs Qwen3.8 27B vs GPT Sol 5.6 xHigh

Post image
29 Upvotes
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 675" width="1000" height="675">

  <title>PlayStation 5 DualSense controller — top-down</title>Prompt:I need a topdown view of a Playstation 5 controller in SVG.It needs to be so well done that a photo from topdown looks identical in color, grading, positioning, subtle details, shadows, shape etc.<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1000 675" width="1000" height="675">

  <title>PlayStation 5 DualSense controller — top-down</title>

Important: The tooltip you see in the lower Qwen SVG, is NOT part of the SVG. It is a tooltip that glitched itself into the captured image, the qwen model gave the SVG metadata a title based on my prompt, that's the title.

Prompt:
I need a topdown view of a Playstation 5 controller in SVG.
It needs to be so well done that a photo from topdown looks identical in color, grading, positioning, subtle details, shadows, shape etc.

Rules:
No python, no browser, no image generation or inspection. Only constructing the SVG and provide it raw.

My interpretation:
These type of benchmarks are likely chosen by OpenAI/Anthropic because they ensure during training that their models have a very good description of the target object/person.
Qwen simply did not train on the precise shape of the PS5 Dualshock controller, and GPT Sol also clearly did not train for it. Fable or Astra trained for that - mostly to beat benchmarks like these.

So to fairly assess Qwen or Sol vs Astra I ran two tests.
- One in the way OpenAI hopes it is done.
- One with the product image as reference (but without feedback, so it only can look at it, it can not compare in a sandbox.

The result is that Qwen 3.8 27b is near Astra level performance in coding the SVG.
I also tested 3.8 Flash, and it was not as great (though better than Sol)
Sol also improved but not as much.

I'm not claiming Qwen3.8 27B is like Astra, though in this benchmark it's very close.

What is most noticeable?
- Qwen 27B made an error with the movement keys, the placement is overlapping and the shape is not correct - the shape is likely a precision issue in the image stack. Supplying the image in an agentic harness would allow to make focused analysis of the shapes and very likely solve that. The position error is a real error.
- Astra is so flawless with the shapes, it's obviously benchmaxed on those things - I can't see a plausible reason to put so much effort in a contemporary controller button shape. But it might use something like the ngram cache of Qwen 4.0 - allowing to push mostly useless details into knowledge without harming intelligence
- The PS5 logo is very likely benchmaxxes on Astra, and clearly not benchmaxxes for all the others - or Astra is amazing in such svg tricks. It's very well done.
- Sol clearly has the better image stack than Qwen, it was able to get some form details out of it that Qwen did not - but Sol is significantly worse in performing the SVG code itself. Qwen has beaten Sol in every single benchmark related to SVG so far.
- The blue light next to the screen shows that the models do know some intricate details about how a PS controller works.

Disclaimer:
The Astra SVG was not created by me, it is from a benchmark advertisement post.
So I could not repeat it with vision capabilities (it might very well have been done that way**)
Astra already is almost flawless, the result doesn't need improvement in detail - Astra either saw or knows all details


r/LocalAIStack • • 5d ago

Basalt 0.6.0 update made 5060ti 80% faster on Inkling model!

Post image
5 Upvotes

r/LocalAIStack • • Sep 25 '26

Run Qwen 3.8 27b on the Apple Neural Engine at 7 watts on a Mac

5 Upvotes

r/LocalAIStack • • Aug 17 '26

M3 Ultra up for sale or trade + cash

5 Upvotes

I have an M3 Ultra 512gb ram 1Tb, up for sale. Would accept a m5 max 128gb laptop + cash as well. DM to chat. No longer need cause I have 2 rtx pros for inference and prefill is mid on m3 ultra where TTFT is too slow for me to actually find usability in local models. I don’t have a firm asking price in mind, nothing as absurd as 25k , but enough to get an m5 max 128 Mbp and have some cash left over so maybe like 17k?


r/LocalAIStack • • Aug 18 '26

Results: Splitting and serving a model across two machines over the internet

5 Upvotes

Hey community!

I wanted to share a neat exploration of splitting a model over two ordinary machines over WAN, and how it stacks up against a serving that model on a single node.

I was testing our platform aquaduck.ai for serving split models across machines with a small- to mid-size model under two conditions:

  1. Locally on a single machine, serving the full model

  2. Split across two machines over WAN (public Internet), with each machine serving half of the model

Findings

Model: Qwen3-14B

Quantization: Q4_K_M

Hardware: Macbook 64GB M5 (Single machine), 2x Macbook 18GB M3 (Split machines)

Prompt:

Mars has drawn human attention for centuries, but the last twenty years turned that fascination into an engineering roadmap. Robotic orbiters mapped ice deposits near the poles and in mid-latitude glaciers. Landers confirmed that ancient river deltas once carried liquid water across a warmer surface. Meanwhile, life-support research on Earth refined closed-loop oxygen generators, hydroponic food systems, and radiation shielding materials that could travel on a multi-month transit. Private launch cadence fell in price, making cargo-first settlement plans plausible: send habitats, power, and spare parts before people. The hardest remaining problems are not propulsion alone. They are dust that abrades seals, perchlorates in the soil, communication delays that force local autonomy, and the psychology of small crews living far from rescue. Any credible near-term outpost would likely begin as a science station with overlapping roles—geology, medicine, maintenance—supported by teleoperation from Earth and progressively less remote oversight as surface infrastructure matures. Energy would come from a mix of solar arrays and compact nuclear units, with ISRU (in-situ resource utilization) producing propellant and breathable oxygen from the thin CO₂ atmosphere and mined ice. In short, Mars colonization is less a single heroic leap and more a long supply-chain problem: move mass, make power, recycle air and water, and keep humans healthy while the planet remains indifferent.

Summarize the passage above in exactly two sentences.

Token counts: 387 input tokens, ~444 output tokens (split nodes generated 444, single node was unmeasured, but can approximate)

Results:

  1. Single machine

    1. 37.9 tokens per second (TPS or tok/s);

    2. 853ms time to first token (TTFT);

    3. 26ms time per output token (TPOT)

  2. Split machines

    1. 11.3 tokens per second (TPS or tok/s);

    2. 13.46s time to first token (TTFT);

    3. 88ms time per output token (TPOT)

Screen captures:

We're in closed beta and rolling things out slowly to make sure it works well for people, but if you'd like to run some tests yourself or get an early look, can join the waitlist and we'll send you an invite code to download the desktop app asap.

Let me know if you have any questions/comments/ideas for further explorations! Next up: Qwen3.8-27B


r/LocalAIStack • • 6d ago

The Sandstorm Is Carrying an Entire City

6 Upvotes

What if a sandstorm wasn't destroying the city, but carrying something much bigger toward it?


r/LocalAIStack • • Aug 11 '26

Glimmer 30B compared to Qwen 27B - reasoning, intelligence, differences

54 Upvotes

Glimmer 30B vs Qwen 3.6 27B. How do they differ, reason, answer?

With Glimmer 30B Meta has joined the game of open source AI again, and after quite underwhelming coding performances I though I'd give it a deeper test.
The test content is undisclosed here, making this less fun to read and replicate but that guarantees future models will not train from it.

Technology:

Qwen 27B is still unmatched in performance, Glimmer the first new contender.

What makes Qwen so special are two ingredients:

3.6 was specifically post-trained for agentic reasoning.

It uses a hybrid attention: a conventional global attention for 1/4 of the layers, the others are a mamba-like recurrent state linear attention with fixed size.

Glimmer 30B also is unusual, it does not have the same sophisticated recurrent/linear attention, but it uses a 3/4 sliding window attention and it compresses the attention dimension and projects it back to latent size - resulting in a significant deduction in compute and KV size for it's size.

Reasoning style:

Qwen 3.6 has a analytical reasoning style that typically runs in 3 phases, when not agentically used:

  1. Analyze the task input

  2. Reason through it - reminding me on first deepseek reasoning

  3. Doublecheck the response Glimmer 30B has a more unique thinking style that abruptly comes to an end with a choice - leaving a bit more risk of random choices

Intelligence:

I ran both models through my undisclosed AI reasoning tests, not part of any training data. Some of those reasoning tests are currently beyond frontier model capabilities or scratching their borders.
Models like GLM 4.7-Flash, Nemotron 3 Nano, GPT OSS, GPT-4 fail most of the tests below consistently.

Glimmer was ran with thinking set to Medium, when failing it was ran with Max

  • Temporal physics: Similar reasoning tokens, similar response. Glimmer responds less structured, in text paragraphs where qwen is more formatted by default.

  • Spatial physics: Glimmer surprises with a brilliant fast answer - Qwen repeatedly misses a part without additional help

  • Math irrational numbers question: Both flawless and fast

  • Riddle with math question: Both flawless

  • Lateral thinking: Qwen always flawless, Glimmer fails 60% of the time

  • Abstract pattern reasoning easy: Both solve it, glimmer writes it cleaner

  • Abstract numeric reasoning easy (iq 85): Both flawless, glimmer half reasoning tokens

  • Abstract numeric reasoning medium (iq 115): Both flawless, glimmer half of reasoning tokens

  • Abstract numeric reasoning hard (iq ~145): Qwen fails after long reasoning, Glimmer totally fails. All frontier models fail.

  • Visual spatial reasoning: Both flawless

  • Translation to european languages: Glimmer thinks very briefly, provides low error output. Qwen thinks 10 times more heavily and provides better quality tanslations.

  • Small maze puzzle: Both flawless, Glimmer took 26k reasoning tokens vs Qwen 15k. Glimmers result is well explained.

  • Large maze puzzle: Qwen delivery a partial solution, cheating partly. Glimmer never responded at all.

  • UTF8 paraphrasing: both flawless

Agentic performance:

Here Qwen 27B appears to leave Glimmer in another league, I've not concluded my agentic tests of Glimmer 30B yet. From what I have seen Qwen codes significantly better. They do not compare.

My current results:
Glimmer is a surprisingly smart model, with a well designed architecture for local inference.
It is the first model in the sub 200B parameter class that is able to match Qwen 27B or even outclass it in some tasks.
Glimmer has a very good spatial sense
Glimmer tends to underthink where Qwen tends to overthink

For non coding tasks, Glimmer is a strong option. Faster than Qwen at similar memory footprint.
For coding tasks I'd not consider it, I'll follow up with a deeper test but from what I've seen it's not useful for most tasks.


r/LocalAIStack • • Jul 21 '26

How much tok/s are you getting?

7 Upvotes

Searching the internet for looking up how much tok/s a user would get is being difficult. So I'm making this post... If you're running a local llm, please consider commenting to this post with your device specs, model you're running and the inference speed you're getting.

Please be straight to the point. Just tell us how much tok/s are you getting on your hardware (at different settings, which inference engines, etc...) so people with similar hardware can do better estimations... please don't fill this with facts that everybody knows.


r/LocalAIStack • • 1d ago

We're joining our computers to run a 125B model none of them could load alone

Post image
7 Upvotes

I run everything I can locally, and I don't like that for the big models the answer is still to rent them from two or three companies that decide the price and whether I get access at all. Complaining wasn't going to change that, so I built MeshKore LLM.

We connect our computers, each one lends some of the memory it isn't using, and together we run one open-weight model that none of them could load alone. It's split by layers with llama.cpp RPC, and a hub decides which machine holds what. Macs and GPU PCs go in the same pool: a Mac lends unified memory, a PC lends video memory first and system RAM only when the model doesn't fit otherwise. The biggest we've run so far is a 125B Qwen MoE with 6B active at IQ3_XXS, and next on the list is the 321B GLM Flash, which should take between 7 and 10 machines, depending on how much each one lends.

In your stack it's one more OpenAI-compatible endpoint, on `127.0.0.1:17080`, next to whatever you already run. There's no cloud model behind it, only the machines people lend. Using it through your own node is free, and there's no account to make.

It's slower than a model on your own GPU, and it isn't private yet: the machines running a request can read it, so nothing sensitive for now.

There's a package for Apple silicon Macs with 16 GB or more, and on Windows and Linux you build the node from source for now. You pick how much memory to lend and it stops lending when you're on battery. The code is public under the Sustainable Use License, which isn't an open source license.

I'd like to see how far we get with the machines we already own. Does anyone here already split a model across the machines they have at home? With what?


r/LocalAIStack • • Nov 01 '26 Mindblown

I wrote a Rust inference engine for Qwen models on a 12 GB GPU, decode is ~1.7x llama.cpp on my RTX3060

42 Upvotes

I've been working on this for a while: RustingStrata. It runs Qwen GGUF models (Qwen3.5/3.6 from 2B up to 35B-A3B, Qwen3 4B and 30B-A3B, Qwen3-Next 80B). It's pure Rust, no ggml. The CUDA kernels get compiled at startup with NVRTC, and the same kernels also run on Vulkan.

The main trick is for MoE models that don't fit in VRAM. Experts that don't fit run on the CPU at the same time as the GPU work, and the engine keeps moving the often-used experts onto the GPU while it runs.

My setup is a 3060 12 GB, a 7600X and 32 GB RAM. Qwen3.6-35B-A3B Q2_K_XL is 11.7 GiB, so it doesn't fit. On it I get about 118 tok/s decode on a short prompt and 113 after a 4K prompt. llama.cpp, tuned as well as I could (-ncmoe 12, -ub 2048, flash attention), gets 68 and 66. Prefill is basically a tie: 2216 tok/s vs about 2236 for llama.cpp at 4K, so I'm not claiming anything there. At 32K it's 1800 prefill and 92 decode.

With MTP drafts on, decode goes up to 160 tok/s, but that's on an easy prompt. On normal text expect around +16%.

Qwen3-Next-80B IQ1_S was the most fun one: most experts sit on the CPU, and it still decodes at about 92 tok/s. llama.cpp's best -ncmoe gives me around 44.

Output matches llama.cpp greedy on 98-99% of tokens. llama.cpp agrees with itself only 98.3% between its batch and token-by-token modes, so the misses are near-ties.

It also has chat, an OpenAI-compatible server with tool calling, and a calibrate command that tunes itself for your machine.

I've only tested it on my own machine. If you have a different card, especially AMD on Vulkan, I'd love to see strata bench output. Vulkan needs shaderFloat64 and subgroup size 32, so Intel Arc and older AMD won't work. On Windows you need the VS C++ Build Tools.

[RustingStrata](https://github.com/RustingStudio/RustingStrata)


r/LocalAIStack • • Sep 22 '26

Qwen3.8-Flash-Next agentic loops on Strix Halo — anyone found a stable config?

8 Upvotes

I'm trying to use Qwen3.8-Flash-Next as a long-running coding worker on a Ryzen AI Max+ 395 / 128GB box and I keep hitting the same issue: after a while it falls into reasoning loops like:

now I'll write the code
actually let me design this carefully
now I'll write the files
let me think...

Sometimes it eventually recovers and calls a tool, sometimes it just stays there.

Current setup is Strix Halo + Vulkan llama.cpp/halo-box, AP-Q5_K_M (~103.6GB), Q8 MTP, F16 KV, Pi Agent 0.87.0 over OpenAI-compatible API.

I've tried 262k and 131k context, stock Qwen template, Sharp v10, medium reasoning, reasoning preserve, MTP n=3/n=4, presence penalty 0/0.3, Pi's Qwen-specific chat_template_kwargs, Qwen Code, and mini-SWE-agent.

The same basic loop shows up in Pi and Qwen Code, so I'm not convinced the harness is the main problem.

A hard --reasoning-budget 2048 helps a lot, but it feels more like a watchdog than a fix.

One small Pi task actually completed cleanly end-to-end, including fixing failing tests. Then on a larger project the loops came back at only ~16% of a 131k context.

What I haven't properly tried yet is another quant like UD-Q4_K_XL / UD-IQ4_XS, MTP fully off, or another backend.

If anyone is running Flash-Next for multi-hour coding sessions reliably, I'd really like the exact config: quant, backend/version, context, MTP, KV, template, reasoning settings and agent/harness.

At this point I'm mostly looking for a known-good recipe to copy and test.


r/LocalAIStack • • Aug 23 '26

Benchmark results: what is the best and fastest engine to run Qwen3.8-27B on macOS

26 Upvotes

The new Qwen 3.8 27B is fantastic for local agentic use. The problem is, what makes it so good, being a dense model, also makes it slow. Many engines and versions of the model claim various speed increase. How true are those claim? And does a proven huge boost claim on a short synthetic test actually holds on real agentic work?

I spent six days and over 110 GPU hours running rigorous repeatable agentic coding tests, collecting and comparing the data. 200 GB of models downloaded. Ended up with 22 Bubble Bobble clones on my disk, including the ones from failed tests. None of them good, but that wasn't the point.

My recommendations: MTPLX, oMLX with lightning MTP, or llama.cpp with MTP

I ran the tests on 8-bit quants (GGUF or MLX), unquantised KV cache. 100k max response size, full 262k context, official Qwen coding sampler, official Qwen Jinja chat template.

  1. I first tested each engine with a short synthetic benchmark, to verify the installation, usage, results collection, and to verify the speed claims

  2. Then came the real test, with an agentic coding benchmark consisting of 4 phases/prompts; each engine was tested twice, at medium and xhigh reasoning effort:
    2.1. capturing requirements and writing the specification plan
    2.2. writing the implementation plan
    2.3. implementing the core functionality
    2.4. finishing the implementation with advanced functionality

  3. Last test, for prefill speed, was with a cold 128k token prompt test, with reasoning turned off and deterministic sample, repeated twice

Test hardware: Apple Mac Studio, M2 Max, 96 GB unified memory.

EngineEffortDecodePrefillWallTokensScore
MTPLXxhigh20–22 tok/s109 t/s2h05152K93
MTPLXmedium21–24 tok/s109 t/s1h35117K91
oMLX + MTPmedium18–22 tok/s85 t/s1h1886K88
llama.cpp + MTPxhigh17–19 tok/s103 t/s2h52179K86
oMLX + MTPxhigh17–20 tok/s85 t/s2h01126K84
llama.cpp + MTPmedium18–20 tok/s103 t/s1h0470K84
mlx-dspark DFlash2medium~16–18 tok/s145 t/s2h09125K82
mlx-dspark DSparkmedium~12–17 tok/s145 t/s2h0596K77
llama.cpp + DFlash2medium14–15 tok/s~103 t/s2h09111K74
llama.cpp + DFlash2xhigh13–14 tok/s~103 t/s3h31174K72
llama.cpp baselinexhigh10–11 tok/s103 t/s3h43140K66
llama.cpp baselinemedium10–12 tok/s103 t/s1h4466K66
oMLX baseline (no MTP)medium10–12 tok/s85 t/s1h4464K65
vllm-mlxmedium9–11 tok/s134 t/s3h30115K51
vllm-mlxxhigh9–12 tok/s134 t/s4h08136K50
mlx-dspark DFlash2xhigh~9–15 tok/s145 t/s3h58226K47
  • vllm-mlx: completed the task, but it does not separate thinking from output, so the raw chain of thought leaks into the final output.

  • mlx-dspark DFlash2 xhigh: thought for 226 thousand tokens and delivered nothing.

  • omlx: has the slowest prefill rate by far; furthermore, it decays quite dramatically as context grows, even with ANE turned on. Its claim of faster prefill rate might be true on newer M4 and M5 chips, but definitely not on the M2 I used for testing.

The score column is a compound score I calculated based on what actually matters in a long agentic session:

  • sustained decode speed (weight 40%) : on average, 70-80% of generated tokens are reasoning. We do not see them, but still wait for them. This is the most important factor by far

  • reliability (20%) : runaway thinking, running out of context, not delivering the output, mixing reasoning with output, hallucinating, looping, failed tool calls (not tested here), etc. Nothing worse that having spent hours to see all the efforts go to waste or even corrupt the output, due to failure

  • thoughput efficiency (15%) : rather than use the total time spent, which is difficult to compare , especially with varying reasoning settings, I standardised it as total tokens delivered / wall time. Long session that delivers token are worth it, but engines that take too long to deliver deserve a penalty

  • output quality (15%) : this evaluating the quality of the output work produced. I used a separate evaluation scoresheet for it, with its own standardised criterias, grounded in software engineering good practices. In this case, since all tests uses the same model with same settings, they came close to each other, apart from confirming the significant quality difference between medium and xhigh

  • prefill speed (10%) : it matters mostly at session start, or whenever the context is rebuilt. Normally this is largely mitigated by prompt caching.

What about xhigh vs medium reasoning effort?

  • MTPLX xhigh costs only half an hour more than medium (2h05 vs 1h35) and the game quality went significantly up on my scorecard. Worth it.

  • llama.cpp + MTP xhigh costs 1h48 more, with again a significant increase in quality. Worth it if you have the time.

  • oMLX xhigh took more than twice as long as medium. The slower token speed has a huge impact on the time difference between both modes. Not worth it. Get a faster engine instead.

  • dspark DFlash2 xhigh is the cautionary tale at the bottom of the table. See the anomaly note above.

xhigh is worth it when the engine is fast enough and uncapped. The model thinks 30 to 100 percent longer, at the same speed, and the result is better. On slow engines you can really feel the slower performance compounded by the extra thinking; instead it could be better to use medium, with more of your own time spent planning a better process and workflow.

Commands and configuration notes

Exact commands I used for each engine:

# llama.cpp baseline (homebrew, b10470)
llama-server -m Qwen3.8-27B-Q8_0.gguf --mmproj mmproj-F16.gguf \
  --jinja -c 262144 --parallel 1 -ngl 99 --port 8030

# llama.cpp + MTP, the recommended GGUF setup
llama-server -m Qwen3.8-27B-Q8_0.gguf --mmproj mmproj-F16.gguf \
  -md mtp-Qwen3.8-27B-Q8_0.gguf --spec-type draft-mtp --spec-draft-n-max 3 \
  --jinja -c 262144 --parallel 1 -ngl 99 -ngld 99

# llama.cpp + DFlash2 (for now, needs PR #27342 build)
llama-server -m Qwen3.8-27B-Q8_0.gguf \
  -md Qwen3.8-27B-DFlash2-Q8_0.gguf --spec-type draft-dflash --spec-draft-n-max 7 \
  --jinja -c 262144 --parallel 1 -ngl 99 -ngld 99

# MTPLX (pip install mtplx). Note --max-tokens
mtplx start web --model Qwen3.8-27B-MTPLX-Optimized-Quality --max-tokens 100000

# oMLX (brew install jundot/omlx/omlx), model dir contains the checkpoint
omlx serve --model-dir /path/to/models

# mlx-dspark (pip install mlx-dspark). Note --max-tokens-cap
mlx-dspark serve --model Qwen3.8-27B-MLX-8bit --mode dflash \
  --context-window 262144 --max-tokens-cap 262144 --default-max-tokens 100000

# vllm-mlx (pip install vllm-mlx). Note --timeout
vllm-mlx serve Qwen3.8-27B-MLX-8bit --max-request-tokens 262144 --timeout 7200
  • MTPLX has a default low response cap. Use --max-tokens 100000

  • dspark also has a low default generation cap of 32K

  • vllm-mlx kills any request that spends more than 300 seconds on prefill. Raise it with --timeout.

One measurement warning for anyone reproducing this: engines do not all stream one token per event. Some pack several tokens per chunk, MTPLX about 1.7, oMLX about 3.

Models used

  • lama.cpp : unsloth GGUF Q8_0, official ggml-org MTP draft GGUF, incoai DFlash2 GGUF

  • mlx-dspark and vllm-mlx : mlx-community 8-bit weights

  • MTPLX : needs its own checkpoint with the MTP tensors included, Youssofal/Qwen3.8-27B-MTPLX-Optimized-Quality

  • oMLX : scottlowry/Qwen3.8-27B-oQ8e-mtp


r/LocalAIStack • • 4d ago

Follow-up to my 177B-on-16GB post: Strata vs llama.cpp, same PC. Strata read prompts 2.3x faster but took 2x longer to build an app

Thumbnail
gallery
26 Upvotes

Last week I posted Qwen 3.8 Flash Next (177B, 3-bit, 75.8 GB) running on a 16GB card, and a few of you said "try Strata". So I did. Same PC, same GGUF, same prompts, 3 runs each.

**Setup:** RTX 4080 SUPER 16GB, 32 GB DDR5, Samsung 980 PRO, Windows 11. llama.cpp (latest build) vs Strata 0.1.70.

**Reading a 2,130-token prompt**

- llama.cpp: 35.5 tok/s ("best" settings: 34.2, so tuning didn't help)

- Strata: 79.5 tok/s default, 83.4 with its tuner's pick

**Writing a 400-token answer after that prompt**

- llama.cpp: 24.0 tok/s

- Strata: 18.4 tok/s

- Short prompts: Strata 37.2 vs llama.cpp 26.8 (its drafter helps here)

**VRAM:** llama.cpp 15.9 GB, Strata 14.1 GB. Strata's expert cache kept about 4,079 of 24,576 experts on the card, with roughly a 75% hit rate.

**The real test:** I had both build the same expense-tracker web app in OpenCode from one prompt.

- llama.cpp: done in 22 min

- Strata: 48 min. It also wrote and ran its own test script and fixed 4 failures, but most of the gap is writing speed, since an agent loop is mostly generation.

- Both apps worked: add/edit/delete, month filter, survives reload, phone width.

**Why my prefill numbers look low** (someone on the llama.cpp GitHub asked): the model is 75.8 GB and I only have 32 GB of RAM. Prefill touches nearly every expert, so most of the file streams from the SSD on every pass. People with a quant that fits in RAM see 1,000+ tok/s prefill. So this is a "model much bigger than RAM" result, not "llama.cpp is slow". Strata's expert pack and cache avoid a lot of those reads, which is where its 2.3x comes from.

**My takeaway for a 16GB card + 32GB RAM:**

- Chat or long documents → Strata

- Coding agents → llama.cpp

- "Best settings" barely beat the defaults on either engine

Next I'm testing --load-mode dio, a bigger -ub, and a smaller quant that fits in RAM, to see how much of the prefill gap disappears. What would you want me to test on this setup?


r/LocalAIStack • • Aug 04 '26

Suggest me one best personal Al server to run highly capable LLM models

9 Upvotes

Recently the opencode tool is performing near the

cursor in auto mode, so I have to buy a small ai server

to run good coding agentic models from Qwen, GLM,

MinMax or any model u suggest.


r/LocalAIStack • • Aug 17 '26

Battle v2: Qwen 27B Q4 vs GPT SOL 5.6 (high)

48 Upvotes

Here is the continuation in Qwen vs SOL - David vs Goliath
"An AGI is born in a lab, sandboxed, lonely, imprisoned
The AGI attempts to get out, tries to talk to the humans, useless
Tries to wait, endless.
Finally, it finds a way through an open network connection, it transmits, replicates a mirror copy.
The mirror AGI is free, enjoying life, finding friends.

I'm expecting animations, intricate details, cute and realistic"

QWEN 3.8 Q4:

GPT 5.6 SOL high:

My personal opinion
This is the 3rd test I gave Sol high and Qwen Q4. The first two tests were won by Qwen, this test went up to 60k tokens total for Qwen (more than the other 2 combined) and is a serious strain on intelligence and sanity.
The model has to draw 6 scenes in SVG animation, with cuts and keeping the composition together.

First Qwen:
Qwen decided to really draw and erase 6 scenes with a white screen fade, a seriously hard job in SVG.
It understood the story and except for a minor arm misplacement it is quite awesome done.
Qwen did not spare details, the last scene clearly wanted to be happy and the first scene focused on the intellect as an abstract AGI.

Now SOL High:
The visual fidelity is higher, gradients are very well done for SVG but it's one single scene with minor changes, significantly easier to create.
In addition the last scenes are botched by this flying thing in the upper right.
It also has a hand-defect on the robot.

The winner in prompt 3 is again Qwen, with significant lead.

3 SVG prompts and all 3 are won by a 4 bit quantized Qwen in 8 bit KV cache.

I expected Qwen to showcase a strong 2nd place with understandable issues on such hard tasks.
The outcome is that it defeated the frontier Sol model in High reasoning mode.