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.


r/LocalAIStack • • 2d ago

My 96gb vram homelab

Post image
51 Upvotes

Hardware:

Dell 5820, Xeon w-2235, 128gb ram.

2 internal AMD v620 32gb flashed with w6800 firmware and fans added. One is in 16x pcie slot 1 and one is in 16x slot 3.

1 external AMD w6800 32gb in connected via occulink to 8x pcie slot 5.

1tb nvme, 14tb sata, 16gb sata

Performance: With an 80b model spread across the internal 64gb vram I get 50tk/s. I tried the full 96gb and it gave me like 7tk/s.


r/LocalAIStack • • 10d ago

Qwen3.8-27B vs Inkling 2 Mini vs GPT-6 Luna - Benchmarks

Thumbnail
stealthmodels.com
100 Upvotes

The new Inkling 2 Mini model is maybe unfair treated, especially when comparing it with Qwen3.8 27B
It has been fully evaluated in StealthMark, and it came back quite strong!

The new Inkling 2 model is very reasoning efficient, something Qwen3.8 is doing not well in (Though Qwen4 is improving here).
The above benchmarks compare Luna 6, Qwen3.8 27B and Inkling 2 Mini, Inkling sits comfortable in between those two in intelligence.

Why unfair ?
Because Qwen and Luna both are full precision models in this benchmark and Inkling 2 is natively a FP4/MXFP8 model.
Inkling 2 Mini was trained in quantized format - it's much smaller than a FP Qwen and for sure smaller than Luna 6.

It is a good model, and in some benchmarks it showed true skills.
It's not a "Qwen Killer" - but it is capable enough to do serious work and small enough to run on a good laptop.


r/LocalAIStack • • Sep 02 '26

Comparing local vector search engines: turbovec vs. Infino vs. FAISS

12 Upvotes

FAISS is Meta’s vector library, turboVec is a Rust implementation of TurboQuant, and Infino is an in-memory retrieval engine.

We benchmarked them on 4-bit quantized in-memory vector search: FAISS PQ, TurboVec/TurboQuant, and Infino SQ4, using the same 100K OpenAI embedding corpus and the fastest vectorized implementation we found for each.

All saved ~7x in memory footprint compared to full fp32 vectors. The interesting result was that while storage and recall were fairly close, latency differed by roughly 30× — about 1.5 ms to 45 ms. Most of that comes down to the scoring machinery: the size of the distance table and whether the scan needs one at all.

We also ran the same comparison out to 1M vectors and measured build/write costs.

Full results and methodology:
https://infino.ai/blog/fixed-grid-quantization/

Disclosure: I'm one of the devs building Infino.


r/LocalAIStack • • 4d ago

Uncensored Multi-Model Releases Made With the Latest Version of Heretic, Scarlett Opus With MTPs, Qwen3.8-27B With MTPs, Gemma-4-31B-it and Two Models Finetuned for Improved Japanese to English Translations, All Available in GGUF Format!

Thumbnail
huggingface.co
13 Upvotes

gemma-4-31B-it-uncensored-heretic-v2:

Safetensors: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-v2

GGUFs: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-v2-GGUF

Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved:

Safetensors: https://huggingface.co/llmfan46/Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved

GGUFs: https://huggingface.co/llmfan46/Scarlett-Opus-Uncensored-Heretic-Native-MTP-Preserved-GGUF

Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2:

Safetensors: https://huggingface.co/llmfan46/Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2

GGUFs: https://huggingface.co/llmfan46/Qwen3.8-27B-Uncensored-Heretic-Native-MTP-Preserved-v2-GGUF

gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator:

Safetensors: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator

GGUFs: https://huggingface.co/llmfan46/gemma-4-31B-it-uncensored-heretic-Japanese-to-English-Translator-GGUF

Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator:

Safetensors: https://huggingface.co/llmfan46/Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator

GGUFs: https://huggingface.co/llmfan46/Qwen3.8-27B-Ultra-Uncensored-Heretic-Japanese-to-English-Translator-GGUF

————————

That's it for now!

As usual you can find all my models here: HuggingFace-LLMFan46

