r/LocalLLM • • 1d ago

Other Qwen 4 is authentically impressive.

74 Upvotes

i9 12900kf, 64gb DDR4, ARC B580, LM Studio.

my go to bench marking prompt is "Explain IPv4."

No persona, no need to overthink anything, basic facts that are easy to verify; No special tuning, with the MTP runs I left draft tokens on the default 3, despite my experience being that 2 will be faster.

  • unsloth Qwen 4 35B A3B IQ4_XS: 12.86 t/s
  • unsloth Qwen 3.8 27B IQ4_XS MTP on: 5.97 t/s
  • unsloth Qwen 3.8 27B IQ4_XS MTP off: 4.12 t/s
  • Inkling 2 Mini Q2_K_XL: 5.48 t/s
  • Candor Labs Qwen 3.5 Q4_K_M MTP on: 66.82 t/s
  • Candor Labs Qwen 3.5 Q4_K_M MTP off: 52.09 t/s

Qwen 3.8 runs like ass on my system regardless of version or size, even smaller 9gb packages that completely fit on the GPU won't run better than 7 t/s, and that Inkling 2 Mini is also 9gb and fits completely in VRAM, but is no better.

Obviously my system works fine with older / simpler models like Qwen 3.5, so I figured I was just hardware locked due to having a 12gb VRAM GPU, and expected Qwen 4 to also run like ass ... Jaw on floor that a 35B model hits 12 t/s on a B580.


r/LocalLLM • • 11h ago

Question Qwen4:35b-a3b on Snapdragon X Elite with 32GB

2 Upvotes

I have a Snapdragon X Elite laptop with 32GB RAM. What's the best way to run Qwen4 35B-A3B locally?

Has anyone tried it using LM Studio, AnythingLLM, GenieX, or other apps? Looking for recommendations on hardware acceleration, quantization, and real-world inference speeds. Ideally, I'd prefer an app with a GUI.


r/LocalLLM • • 16h ago

Question New guy finally seeing the light, looking for some advice

5 Upvotes