Tremendous amount of work went into making these releases come true, especially since I was aiming to make the most uncensored models while at the same time preserving the original models capabilities, while preventing issues like looping and closed thinking degradation (particulary hard thing to do for the Qwen3.8-27B models), not to mention the months of work involved in putting together the dataset needed to train the models for improved Japanese to English translations, on top of all the training time involved.

So if you like my work and find my models useful, then I would really appreciate if you could support me on Ko-fi: https://ko-fi.com/llmfan46


r/LocalAIStack • • Oct 30 '26

How is Strata, Qwen3.8 Flash-Next on a AMD gpu?

14 Upvotes

I’m a student who recently got into AI, mainly to learn how it all works.

My current setup is Open WebUI in Docker with local models through Ollama, on an RX 6950 XT with 16 GB VRAM and 64 GB DDR5. I’ve run gpt-oss 20B, Qwen3.8 27B at Q4_K_M, and Qwen3.5 9B. They taught me a lot, but on my hardware they’re slow for agentic deep research, and the smaller ones aren’t capable enough.

But I recently learned about how Strata can run Qwen 3.8 flash next on my type of set up and as I already have a quantized Qwen 3.8 model I’m wondering if it can have a better token per second than the Q4_K_M as it gets around 4 tok/sec.

So has anyone had any experience running it especially on a 6000 series AMD Gpu and is it worth the storage space?


r/LocalAIStack • • Oct 03 '26

Qwen3.8-Flash-Next NVFP4 at 256K context with Strata — 4,100+ prefill and up to 125 tok/s decode

17 Upvotes

I tested two Qwen3.8-Flash-Next NVFP4 checkpoints at a full 256K context using an experimental dual-GPU Strata configuration.

Hardware:

• RTX 4090 D 48 GB as the primary GPU
• RTX 5070 Ti 16 GB as a helper GPU
• Intel Core Ultra 7 265KF
• 128 GB RAM
• Linux
• NVMe storage

The RTX 4090 D handled the dense layers, KV cache, prefill, output head and MTP. The RTX 5070 Ti stored and computed 4,500 additional routed experts.

Common settings:

• Context limit: 262,144 tokens
• Fresh prompt: approximately 256,018 tokens
• Generated output: 512 tokens
• KV cache: INT8
• Prefill path: W4A8
• Speculative decoding: MTP K4
• Minimum draft probability: 0.5
• No prompt-prefix reuse
• Strata engine 0.1.35 with an experimental dual-GPU NVFP4 fork

Results

ModelPrompt lengthPrefillDecodeDraft acceptance
NVIDIA NVFP4, MTP K4256,018 tokens4,112.65 tok/s125.17 tok/s94.87%
Abliterated NVFP4, MTP K4256,017 tokens4,071.39 tok/s92.05 tok/s69.7%

Observations

• Both models achieved slightly over 4,000 prefill tokens per second at approximately 256K context.
• Prefill performance was nearly identical: the Abliterated checkpoint was only about 1% slower.
• The original NVIDIA checkpoint was considerably faster during decode: 125.17 versus 92.05 tok/s.
• NVIDIA’s decode advantage was about 36% in this test.
• NVIDIA accepted 407 of 429 offered draft tokens, while the Abliterated model accepted 322 of 462.
• The NVIDIA model produced approximately 4.88 output tokens per verification round.
• The Abliterated model produced approximately 2.68 output tokens per round.
• The lower MTP acceptance appears to be the main reason why the Abliterated checkpoint had slower decode despite nearly identical prefill performance.

These were single-run capacity tests. The long prompt was constructed by repeating code-review material to reach approximately 256K tokens, so it had unusually favorable locality. This particularly benefited NVIDIA’s suffix prediction and MTP acceptance. Therefore, 125 tok/s should be treated as a best-case synthetic 256K result, not typical real-world coding speed.

During longer real coding-agent workloads, NVIDIA generally produced around 108–144 tok/s, while the Abliterated checkpoint was commonly around 105–145 tok/s, depending heavily on the generated content and MTP acceptance.


r/LocalAIStack • • 8d ago

Lossless compression for Nvme streamed MoE models (WEX/WNR4)

19 Upvotes

Streaming 100B+ Mixture-of-Experts models on a single consumer GPU shouldn't mean fighting checkpoint formats built for something else.

WEX4 + WNR4 Codecs are lossless, 4 KiB-aligned NVMe expert containers with 32-lane warp-parallel GPU codecs (like ZIP for 4-bit weights, zero quantization in act):

• 12–22% smaller than raw safetensors/INT4 — beats other compressions zstd-19 & brotli-11 (up to 2× savings on MXFP4) • 347.2 GB/s CUDA kernel decode & 0.027 ms (27 µs) 1-record latency on RTX 5090 (0 register spills) • 70.3–72.0 GB/s end-to-end PCIe 5.0 x16 async2 — saturating the wire • Zero-trust SHA-256 hash tree, 139 conformance vectors, 14 CI jobs across 4 OS/arches, and independent C/CUDA, Python, Go & Rust readers!

Open-source! (Apache-2.0): https://github.com/KairaCode/Wex-WRN2


r/LocalAIStack • • Aug 02 '26

Sanity check on a dual-R9700 local AI build

Thumbnail
gallery
21 Upvotes

I’m putting together my first dedicated local AI workstation and would appreciate input from anyone with similar hardware.

My work is moving further into local LLMs and agents, so I want to learn more about agent harnesses, experiment with open-weight models, and keep sensitive data local when possible.

I already bought the Micro Center Threadripper 9960X bundle with the ASUS Pro WS TRX50-SAGE WIFI A and 128GB ECC memory, along with a Phanteks Evolv X2 case. I also have one 2TB Gen5 NVMe drive.

Current plan:

  • 2× Sapphire Radeon AI PRO R9700 32GB

  • Seasonic PRIME TX-1600 ATX 3.1

  • SilverStone XE360-TR5 V2

  • 7× Noctua NF-A12x25 G2 fans: three bottom intake, three radiator exhaust, and one rear exhaust

I am mainly looking for confirmation or firsthand experience with the following:

  • Is the TX-1600 the right PSU for this configuration?

  • Is replacing the SilverStone radiator fans with Noctua G2s a reasonable choice?

  • Does dual R9700 make sense as a starting point, or is CUDA support enough reason to reconsider NVIDIA?

  • Is 128GB of system memory sufficient, and how would you expand storage beyond the single 2TB drive?

  • For Linux, I am leaning toward Ubuntu. Are there other distributions worth considering?

  • Would you start with llama.cpp/Ollama or vLLM for language models, with ComfyUI for image workflows?


r/LocalAIStack • • Sep 30 '26

We are entering an era in which AI models are starting to shape device specifications.

Post image
182 Upvotes

AI models are beginning to define device specifications, rather than device specifications merely determining which applications you can run.

Apple shows just how far its devices can go with on-device AI, without relying on the cloud
We’re moving from models with up to 14 billion active parameters on iPhone/iPad, to 35 billion on MacBook Air, 70 billion on Mac mini, 120 billion on MacBook Pro, and up to 480 billion on Mac Studio.
By clustering multiple Mac Studios together, Apple says it can run models exceeding 1,600 billion active parameters.
A demo that shows just how crucial unified memory and its bandwidth have become for running massive AI models locally.


r/LocalAIStack • • Sep 20 '26

Built a hub that pools RAM across Windows/Mac/Android over LAN to run models too big for any one device

Thumbnail
youtu.be
23 Upvotes

Been lurking and posting here on and off while building this. Quick recap for anyone new: RAMDeck is a small hub + node agent setup that shards a model's layers across whatever devices you already own (old laptop, Mac, GPU box, even an Android phone) and runs inference across them, but handling primary-node selection, GPU-first allocation, dynamic context sizing, and knowledge-base sharding on top of it.

We've mostly posted raw, unscripted demo footage here — real load times, real tok/s, real failures — because that's the kind of proof this sub actually cares about. Today we finally made something different: an actual ad, first time showing the finished feature set start to finish instead of a live test.

The engine behind it is still fully public if you want to actually look at how it works instead of taking the video's word for it:

github.com/trademav/ramdeck-core-public

Source-available, Apache 2.0 with a Commons Clause — free to run, modify, and inspect on your own hardware, the only restriction is you can't resell it as a competing hosted service.

Crowdfunding campaign is coming soon for the hub hardware itself, but the code was public before we ever asked anyone for money, and that's not changing.