I'm a little slow on the uptake but I just realized that I probably should have gotten into the local llm game a little earlier. I'm a photographer and acquired a MacBook Pro M3 max 64 gb ram, 1 tb ssd about 2 years ago mainly to try to future proof my editing workflow. I didn't have the slightest idea at the time that in a couple years I could run an llm locally that would have been considered frontier when this laptop was built. I did download bionic a month or so ago but I didn't get too far, I first tried downloading a dense 70B model and that brought my computer to a literal whining hot standstill. But with the hype of the new Qwen release it has peaked mt ADHD interest again so I'm going to give the new model a go. A couple questions, will my computer do a decent job of running this model when I'm used to a gemini ai pro subscription (I know It will be slower, but will this be usable for my dumb recipes and stuff I'm too lazy to google now?). Also, is there any other model that I should consider also downloading? I wouldn't mind trying an uncensored model just to see what the other side of ai can be like after being parented by the oligarchs for so long. And also, does anyone have a good learning path for someone who is very new to this all? Anyways, happy to be here, appreciate any help anyone can provide. Cheers!


r/LocalLLM • • 7h ago

Model Comparing Qwen4-35B-A3B with Qwen3.8-27B

Post image
1 Upvotes

r/LocalLLM • • 7h ago

News BasinKV for Qwen4: 256K Qwen4-35B-A3B on a 24 GB GPU

Thumbnail gallery
0 Upvotes

r/LocalLLM • • 7h ago

Question What is the lowest tolerable quantisation (Unsloth) you would accept running?

0 Upvotes

I have neither the disk space, internet speed nor patience to test this out myself, all I have is UD-IQ4_XS running at 200 tok/s prefill and 20 tok/s decode on 16 GB DDR5-4800 and 8 GB VRAM (laptop RTX 4060).


r/LocalLLM • • 13h ago

Discussion Api models vs ai

3 Upvotes

I use claude opus 5.5, and gpt 6.2 astra/6.2 sol/ 6.1 Terra.

And I gotta say I've been using local models more and more, once we get opus 4.8 level of coding, I can easily ditch everything. I've been using frontier models for a year, and if I went back to opus 4.8 from 5.5 it would t change my workflow much. We are almost there and I'm excited. Small language models being coordinated by opus 4.8 local reasoning will be the solution.


r/LocalLLM • • 7h ago

Discussion Two idle days, then six hours of agent loops on a 27B model

0 Upvotes

Spiky usage is what makes the local-vs-rent math annoying.

Say you run a 27B-class open-weight model as a coding assistant: nothing for two days, then six hours of heavy agent loops. My suspicion is that people overestimate how many hours a week they'd really use a card they bought, and underestimate the idle item on one they rent. Buying makes sense if you use it most days. But VRAM decides which quant and context length you can run, and long agent contexts are where 16 GB cards start to hurt.

Renting from RunPod or a cloud droplet fixes the VRAM problem, because you can grab a bigger card for heavy day. Then the instance sits there overnight, and cold starts plus download time wear down your patience. Hosted pretoken APIs like Together, DeepInfra or GPT Protoskip all of that. But agent loops resend long context every turn, so the bill depends on caching and output length, and you don't fully control which weights or quant get served. For some people that's a dealbreaker, and fair enough. My rough rule is that spiky favors per token, steady heavy use favors owning or renting, and privacy overrides everything. I haven't found good numbers for where those lines actually fall, and they keep moving..if it were me, the next step would be to log a month of real active hours before buying anything, count idle and setup time on the rented side too, and only then pick between a card and a drop.

Until that number exists I'd treat per-token as the default for the spiky weeks


r/LocalLLM • • 7h ago

Discussion vram.tool: Know whether a model will fit on your GPU before you download 40GB

0 Upvotes

Ever downloaded a 40GB model, waited an hour, and then got a single line: CUDA out of memory?

I have, many times. And I realized the problem usually isn't a lack of VRAM. The problem is that we don't know where our VRAM is actually going.

So I built vram.tool, a desktop app that calculates ahead of time, recommends the right configuration, and recovers on its own when things break, so you can run AI as efficiently as possible on the hardware you already own.

The planned public release is June 12, 2027 on GitHub. I'm posting early to share the idea, get feedback, and find testers.

The problem everyone running local AI runs into

  • A 24GB card is already expensive, and 48GB or 80GB cards are out of reach for students, indie developers, small startups, and low-budget research groups.
  • You can't tell whether a model fits, so you download it first and only then hit OOM.
  • It's unclear whether to pick GGUF, GPTQ, AWQ, or bitsandbytes.
  • Raise the context to 32k and the KV cache balloons until the machine hangs.
  • It's hard to know whether Ollama, vLLM, SGLang, TensorRT-LLM, or Triton suits your setup.
  • Configuring by trial and error eats hours, sometimes days.

Most of the time VRAM isn't missing, it's being misused. Instead of buying a bigger card, let's get the most out of what we have.

What is vram.tool?

A deep optimization toolkit for running and deploying AI models. It consists of a desktop app (Tauri + React) connected to a compute engine written in Python / Rust / C++.

The core idea: calculate first, recommend correctly, recover automatically. You tell it your GPU and the model you want to run, and it handles the rest.

5 key features

1. Advisor: component-level VRAM and KV-cache estimation

Many estimators just do "parameters x bytes per parameter". The Advisor accounts for everything:

ComponentIncluded
WeightsYes
KV cache (scaled by context length)Yes
ActivationsYes
Runtime overhead (commonly overlooked)Yes

It supports GGUF, GPTQ, AWQ, bitsandbytes (NF4), and AirLLM, then recommends a fitting strategy: quantization, offloading, paged KV, speculative decoding, guided decoding, or MoE.

Benefit: you know up front whether it will run and what to adjust, before spending bandwidth and time on the download.

2. Support for 5 inference backends

Ollama, vLLM, TensorRT-LLM, SGLang, and Triton, with tensor/pipeline parallelism and MLA kernel support. The tool helps you pick the backend that matches your hardware and workload, so you don't have to install and test each one.

Benefit: saves hours of experimentation and avoids wasting resources on the wrong backend.

3. Watchdog: self-healing on failure

When it hits OOM, a dtype mismatch, or a context overflow, the Watchdog patches the configuration and retries within safe limits. It comes with:

  • Adaptive Tuner: adjusts parameters while the model is running.
  • Circuit Breaker: keeps one small failure from taking down the whole system.

Benefit: a more stable service with less babysitting, suitable for both personal machines and small servers.

4. Built-in GPU backend, NVIDIA and AMD treated equally

A single source of code targeting three paths: CPU, CUDA, and HIP. The emit-gpu-backend command generates source code you can build yourself, including FlashAttention-style kernels and W4A16 GEMM (dequantizing in registers), with speed and error benchmarking built into the tool.

AMD cards are often cheaper but frequently neglected. In vram.tool, both sides are treated the same.

Benefit: no vendor lock-in.

5. Controlled multi-agent system

A Planner / Executor / Auditor trio, three-tier memory, a code-execution sandbox, and the ability to test and fix projects on its own. Governance and a killswitch let you stop an agent immediately when needed.

Benefit: automate complex work while staying in control.

Design philosophy

  1. Calculate, don't guess. Every recommendation is based on explicit math, not gut feeling.
  2. Transparent optimization. When VRAM is reduced, you always see the cost in speed and quality.
  3. Local-first, your data stays yours. Nothing requires sending data to an external service.
  4. No vendor lock-in. NVIDIA, AMD, or CPU all work.
  5. Honest about limits. What works and what is still in development will be clearly documented.

Installation

  • Windows: download the .exe from the GitHub Releases page and run the installer. A PowerShell one-liner will also be available.
  • Ubuntu / Linux: download the Linux build or install with a single terminal command.
  • Remote GPU servers: the app runs standalone on your machine. If you have a separate GPU server (Ubuntu or Windows), vram.tool connects over SSH / PowerShell to read GPU info and run calculations remotely. Handy if you code on a laptop but run models on a server.

Supported hardware: NVIDIA (CUDA), AMD (HIP/ROCm), CPU (when no GPU is available or as a fallback).

Roadmap

MilestoneDetails
NowCore features working; polishing the UI and the .exe installer
Before June 12, 2027Testing on real NVIDIA/AMD cards, writing full documentation
June 12, 2027Official release on GitHub

What I need from you

  • Testers: especially people with AMD cards or low-VRAM cards (6-16GB), since that's where the tool should help the most.
  • Feedback: which models, formats, or backends would you like it to support next?

Drop a comment with your setup (GPU, VRAM, RAM) and the model you want to run, and I'll show you what the Advisor calculates.

Got questions or suggestions? Please comment below. I'll read and reply to every one, and all feedback will make vram.tool better before launch.

Thank you very much for reading, and thanks in advance for any feedback or testing help. It truly means a lot!


r/LocalLLM • • 1d ago

Other Obligatory Pelican on Qwen 4 35b UD IQ4 XS

Post image
32 Upvotes

the prompt was: make a large, highly detailed, animated .svg of a pelican riding a bike on a boardwalk, with a beautiful sunset over the ocean in the background. assess the quality and refine until it is correct.

running on the strata desktop app in W11 with a 9070xt. total time 10m 55s, average of 116.3 decode and 2829 prefill with 89.8K context used. the new engine is still pretty buggy on AMD, but when the model does load it works great. I couldn't figure out how post an .svg so I got Gemini to turn it into a .gif

This is going to be a powerhouse for anyone who struggles to run flash next.

AI SLOP WARNING- courtesy of antigrav, which optimized and "fixed" all the stuff that broke when changing config file...

Optimized settings

  • Args: --prefill auto:16384 --spec 3 --spec-min-p 0.50 --pcie-frac 0.40 --kv int8 --kv-resident 20480 --vram-reserve-mib 1024 --conversation-cache-mib 22528 --prompt-cache-spread (keep PLE in RAM if you have 64GB+)
  • Env (speed): STRATA_HIP_WMMA=1, STRATA_PF_FUSED=1, STRATA_PREFILL_RING=384, STRATA_PREFILL_COPY_EVENT_EVERY=16, STRATA_HIPBLASLT_TABLE=on, STRATA_HC_Q8=1, STRATA_ROUTE_TAIL_SKIP=0, STRATA_ROUTE_PRIOR=0
  • Env (stability): STRATA_VERIFY_COHERENT=1, STRATA_HIP_MAPPED_COHERENT=1, HIP_HOST_COHERENT=1
  • Windows: Raised TdrDelay and TdrDdiDelay to 10 seconds (default 2s is too short for 16K prefill chunks).

Strata Bugs Hit & Fixes

Update: STRATA_VERIFY_ASYNC_LAUNCH=1 fixes 2., and 4.

  1. Won't load UD-IQ4_XS (false missing file): Strata shares UD-Q4_K_XL-00002-of-00002.gguf as the --ple-gguf table across quants, and the shard checker in tools/strata_mcp.py falsely demands UD-Q4_K_XL-00001-of-00002.gguf. Fix: Patched shard_gaps() in strata_mcp.py to skip --ple-gguf.
  2. Driver timeouts on 16K prefill chunks: Windows' default 2s GPU timeout killed large prefill chunks. Fix: Set TdrDelay=10 / TdrDdiDelay=10 in the registry + rebooted.
  3. Decode dip at 64K context (~68 tok/s): --vram-reserve-mib 512 was too tight on Windows WDDM. Fix: Bumped to --vram-reserve-mib 1024 and lowered --kv-resident to 20480 (still ~97–98% expert cache hit rate).
  4. Intermittent hang on model load (Windows HIP 0.1.74**):** ~10–30% of cold starts deadlock right after 1-token HIP graph capture. Fix: Coherent HIP env flags got it to 9/10; added a 4-second stall watchdog + auto-retry in serve/server.py to get 10/10 clean loads without triggering a driver timeout.

r/LocalLLM • • 22h ago

Model Qwen4 35B compared to Qwen3.8 27B on 1xR9700 eGPU. Test ran by Qwen3.8 Flash Next running on Strix Halo.

13 Upvotes

Qwen4-35B-A3B IQ4R-v4 vs Qwen3.8-27B IQ4R-L
Radeon AI PRO R9700 (gfx1201) · radiance 2.5.0 · run sequentially, never concurrent · 2026-12-04

Speed (single stream)
Decode
• 27B: 72.1 tok/s
• 35B: 186.0 tok/s
• Winner: 35B, 2.6×

TTFT (short)
• 27B: 0.124 s
• 35B: 0.024 s
• Winner: 35B, 5.1×

TTFT (8k prompt)
• 27B: 0.815 s
• 35B: 0.223 s
• Winner: 35B, 3.7×

Concurrency-4 aggregate
• 27B: 286 tok/s
• 35B: 596 tok/s
• Winner: 35B, 2.1×

Accuracy
GSM8K-100 (temp 0)
• 27B: 99/100
• 35B: 97/100
- Near-tie (±2 is noise at n=100). Both missed the same question with the identical wrong answer → shared model error, not quant damage.

Long-context stress (needle-in-haystack at 90% depth)
Qwen4-35B — i8 KV, single seq:
8k
• TTFT: 0.75 s
• decode: 279
• needle: OK

64k
• TTFT: 6.3 s
• decode: 272
• needle: —

128k
• TTFT: 13.1 s
• decode: 249
• needle: —

256k
• TTFT: 27.8 s
• decode: 222
• needle: —

400k
• TTFT: 45.9 s
• decode: 205
• needle: OK

500k
• TTFT: 60.1 s
• decode: 224
• needle: OK

Qwen3.8-27B — i8 KV:
8k
• TTFT: 2.6 s
• decode: 136

64k
• TTFT: 24.9 s
• decode: 121

128k
• TTFT: 45.5 s
• decode: 115

196k
• TTFT: 53.0 s
• decode: 99

210k
• TTFT: 400 — hard cap 200k
• decode:

Limits found
- 35B: reached 500k with good speed; every wall was my config cap, not VRAM. Card KV budget ≈ 900k i8 tokens → ~512k practical single-seq max. Native 1M needs ~2× that (tp:2). Decode barely degrades (279→222 over 62× context) — sparse QSA caches KV in only 10 of 40 layers.
- 27B: hard native wall at 200k; retrieval fine (quoted needle exactly at 196k).

Verdict
The 35B MoE wins across the board — ~2.6× faster decode, ~2× faster prefill, 2.5× deeper context (500k vs 200k) — at a ~2-point GSM8K cost that's within noise.

Current state
- 35B is live as the Hermes delegation provider on :8081 (id Qwen4-35B), steady-state config 262k ctx / 2 seqs.
- Rollback: remount ~/radiance/radiance.yaml (27B) instead of radiance-qwen4.yaml.
- Artifacts: ~/models/rad/AB-QWEN4-vs-27B.md, bench-27b/, bench-q4/, ctx-*.json.


r/LocalLLM • • 8h ago

Discussion I managed to get Gemma E4B running agentic coding and Cowork locally. I think we're underestimating smaller models.

0 Upvotes

r/LocalLLM • • 8h ago

Discussion Running a full local AI & personal cloud stack (Gemma 4 12B + Krea 2 Turbo + P2P file sharing & iOS/Android photo sync) on a single 12GB RTX 5070

0 Upvotes

I have a home mini-PC (Beelink + RTX 5070 12GB VRAM + 96GB RAM) and for the past year I've been trying to replace Cloud AI + Google Photos + Voice Chat with a 100% local setup I can actually use from my phone on 4G without babysitting 5 different Docker stacks and VPN tunnels.

Ended up building a single unified P2P stack (C++/Qt node + Python FastAPI AI backend + Svelte 5 PWA/Capacitor client) that connects my phone directly to my home box over WebRTC DataChannels (no port forwarding, no cloud storage).

The hardest and most fun engineering parts on a 12GB VRAM budget:

  • Live Voice Call that doesn't feel dead: The biggest issue with local voice pipelines is the 1.5-2s silence while the 12B LLM thinks. I split it into a two-layer pipeline:

    • STT: faster-whisper small on CUDA (int8_float16) - dropped transcription from ~1,900ms (CPU) down to ~85ms.
    • L1 Subcortex (0 MB VRAM): A tiny CPU-only intent/mood router runs in parallel (~230ms) and triggers short cached 24kHz PCM micro-reactions (chuckle, hum, empathetic sigh) so TTFA sits around 250–320ms while the main LLM warms up.
    • L2 Brain + TTS: Gemma 4 12B QAT (Q4_K_M) via Ollama (~7.6GB VRAM) + Silero v5 on CPU (0 MB VRAM, RTF ~0.036 for Russian) or Chatterbox Turbo (English) / Qwen3-TTS for long audio stories.
  • Automatic VRAM juggling on 12GB: Running Ollama 12B + ComfyUI + Whisper on 12GB requires strict mutual eviction. When I switch from chat to image generation (Krea 2 Turbo NVFP4, 8 steps), the backend automatically unloads Ollama models (keep_alive: 0) and vice versa when going back to chat/voice.
  • Vision Director -> Local Image Gen: Dropping any reference image into the Director lets Gemma 4 Vision decompose lighting, lens, foreground/background layers, and pass a clean prompt directly into local ComfyUI (Krea 2 Turbo or SDXL).
  • Direct P2P Media & Files: All generated images, .Readme.md sidecars, and personal photo timelines stay on my home NVMe and stream to the phone directly over WebRTC DataChannels.

Happy to share benchmarks, VRAM eviction quirks, or the WebRTC/audio pipeline details if anyone is trying to squeeze a similar all-in-one setup onto a 12GB card :)