Happy to get into the mechanics, the layer-distribution approach, or anything else in the comments — this crowd usually asks the right questions.


r/LocalAIStack • • Aug 17 '26

Battle: I gave Qwen 3.8 27B in Q4 with Q8 KV cache the SAME task as GPT 5.6 SOL on HIGH.

166 Upvotes

SVG generation is a complex benchmarks, it requires spatial understanding, coding and composition skills.
I gave Qwen 3.8 27B in Q4 quantization and Q8 KV cache the SAME task as GPT 5.6 SOL on HIGH - the results are very surprising to me.

A animated SVG prompt and followed the answer up with a request to refine it (for both)
The 2nd prompt helps to offset elaborate system prompts frontier use to push benchmarks.
None of these are cherry picked! First result counts.

QWEN:

GPT SOL:

QWEN:

GPT SOL:

3rd animation is most complex and follows in separate post in r/LocalAIStack , reddit didn't allow to add more than 5 videos.

generic prompt enhancer: "A lot looks WAY too simplified, unrealistic, strange movements, far too crude to be acceptable"

My personal findings
GPT Sol high is generally writing about 2x more code than Qwen does naturally (at Q4 quant) - the refinement prompt is again significantly increasing that. For a 1:1 code length comparison I'd have to remove the 2nd prompt from SOL - but the first result is rather gruesome. SOL is naturally more verbose, more detailed.

The first prompt shows that Qwen nailed the drone view, SOL failed with perspective.
Qwen included a dog on a leash, a fountain and all movements make sense.
SOL included more details but they are frequently not correct in how they move, ignoring obstacles.
The amount of objects for SOL is higher, but QWEN has significantly better content and wins easily.

In the second prompt Qwen has the cat apparently play ball with the boy, the little girl builds a sand castle. SOL nailed the sun reflection but has a flying kid, and the sand castle is being built by a flying shovel.
Despite the details of SOL and its better water, QWEN draws intricate details in better quality and correctness.
The point goes to Qwen again, a bit closer than in first attempt.

The heavily quantized Qwen beats SOL in 2/3 so far.
The last prompt is a bit more elaborate and follows as 2nd post.

I'm baffled.
The 3rd test posted separately is hugely more complex and the results are crazy..


r/LocalAIStack • • Jul 28 '26

Ollama vs llama.cpp vs vLLM vs LM Studio: which one should you actually use?

88 Upvotes

These four get compared constantly, but they are very unique in when they should be used.

Pick one in 20 seconds:

You want to...Pick
Download a model and just start chattingLM Studio (llama.cpp wrapper)
Build an app using local models without involving yourself with the model detailsOllama (llama.cpp wrapper)
Optimize performance, run on experimental hardware, run as backend agentic serverllama.cpp (from the maker of GGUF)
Serve one model to many users at best performancevLLM (from UC Berkeley)

LM Studio

LM Studio is what I would give to someone who wants to try local models for the first time.

You search Hugging Face from inside the app, choose a model, download it and start chatting. It shows model sizes, quantizations, memory estimates and GPU settings without forcing you to understand most of it.

It also has more under the surface than people assume:

  • OpenAI and Anthropic-compatible APIs

  • Local document chat and RAG

  • Tool calling and structured output

  • MCP support

  • Embeddings

  • A command-line tool

  • Headless server mode

  • MLX on Apple Silicon

So it is not only a chat window. You can use it as the backend for your own programs too.

The downside is that it adds another layer between you and the engine (llama.cpp) and restricts you from unleashing the full potential of it and its latest features.

That is fine until you want to know exactly why a model is slow, how memory is being split or which runtime option changed the result. Most people will never care. Some people will care a lot.

Best for: trying models, comparing quantizations, chatting with documents and learning how local AI works.

Ollama

Ollama is the boring, sensible choice for building things.

Install it, run a model and you already have a local API:

ollama run qwen3

It handles downloading, storing, loading and unloading models. Your code can talk to it through Ollama’s own API or through familiar OpenAI-compatible endpoints.

It supports tools, embeddings, vision, structured output and Anthropic-compatible requests too.