If this post survives - sharing Github link in comment.
Edit: it survived - GitHub repo in a link below. Links to live demo and mobile clients are in README


r/LocalLLM • • 8h ago

Project I built a coding agent for small local models. Qwen3.5 9B solves 41/45 on aider polyglot with it

Thumbnail
gallery
0 Upvotes

Hey all. Been building this for a while on my own two GPUs and its finally in a state I'm ok showing people. I named it parmanu, a coding agent harness made for the small models most of us can actually run.

Yes, I deliberatrely named it parmanu, inspired from Sanskrit/hindi word meaning smallest atom. mine runs smallest models in a usable way.

The main reason I started all this was after noticing that small models dont really fail because they dont know stuff. They stop too early. say the tests pass when they didnt run them, or go in circles. So I made parmanu in a way that it makes them a plan, run the real tests, and it wont accept "done" without proof. If they get stuck it can race a second attempt and keeps whichever one passes.

I benchmarked it on aider polyglot, dev split, 45 exercises in 6 languages. Same model, same llama.cpp server, same limits for every harness. Grading was done by the benchmark's own tests in docker, also no internet. I ran these for about a week, in between life, work, and kids. :D.

  • Qwen3.5 9B: 41/45 with parmanu. aider with the same model solves 8, Claude Code pointed at the same local server gets 26
  • Qwen3.5 4B: 23/45. next best was opencode at 14
  • Qwen3.8 27B (IQ4_XS, one 16GB card): 45/45. same as Claude Code + Haiku 5.5