This makes it easy to connect local models to:

  • Small apps

  • Coding tools

  • Agents

  • Home automation

  • Open WebUI

  • Scripts and bots

The downside is that the abstraction sometimes works too well.

You type a model name and it runs, but you may not know exactly which model file, template or runtime setting is active. When performance changes, finding the reason can take some digging. Just like with LM Studio, you give up some features and control but it's closer to llama.cpp.

Ollama runs on macOS, Windows and Linux. Installation is straightforward on all three.

Best for: developers who want local models without turning model management into a second side project.

llama.cpp

llama.cpp is where you go when you care about the machine.

It gives you direct control over things such as:

  • CPU threads

  • GPU offloading

  • Quantization

  • Context size

  • KV cache

  • Flash Attention

  • Batch sizes

  • Multiple GPUs

  • Speculative decoding and draft chaining

It is especially useful when a model does not fit completely inside your GPU. You can put some layers on the GPU and leave the rest in normal RAM and optimize that for best performance.

It also supports far more hardware combinations than most local AI software. There are builds for CPU, CUDA, Vulkan, ROCm, Metal, OpenVINO and several other backends. Prebuilt packages are available and updates are released almost every day.

llama.cpp also has a proper server now. It supports parallel users, continuous batching, OpenAI-compatible endpoints, embeddings, reranking, multimodal input, monitoring and constrained JSON output. It also has model loading and unloading support and installing from Huggingface.

So yes, it can behave like Ollama or LM Studio and might make both projects much less valuable soon.

The reason to choose it is still control.

The downside is also control. It presents many settings, and poor settings can make a good model run very badly.

Best for: CPU inference, limited VRAM, AMD or unusual hardware, benchmarking and people who enjoy tuning things. My agentic guide for local coding uses llama.cpp directly.

vLLM

vLLM is the odd one out here.

It is not aimed at someone chatting alone on a laptop. It is aimed at servers where many requests arrive at the same time, and it's doing a very good job there.

Its main tricks are continuous batching, prefix caching and efficient management of the model’s KV cache through PagedAttention. These help keep the GPU busy while several users are generating text. llama.cpp does all of those things more or less, but for server usage vLLM is currently going to beat llama.cpp in most categories.

This means vLLM may not look special in a test with one user.

Try eight, sixteen or fifty users and the reason it exists becomes a much better choice.

It also has the things you would expect from serious serving software:

  • OpenAI-compatible APIs

  • Multi-GPU support

  • Distributed serving

  • Production metrics

  • Multiple LoRA adapters

  • Structured output

  • Tool calling

  • Prefix caching

  • High request concurrency

The price is setup and complexity, interdependencies.

vLLM is happiest on a Linux GPU server. It does not support Windows natively, although WSL and community alternatives exist.

Best for: shared APIs, teams, production services and expensive GPUs that should not sit idle.

Which one is fastest?

This question causes more bad comparisons than useful answers.

Using the same model name does not mean you are running the same model.

Two downloads can have different:

  • Quantizations

  • Prompt templates

  • Context sizes

  • KV cache formats

  • GPU offload settings

  • Runtime versions

LM Studio, Ollama and llama.cpp can all end up using closely related llama.cpp-based inference paths. With the exact same GGUF file and matched settings, their single-user performance is going to be very similar. llama.cpp opens up a lot of performance options to take the lead here.

vLLM is different. Its advantage grows as more requests arrive together. Though it traditionally is also beating llama.cpp performance with many models.

My actual recommendation

Use LM Studio when you want to explore models or showcase LLM to a newcomer.

Use Ollama when you want to build something quick and like the eco system.

Use llama.cpp when you want to control how it runs and squeeze out the best performance

Use vLLM for distributing a model professionally


r/LocalAIStack • • Sep 27 '26

What's your stack look like and how can I improve mine

Post image
36 Upvotes

I have a fully local AI stack on a 4090: image, video, music, SFX, TTS with voice cloning, local LLM chat, fine-tuning, and long-term memory, all behind a Three.js dashboard with locally generated assets. There's a little assistant, BB-7, that you just talk to, and he can generate anything with prompt improvement built in. Services load on demand and swap the GPU as needed, except when a pipeline keeps them warm, like voice mode with BB-7. I've also integrated Kev and Obsidian, and an MCP that lets Claude use the stack and store context. I feel like I got most bases covered but I dont know what i dont know. What do you all got


r/LocalAIStack • • 13d ago

Qwen 3.8 Flash Next 177B runs on a 16GB GPU + 32GB RAM: built a full website from one prompt (10/10), real numbers inside

Thumbnail
gallery
435 Upvotes

I wanted to see if Qwen 3.8 Flash Next 177B could run on normal gaming hardware. Setup: RTX 4080 SUPER 16 GB, 32 GB DDR5, Windows 11. Model: ISTA-DASLab IQ3_XXS quant (75.8 GB), plain llama.cpp + OpenCode, fully offline.

It works because it's MoE: only 10 of 512 experts are active per token, so llama.cpp keeps the hot layers on the GPU and streams the cold experts from the SSD (mmap).

Speed:

  • --cpu-moe: 11.2 tok/s

  • -ncmoe 42: 15.2 tok/s (+36%), 13.2 GB VRAM

  • Over a 2.5-hour coding run: 18.2 tok/s average, 22.6 best. RAM 31.4/31.6 GB the whole time, 0 crashes.

Quality: from ONE prompt it built a complete website (SVG animation, sticky nav, 3D tilt cards, counters, form validation, no libraries) and scored 10/10 on my checklist.

The funny part: when I asked it to "check its own work", it broke one animation and then said "nothing broken" twice. It reads the code but never sees the page.

Honestly, this model is impressive for something running on a home PC. Has anyone tried it with 64 GB RAM? I'd love to know how much faster it gets.


r/LocalAIStack • • 6d ago

3 months in building local ai

Post image
87 Upvotes

Apologies in advance, as many of you seem very advanced, but I wanted to share a project I am working on. For some background, I’m not a developer by any means. I am a data architect by trade who knows some Python and SQL.

What has always appealed to me is taking 20 years of personal and work data—emails, photos, texts, and RSS feeds—and building a database that integrates with a local AI model. It might sound like an unusual goal, but I want a local model that can reflect my approach and perspective based on my own history. For example, if I ask it to design a data model, it can draw from models I’ve built in the past. If I hit a tricky query, it can reference previous SQL problems I have solved. It also doubles as a personal memory bank, letting me quickly look up past flights, hotels, or favorite restaurants in a given city.

Thats’s the core of the project: a private AI that knows my life because it can search my records, not because it was trained on them. Everything runs locally at home on my mini PC and NAS nothing touches the cloud”and I access it from my iPhone, iPad, and laptop over Tailscale. I would appreciate any thoughts or ideas. For the most part, this is up and running and working for me. I still have a lot more to go . But the database side of it is done and I’ve embedded everything.


r/LocalAIStack • • 3d ago

Ling 3.2 Air Maya-L on one 24 GB GPU and a 64 GB RAM budget: 95.7 tok/s at 250k context

2 Upvotes

​

I’ve been working on HyperLing, an MIT-licensed fork of Project Maya that runs Ling 3.2 Air’s Maya-L IQ3_S quant on one NVIDIA GPU. The 59.2 GB model uses a mix of VRAM and host RAM. The v0.2.0 profile ran the full 262,144-token window within a 54 GiB engine memory cap.

Here’s the earlier CLI comparison from v0.1.0. Each cell is one run, in decode tokens/s.

| Context | v0.1.0 decode (tok/s) | v0.2.0 decode (tok/s) | v0.1.0 TTFT (s) | v0.2.0 TTFT (s) |

|---|---:|---:|---:|---:|

| 40k | 110.4 | 117.5 | 16.2 | 15.1 |

| 80k | 103.7 | 112.8 | 25.6 | 21.3 |

| 140k | 90.8 | 110.1 | 46.9 | 36.5 |

| 150k | 89.9 | 105.5 | 11.1 | 8.6 |

| 200k | 85.2 | 96.8 | 67.7 | 50.4 |

| 250k | 87.4 | 95.7 | 79.4 | 57.6 |

Both comparisons used one RTX 3090 Ti 24 GB at 350 W, a Ryzen 9 5900X, 128 GB DDR4-3200 and a 54 GiB engine cap to represent a 64 GB RAM budget. The gpu-unlock kernel module was loaded for both HyperLing and the Maya baseline. This is the only hardware I tested. gpu-unlock