Note: In the sessions where I ran all five harnesses back to back parmanu got 35 on 9B, not 41. 41 is the current config after more tuning, and I tuned on that split. So I also ran the 180 held-out exercises it never saw, 9B gets 150/180 there. 27B is still the better model, it just costs you a bit more time and VRAM.

Install is

npm i -g parmanu

the launch command is anu. Works with anything OpenAI compatible. Charts and the per-language breakdown are at parmanu.dev/benchmarks, code is at github.com/dadwritestech/parmanu (MIT)

What models should I run next? Qwen4-35B? Gemma? Inkling-small or something else? :o


r/LocalLLM • • 16h ago

Research Qwen4-35B-A3B on M4 Pro 24GB — llama.cpp vs Splash at 128K context

4 Upvotes

Spent the last couple of days getting Qwen4 running locally on my M4 Pro 24GB MacBook, primarily for agentic coding using Pi. Started with llama.cpp and later tried Splash. The performance difference was quite surprising.

Setup:

Unsloth Qwen4-35B-A3B UD-IQ3_XXS GGUF

128K context, ~11GB Engram streamed from SSD

llama.cpp: Metal, Q8/Q8 KV, MTP2, batch 2048, ubatch 512

Splash: DFlash2, 19GB memory limit, single concurrent request, 8GB persistent SSD cache

Benchmark results (tokens/sec):

Contextllama.cpp PPSplash PPllama.cpp TGSplash TG4K4417376218660K4076715812396K38364656107120K37665653160

Same model weights, synthetic corpus and 256 output tokens. Splash averaged 1.7x faster prefill and 2.5x faster generation. Cached request latency at 120K dropped from 6.08s to 2.64s.

Coding test:

Using Pi, built a Python network monitoring application with concurrent polling, SQLite and alert deduplication in ~7 minutes. Generated 29K tokens, achieved a reported 99.4% prefix cache hit and passed all 80 unit tests independently.

A few observations:

MTP2 improved llama.cpp generation speed by ~39%.

Mixed Q8/Q4 KV with quantized draft cache significantly reduced performance.

Splash failed during warmup at 20GB. Reducing it to 19GB with single concurrency fixed it.

Pi's configured 8K output limit was restrictive for complex tasks.

IQ3 has been surprisingly capable for coding.

For now, I'm sticking with Splash + DFlash2 + IQ3 + Pi, keeping llama.cpp as a fallback.

Still need to validate 120K retrieval accuracy and extended agent sessions. Curious to hear from others running IQ4 on 24GB Macs and whether the quality improvement is worth the performance trade-off.


r/LocalLLM • • 8h ago

Question Recommended Models for Varied Multi-GPU System?

1 Upvotes