v0.2.0 adds a faster prefill kernel, shares attention data between restore points and raises the minimum lookup match to 10 tokens in the recommended profile. Lookup drafting uses exact rejection sampling. Greedy output was bit-identical across the tested lookup settings.

Run this on Linux with an NVIDIA driver and CUDA toolkit 12.4+ to build the engine, download the quant and start the server.

git clone https://github.com/neyisyavuz-afk/hyperling

cd hyperling

./hyperling.sh

If you try it on another 24 GB card, I’d be interested in your decode rate and TTFT at 140k or 250k. HyperLing


r/LocalAIStack • • 22d ago

I built AarForge: a Linux CLI wizard that turns conversational JSONL into a fine-tuned, quantized Ollama model on 6GB+ VRAM

0 Upvotes

I got tired of dependency conflicts, manual llama.cpp conversion steps, and writing boilerplate Modelfile s every time I wanted to fine-tune a small model locally on my laptop GPU.

So I built AarForge — an opinionated, local-first fine-tuning and deployment pipeline for Linux (linux-only) that takes an OpenAI-style conversational .jsonl file and outputs a ready-to-run Ollama model

Github https://github.com/AaritDev/AarForge

How the pipeline works:

  1. Isolated Setup (install.sh): Uses Astral uv to spin up a dedicated Python 3.13 venv with pinned, compatible versions of Unsloth, PyTorch, Transformers, and TRL (so it won't break your system Python or hit version mismatches).

  2. Strict Dataset Validation: Before loading any weights, it validates every line of your dataset, checks token counts against your max_seq_length so nothing gets silently truncated, and verifies assistant-only loss masking (labels != -100).

  3. 4-bit QLoRA Training: Fine-tunes lightweight LoRA adapters via Unsloth + BitsAndBytes (tested on 6GB+ NVIDIA GPUs; defaults to (unsloth/Qwen2.5-3B-Instruct-bnb-4bit.

  4. GGUF Export & Safe Ollama Deployment: Merges and quantizes to Q4_K_M GGUF, separates mmproj vision sidecars if present, generates the Modelfile, and deploys using a staging/backup swap so an import error never overwrites an existing working Ollama model.

Quick Start

git clone https://github.com/AaritDev/AarForge.git

cd AarForge

chmod +x install.sh && ./install.sh

Navigate to your chosen workspace, then:

./build.sh

and your done! after putting in your dataset and setting up the training parameters you will get a finished model in under 30 minutes (check the README on my github repo for more details on the requirements and exact usage)


r/LocalAIStack • • Sep 07 '26

Local AI is Minecraft for adults: my 4× RTX PRO 6000 Blackwell build

Thumbnail gallery
3 Upvotes

r/LocalAIStack • • Oct 18 '26

My local AI plays Zork for 72 minutes (until my PC gave up)

2 Upvotes

Watch her play

Luna is a local AI assistant I've been building. Here she plays Zork I on her own for 72 minutes, narrating as she goes, until my PC froze. Everything is local: Qwen3.5 9B (Q4_K_M) on llama.cpp, Kokoro for her voice, faster-whisper for listening, on an RX 6950 XT.

What made the biggest difference for a 9B:

- **One move per turn, enforced.** Asked nicely, she'd chain 3 or 4 blind commands. Now extra commands in a turn are turned back, so she has to read what each move did before choosing the next.

- **Her own notes.** She writes down rooms, items and what failed with a note tool, and sees them at the start of every turn. Older notes about the room she's standing in come back too.

- **A guide.** Infocom's original map, transcribed to text, shown for her current room each turn. Solutions are kept out unless allowed.

She's far from perfect: she spent the last half hour trying to open the trap door with a sack of hot peppers, in the wrong room. But she reads the screen, reasons about it and actually explores, which the first version didn't.

Open source: https://github.com/fswolf/luna-local-agent

Happy to answer questions about the setup.


r/LocalAIStack • • 21d ago

I built a gateway that routes each LLM request to local, free or paid models, and refuses private prompts instead of leaking them. Looking for people to break it.

Thumbnail
reddit.com
1 Upvotes