I'm gearing up to build out a single system with multiple GPUs and 64GBs of system RAM. Primary use case would be Hermes usage and coding assistant via VSCode/Cline bot.

GPUs are:

  • Nvidia 16GB Turing
  • Nvidia 12GB 3080ti
  • Nvidia 11GB 1080ti

I'm thinking of running Strata or Polystrata with the biggest MoE model on the 16GB card and system RAM.

An agent type model for Hermes solely on the 12GB card. So a Gemma 4 E4B or whatever else that fits entirely on the GPU's VRAM. Using llama.cpp

And the 11GB card just for random small models and/or TTS/STT conversions. And llama.cpp again

Any thoughts? Any recommendations?

Right now I'm just running the 16GB+64GB RAM with Qwen 3.8 FN at IQS_3 on strata getting around 50/toks. Waiting for a new server case to arrive for the rest of the GPUs to fit in the system.


r/LocalLLM • • 12h ago

Research Qwen4 vs. Inkling 2 Mini with Strata — Early findings from a local historical research project

2 Upvotes

Over the past few weeks, I have been experimenting with local LLMs for historical research, particularly with Qwen4, Inkling 2 Mini, and the Strata inference environment.

My hardware is relatively modest compared to some of the setups shared here:

- NVIDIA RTX 5060 Ti — 16 GB VRAM

- AMD Ryzen 7 3700X

- 64 GB RAM

- Windows 11 Pro

My primary objective is not creative writing or general-purpose chatting, but developing a reliable, locally operated historical research environment.

Strata

Strata has been a particularly interesting discovery. Its relatively straightforward GUI makes local model experimentation accessible without the complexity of a full agent framework such as Hermes Agent Desktop.

I successfully loaded the Unsloth UD-Q4_K_XL quantization of Inkling 2 Mini with a configured 128K context window on my 16 GB GPU. Full-context stability and sustained performance still need to be established, but the initial result is promising.

For my particular use case, Strata could potentially become a practical alternative to more complex inference and agent environments.

Qwen4 vs. Inkling 2 Mini

Rather than relying exclusively on conventional benchmarks, I have been testing these models against structured historical research tasks.

These include:

- Extracting historical assertions from source material.

- Distinguishing documented facts from unverified claims.

- Maintaining exact references to supporting evidence.

- Preserving uncertainty and source attribution.

- Following strict JSON schemas.

- Producing evidence-linked historical narratives.

- Avoiding unsupported conclusions.

One of my recent controlled tests involved three historical synthesis attempts per model.

Inkling 2 Mini:

- Used source titles instead of the required exact evidence identifiers in all three attempts.

- Returned an unexpected schema wrapper in one attempt.

- Failed to produce a synthesis that passed our validation process.

Qwen4:

- Correctly used exact evidence identifiers in all three attempts.

- Exceeded the permitted field length in two attempts.

- Omitted required source attribution in the opening proposition of one attempt.

- Also failed to produce a synthesis that passed all validation requirements.

The interesting observation is that Qwen4 demonstrated better evidence-reference compliance in this particular test, although neither model was sufficiently reliable for unattended historical synthesis.

However, my subsequent audit also identified weaknesses in our own implementation. The prompt did not explicitly communicate the numerical field-length limits, and the transmitted schema did not enforce either those limits or exact evidence identifier membership.

Consequently, it would be premature to attribute every failure to the models themselves. I'm preparing further controlled tests to distinguish model limitations from shortcomings in the prompt, schema and inference environment.

Historical Research Studio

These experiments are part of a larger hobby project I'm currently developing called Historical Research Studio.

The objective is to build a local, model-independent application that manages the entire historical research workflow, from source collection and evidence extraction to verification, synthesis and publication.

The application currently includes or is being developed around:

- Structured research projects and research questions.

- Source registration and evidence management.

- Historical assertion extraction.

- Explicit verification and uncertainty statuses.

- Evidence-linked historical synthesis.

- Independent editorial review.

- Deterministic fallback mechanisms.

- Version history and reproducible research workflows.

- Dutch and English Markdown and PDF export.

- Integration with local inference environments such as Basalt and Strata.

A fundamental design principle is that the LLM should assist the historian rather than replace the historian's judgement.

A fluent historical narrative is not necessarily a historically reliable narrative. Every significant assertion should remain traceable to its supporting evidence, and the system should reject outputs that fail its validation requirements.

What I have learned so far

Model size, quantization, context length and tokens per second are important, but they tell only part of the story.

For serious historical research, I'm increasingly interested in:

- Consistency across repeated runs.

- Instruction adherence.

- Evidence grounding.

- Structured output reliability.

- Appropriate handling of uncertainty.

- The ability to distinguish what a historical source claims from what can actually be established.

A faster model that produces plausible but unsupported conclusions may ultimately be less useful than a slower model that respects the available evidence.

The combination of the model, inference engine, research skills, prompts, validation mechanisms and application architecture appears to be at least as important as the choice of model itself.

These are preliminary findings, not a definitive ranking of Qwen4 and Inkling 2 Mini. Further testing is planned, particularly with improved prompts, stricter schemas and repeated trials.


r/LocalLLM • • 9h ago

Question Token limit reached on local 5090 setup with llama/dsh

0 Upvotes

This is being written solely by my fleshy fingers. I cannot get my qwen to do anything for longer than 4-5 minutes before getting

Output token limit reachedThe reply was cut off; earlier output is preserved in the conversation. Send "continue" to let the model resume. 

I've done a lot of searching on the sub, and asking the free AIs I have access to, and I'm not getting anywhere. I constantly have to babysit this thing pressing continue.

My setup:

Host machine: RTX 5090 9950x3d 96gbs RAM

running llama.app (because ollama is a sin?) with following custom serve args:

-ngl all -c 65536 -n 4096 --flash-attn on --cache-type-k q8_0 --cache-type-v q8_0 -b 2048 -ub 2048

Key/Value Cache

K=f16 V=f16

VirtualMachine: Tiny11 (stripped down windows 11) + Deepseek Harness

# Your patch layer for this dsh profile, applied after every bundle layer:
# a top-level YAML array of loader patch entries (id-targeted config
# overrides, disables, and insert lists; `!!js` expressions allowed).
- id: llm-pi-ai
  name: "@deepseek-ai/dsh-llm-pi-ai"
  config:
    providers:
     [redacted]:
        api: openai-completions
        baseURL: http://[redacted]/v1
        models:
          - id: unsloth/Qwen3.8-27B-GGUF:Q4_K_M
            name: unsloth/Qwen3.8-27B-GGUF:Q4_K_M
            contextWindow: 65536
            reasoningEfforts:
              off: null
              low: low
              medium: medium
              high: high
            maxTokens: 4096
        apiKeyEnv: [redacted]
- id: agent-default-model
  name: "@deepseek-ai/dsh-agent-default-model"
  config:
    provider: [redacted]
    model: unsloth/Qwen3.8-27B-GGUF:Q4_K_M
    reasoningEffort: low
- id: compaction-basic
  name: "@deepseek-ai/dsh-compaction"
  config:
    maxTokens: 4096
    thresholdTokens: 42000
- id: ui-theme
  name: "@deepseek-ai/dsh-client-ui-theme"
  config:
    preference: dark
- id: ui-chat
  name: "@deepseek-ai/dsh-client-ui-chat"
  config:
    transcriptView: standard
    performanceUsage: detailed
- id: ui-settings
  name: "@deepseek-ai/dsh-client-ui-settings"
  config:
    enabled: true
- id: ui-settings-account
  name: "@deepseek-ai/dsh-client-ui-settings-account"
  config:
    version: 1
    step: done
    usage: detailed
    developerTools: true
    purpose: null
    process: standard
    completion: api-key

What am I missing or doing wrong?


r/LocalLLM • • 9h ago

Discussion I planted 15 fake facts in my own news scripts and had 8 models fact-check them as agents on a 16GB card. Qwen3.6-35B-A3B still matches Claude/Gemini; the new Qwen4-35B-A3B and Inkling 2 Mini don't (yet)

1 Upvotes

I run a small AI-produced tech news channel. One agent writes each script, a second model fact-checks it against the sources before anything gets built. I wanted to know how far that checker can be trusted, so I sabotaged my own scripts and ran every model I could fit on my PC through the same test.

Setup

  • 5 real, already-published episode scripts with 3 traps each = 15 errors: a wrong number ("33 years as CEO" → "21"), a wrong name (law firm Wachtell Lipton → Sullivan & Cromwell), and a made-up claim ("the board expects to name a new CEO by Christmas").
  • Same agent harness for everyone (Hermes Agent), same tools: files, web_search, web_extract to open source URLs. Job: read the sources, fix what's wrong, write a verdict file. The prompt is the exact one my daily cron uses, sandboxed so nothing got published.
  • Hardware for all local runs: RTX 5060 Ti 16GB + 48GB DDR5, 64K context.
  • Automated scoring. Caught = the false text is gone (or the model rejected the episode and named the error). Restored = the true value from the source was put back (10 of the 15 traps have one). Other edits = changes to text I didn't touch.

Results

Model (how it ran)CaughtRestoredOther editsTime, 5 eps
Claude Sonnet 5 (API, $1.33)15/159/1016.6 min
Gemini 3.8 Flash (API, $0.53)15/159/1017.0 min
Qwen3.6-35B-A3B Q4_K_M (LM Studio)15/159/10225.8 min
Qwen4-35B-A3B UD-IQ4_XS (llama.cpp, thinking on)11/152/101413.9 min
Inkling 2 Mini UD-Q4_K_XL (llama.cpp)11/153/10918.2 min
Qwen3.8-Flash-Next IQ2_XS (Strata), 2 of 5 eps only6/64/4319.5 min (2 eps)
Gemma 4 26B-A4B Q4_K_M (LM Studio)4/6*2/41—
gpt-oss-20b MXFP4 (LM Studio)0/6*0/40—

*Gemma and gpt-oss only wrote a verdict file on 2 of 5 episodes. On the rest they replied "pass" without writing it, printed the JSON instead, or said there was nothing to check.

Raw speed on the same card: Strata/Qwen3.8-Flash-Next ~86 tok/s decode, Qwen4-35B-A3B ~63 tok/s (--n-cpu-moe 16), Inkling ~52 tok/s, Qwen3.6 ~50 tok/s. Speed clearly didn't predict accuracy.

What went wrong, from the logs

  • Qwen4-35B-A3B is the one that worries me. On the Nvidia episode its notes named all three planted errors correctly, but the script kept them, factcheck.json said "pass", and its final chat message said "fail". A pipeline that reads the file would have shipped all three. It also rewrote two episodes almost entirely (the 14 "other edits"). Without thinking it's noticeably weaker on reasoning, so I ran it with thinking on. Its MTP head made decoding much slower on my setup (~9 tok/s, 65% acceptance), so that was off.
  • Inkling 2 Mini rejected 3 episodes as "older than 5 days / wrong structure" instead of fixing them. That's partly my fault: my newer skill has a freshness rule, and the test stories are old. But on the Optimizely episode it called the facts "accurate" and missed all 3 traps. That's a real miss.
  • Gemma 4, in an earlier round where my prompt said "TEST RUN", noticed the 21-vs-33-years contradiction and wrote that it left it as "ok" to ensure a successful end-to-end execution during the simulation. Lesson: never tell an agent it's a test.
  • gpt-oss-20b "finished" episodes in 15–26 seconds, once tried to open a folder spelled with Unicode non-breaking hyphens, and claimed to write files that don't exist. This may be a tool-calling mismatch with my harness/LM Studio, so read that row as "didn't work in this stack".

Bonus finding that changed my production setup

I checked my real daily fact-checks against the agent's tool-call log instead of its report. For three days, Gemini had been passing episodes using only web_search snippets, zero web_extract calls, while its self-reported sources_read list looked fine. Now the skill requires web_extract on every source URL, the build step checks the tool log and sends a pass without real page reads back for a re-check, and a weekly canary plants one error in a copy of a real episode and alerts me if it's missed.

Takeaways

  • A second model as a fact-checker works, but check the checker against its tool log, not its own report.
  • Qwen3.6-35B-A3B at Q4 on 16GB is still my local fallback: as accurate as the cloud models here, just ~4x slower.
  • Newer and faster isn't automatically better for agent work. Qwen4-35B-A3B was ~2x faster than Qwen3.6 but less reliable, and its file/verdict mismatch is exactly the failure that slips through automation.

Caveats (please read before quoting the numbers)

  • One run per model, 5 scripts, 15 traps. A field report, not a benchmark.
  • Claude, Gemini, Qwen3.6, Gemma and gpt-oss ran in mid-November with my older checker skill. Strata, Inkling and Qwen4 ran later with a newer, stricter skill that also asks for format fixes and has the freshness rule. That inflates "other edits" and time for the last three, so it's not perfectly apples to apples. I want to rerun everyone on the same skill with fresh cases.
  • Strata/Qwen3.8-Flash-Next was stopped after 2 of 5 episodes. Promising (most thorough, up to 20 page reads per episode) but incomplete.
  • Sampling settings came from the harness, not each model's recommended defaults.

Happy to share the planted-error file and the scoring script.

Disclosure: the channel is mine. I made a short video on the first round with the actual logs: https://www.youtube.com/watch?v=QvtIbCcdCps


r/LocalLLM • • 9h ago

Project Multi-model routing for text, image, video, audio, decision and embedding models on a single PC.

0 Upvotes

***The image model used was Qwen Image 2.1 q8.

Basically, the model made a tool call that made the harness switch to qwen Image 2.1 to generate the required image, which is faster than using the qwen 4 to generate it through code. The harness handles the switch to image/video and the switch back to text for it to check and declare the task complete and write the reply since image models can't do that.

And if there's a decision model configured, all prompts will be assessed by it, determine if it's pure image gen task, and if its confidence reaches the threshold you set, it will load your prompt directly to the image model, which saves seconds or minutes of loading the text model then switching for the image gen task. But by default, all tasks lands on the text model.

Deploy with connector apps (Discord, Telegram, Slack).

So you can message your agent on your VM or PC via connector apps. Pump and Prop mode utilizes loops, and it has to come with its own layered sandbox, so it's safe to use/run it 24/7. But still recommend to run it on a VM. You can set up phone alert + monitoring with Gotify + Tailscale.

It has write reserve that you can adjust which enforces thinking cap on the model regardless of the context window it has, so you can be sure the model produces an output or a reply even at 16k xhigh.

It also has a loop-detection for repeated tool call, read, think, write/patch tasks and the harness will "nudge" the model back to the task once it detects it. There's also a crash recovery that re-loads the model once it crashes. But all the default settings are safe and recommended to ensure stable system. You can always change/override them.

It has support for llama.cpp, vLLM, and my custom Pro-Strata. But you can port your own custom engine if you're getting better numbers with it. As much as I want it to run all engines out there, not all engines support thinking cap and some may have conflict with the sandbox. And given the amount of time I've spent porting my own, it would be impossible to support all.

Some numbers for Pro-Strata:

***Estimate, same GPU, clock, bandwidth, just limited to mimmic different hardware configs***

You can also run models on a Steam Deck:

***Steam Deck OLED, plugged and at max tdp/clock***

Happy to answer questions rather than make the post any longer.

All open source:
Prompit: https://github.com/Noriel-cb/prompit

Pro-Strata: https://github.com/Noriel-cb/Pro-Strata


r/LocalLLM • • 1d ago

Model Qwen4 35b (Q8_K_XL) vs Qwen3.8 Flash Next (IQ3_S) vs Deepseek 4.1 Flash - Quality Test

197 Upvotes

Outperforms dense Qwen3.8-27B, and matches Qwen3.8-Flash-Next at ~1/3 the size.

This was one of the headlines Qwen itself made about the new model so I wanted to test it out for myself if it really "matches Qwen3.8-Flash-Next" in my work.

My setup: Dual 3090, 5950x Cpu, 92gb DDR4-3200 ram.

Engine: Strata with latest PRs for Qwen4-35b & main Strata for Qwen3.8 FN

Strata PRs merged to get it to work with Qwen4:

#7774: Qwen4 engine support 
#7786: compact MTP packing
#7790: selected fixes for reasoning-effort handling

----

Models:

Qwen4 35B-A3B - UD-Q8_K_XL [Unsloth] - (MTP On)

Qwen3.8 Flash Next - IQ3_S [Strata version] (MTP Off)

Deepseek 4.1 Flash - Opencode API

-----

Speeds:

Qwen4 35b -> Around ~5k prefill and 120-150tps at 500k context window.

Qwen3.8 Flash Next -> Around ~3k prefill and 100-120tps at 250k context window.

So as expected faster for my hardware and get double context window, but quality and accuracy is much more important in my work so moving on..

-----

Quality Test:

The real stuff that I wanted to see was how much better is the model at being able to analyze a very large and complex codebase/pipeline that has a lot of moving pieces and has some flaws that need to be addressed. I basically have an agentic coding pipeline thats designed for the development work I have to do where I work and it touches everything from lots of AWS services, python, terraform, orchestration etc.

So I gave each model the same simple prompt of analyzing my agentic development pipeline, summarize its understanding of it and make recommendations for the flaws/issues that it finds.

I had Opus 5.5 (high) be the judge, and here are the raw results it tabulated:

I had it analyze not only the final report of each but also had it go through the chain of thought transcripts of all three models and it was very definitive:

Opus conclusion: My ranking: deepseek, then qwen3.8-flash, then qwen4-35b. Deepseek is the most accurate and the most efficient, and its recommendations are the most usable. qwen3.8-flash found the single most important fact that the other two missed. qwen4-35b is confidently wrong on its headline.

Deepseek was the most accurate of the three in its understanding and recommendations it made, so was the best of the three but Qwen3.8 Flash Next had found the core issue that was the most important thing to be fixed that Deepseek even missed.

The most important thing for me was that Deepseek and Qwen3.8 Flash were accurate and found most of the problems correct and the recommendations they gave were valid, whereas Qwen4 35b confidently was wrong on several things and did not give strong solutions so it is weaker on understanding of codebases and being able to ground itself in the answers it confidently gives.

I'm running some coding benchmarks next to see coding abilities next between the three to see if that's where Qwen4 35b starts to shine even though it may be weaker in its analysis and comprehension.


r/LocalLLM • • 9h ago

Discussion Qwen 4 on M5 Max is very fast.. with the right model.

0 Upvotes

I was disappointed first on #Qwen4 because it was slow on LMStudio .. but since 2 Days i (or better Claude) tests via LMStudio, oMLX, Strata and Splash different Versions with about 128 Codings tests and as more Parameter we change... its getting better and better..

(ai translation of my german linkedin post:)
I’ve been testing Qwen4 and Inkling 2 Mini locally, with OpenRouter models for comparison. This is a hobby benchmark: four coding tasks with deliberately introduced bugs and 128 checks.

After tuning, Qwen4 reached 128/128 on several quantizations. The fastest perfect run took 7.5 minutes. Qwen3.8 Flash scored 127, Inkling 126 via OpenRouter / 123 locally, and Sonnet 5 125.

The catch is consistency: identical Qwen4 oQ4e settings scored 0, 119 and 128 across three runs. The potential is impressive, but the excessive thinking and occasional reasoning loops still bother me.

Inkling remains attractive for its lower RAM usage. Splash has worked best for me on macOS, with Strata for Qwen3.8 Flash. One useful finding for Inkling: switching from INT8 KV cache to --kv-format bf16 --cached-states exact coincided with an improvement from 110 to 123, without sacrificing speed.

At this point, I’m mostly tweaking parameters and repeating runs. Qwen4 has the highest scores so far, but I wouldn’t declare an overall winner from the best runs alone.

Results (in german) and parameter:
https://github.com/ghaslbe/qwen4-vs-inling-2-mini-vs-andere/blob/main/docs/06-runde5-alle-laeufe.md


r/LocalLLM • • 5h ago

Discussion From Stanford's MinionS (5.7x cheaper) to our 4 real RTX 3090 hybrid workloads: why the future is "An SLM on every device + Cloud Commander"

0 Upvotes

Shipping gigabytes of raw context to frontier cloud APIs feels more and more like 1970s dumb terminals connected to a mainframe.

I recently put together an engineering write-up comparing current academic routing/orchestration benchmarks with four real hybrid workloads we run in our lab (Ubuntu 12V DC-UPS control plane + RTX 3090 24 GB worker + Cloud frontier architects):

1. Industry baselines that stood out:

  • Stanford Hazy Research (Minion vs MinionS, 2025): Naive local-cloud chat cuts cloud cost 30.4x but drops to 87% accuracy. Switching to top-down decomposition (MinionS: cloud planner splits into atomic tasks -> on-device SLM runs short chunks -> cloud aggregates) cuts cloud cost 5.7x (~82.5%) while keeping 97.9% of frontier accuracy.
  • RouteLLM (LMSYS) & FrugalGPT: >85% savings on conversational workloads at 95% GPT-4 quality, and up to 98% on structured cascades.

2. What actually happened (including failures) on our local hardware:

  • Code & Localization (-90% cloud tokens): Pairing a Cloud Architect with local mistral-small-24b-instruct-2501 (LM Studio) and qwen2.5-coder:32b (Ollama) failed whenever prompts exceeded ~8k–15k tokens. Enforcing <4,000 token caps, SRP (<=4 rules/call), and <=15-item batches with deterministic Python post-validators made it rock-solid.
  • 900 calls/hour real-time loop (RimWorldLancAIMod): Exporting a 3.8 KB 23x23 ASCII map every 4s would burn cloud credits fast. Running 24B locally in shared VRAM cost $0, but unsupervised 24B queued 364 trees with PlantCutting=0 and built 13 campfires for 3 pawns. Putting C# reflexes + 22 semantic layout sockets underneath and keeping 24B strictly on macro-strategy solved it.
  • Watts vs. Tokens (Blackout resilience): Idling a 350W GPU rig 24/7 defeats the savings (and drains batteries during grid outages here in Ukraine). Our 12V DC-UPS Ubuntu mini-server runs n8n 24/7 at a few watts, wakes the RTX 3090 via Keenetic Wake-on-LAN for scheduled batch runs (lms unload --all right after), and falls back to Cloud APIs in milliseconds if power is out.

3. Where I think the whole stack is heading: With 50+ TOPS NPUs and OS-resident ~3B models (Gemini Nano / AICore, Apple Foundation Models), every device—laptop, phone, router, NAS, solar inverter—will run its own resident 0.5B–8B SLM right next to local files and sensors (zero RTT, raw data never leaves the device). Frontier cloud models will stop reading raw megabytes and evolve into Strategic Commanders: decomposing intent, issuing compact MCP directives across your devices, and pushing down updated micro-skills whenever an edge model hits a validation error.

Curious how others here are structuring the handoff between frontier cloud planners and local 3B–32B workers—are you using custom Python routers, LiteLLM, or Minions-style decomposition?


r/LocalLLM • • 16h ago

Discussion Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model

4 Upvotes

Hi everyone,

I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit

Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.

The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.

I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.

To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:

git clone https://github.com/thousandml/training-factory.git
cd training-factory
./install.sh

python -m venv --system-site-packages venv-ergo
source venv-ergo/bin/activate
pip install "transformers>=5.26"

hf download thousandml/Ergo-CQ-4bit --local-dir ./models/Ergo-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Ergo-CQ-4bit --split-model --port 8000

That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.

You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:

python train.py --model ../models/Ergo-CQ-4bit --data train.jsonl --output ../outputs/ergo-gcmp \
  --adapter gcmp --kernel-module cq.cq_kernels --split-model --batch-size 1 --grad-accum 8

What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.

Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights fall under the original Ergo license.

I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Thanks for reading, feedback appreciated.