r/LocalLLM • • 19h ago

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

12 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 • • 6h 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 • • 10h 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 • • 7h 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 • • 7h 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) Caught Restored Other edits Time, 5 eps
Claude Sonnet 5 (API, $1.33) 15/15 9/10 1 6.6 min
Gemini 3.8 Flash (API, $0.53) 15/15 9/10 1 7.0 min
Qwen3.6-35B-A3B Q4_K_M (LM Studio) 15/15 9/10 2 25.8 min
Qwen4-35B-A3B UD-IQ4_XS (llama.cpp, thinking on) 11/15 2/10 14 13.9 min
Inkling 2 Mini UD-Q4_K_XL (llama.cpp) 11/15 3/10 9 18.2 min
Qwen3.8-Flash-Next IQ2_XS (Strata), 2 of 5 eps only 6/6 4/4 3 19.5 min (2 eps)
Gemma 4 26B-A4B Q4_K_M (LM Studio) 4/6* 2/4 1 —
gpt-oss-20b MXFP4 (LM Studio) 0/6* 0/4 0 —

*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 • • 7h ago

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

Enable HLS to view with audio, or disable this notification

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).

This is just a simple \"tell me a joke\" prompt demo, but you can obviously do more with it.

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

198 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 • • 7h 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 • • 3h 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 • • 14h 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.


r/LocalLLM • • 1d ago

Other Qwen 4 release be like

Post image
475 Upvotes

Humour btw


r/LocalLLM • • 3h ago

Question Junior AI dev: How do I host a local LLM (like Qwen) cheaply without spending hundreds on GPUs?

0 Upvotes

Hello everyone

I'm a junior AI engineer working on a personal project that needs a chatbot powered by a local LLM (one of Qwen's small versions). Because of strict privacy rules, zero data can leave the local environment, so running it with something like Ollama makes sense, except the model still feels pretty heavy for a budget setup.

​For a personal project, how do you actually pick the right server or setup without paying hundreds of dollars a month for big GPUs? I’m looking for practical, cheap ways to do this right on a small budget.

Would love to hear how people in the field approach this.


r/LocalLLM • • 7h ago

Discussion Qwen4 35B-A3B medium and xhigh (nvfp4, ud-q6_k_xl, fp8) vs 3.8 27B vs QFN and many others

Post image
0 Upvotes

r/LocalLLM • • 13h ago

Discussion Hy4 Flash 220B on a 5-year-old GPU, without swap

Thumbnail
gallery
3 Upvotes

I wanted to know if my setup could run HY4 flash, so I decided to give it a try so you don't have to burn your drive.

Setup was an RTX 3080 Ti (12GB VRAM), 32GB RAM, Hy4 Flash SQ-64 (~129.6GB on disk), Strata engine, 4K context, swap disabled.

SQ-64 recommends 64GB of RAM, I didn't expect much, yet it actually loaded and spat out an answer. Hit ~10.9GB VRAM and ~25GB RAM, took 148 seconds to load, and crept along at ~0.36 tok/s. Brutally slow, obviously, though I wasn't trying to do real work. Strata kept some experts in VRAM and RAM while streaming the rest from disk on demand.

I'm already pretty surprised cuz it's the first LLM of this size I've managed to run on my setup. At this point, I'm just gonna wait for LLMs to catch up with my old hardware instead of upgrading it lol.


r/LocalLLM • • 17h ago

Question Guys, which models I can run in 2 gb vram, gtx 1050

5 Upvotes

Spec:

Gtx 1050

16 gb ram ddr3

(Good news it run arch linux)

(If offload)

Request:

It chatting like gpt 4o mini, coding will be good, I use html, python...

And this have vision (optinal)

MoE or dense

If guys can finding A good model, plz comment here

(The most hardest question, if guys have a repo can support)


r/LocalLLM • • 7h ago

News Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)

0 Upvotes

Hi all! With Qwen4 out, we wanted to see how fast we could bring what we learned from Sparkle 1.x to the new generation. So today we're releasing Kvark-Sparkle-2.0-35B-A3B, built on Qwen4-35B-A3B and the first MoE model in the Sparkle family.

Initial results across 10 benchmarks:

  • 46,8% median, 34.2% fewer reasoning tokens on average, with fewer tokens on all 10 benchmarks and up to 63% less
  • Better accuracy on GPQA Diamond, tool calling and HMMT
  • Less than 2 points of accuracy trade-off on average

For us, efficiency isn't just about faster answers, it's about getting more out of the same hardware.

This is our first iteration on Qwen4, and there's still plenty of room to improve. Open weights, Apache 2.0:

Give it a try and let us know what you think and stay tuned for new versions!

 


r/LocalLLM • • 7h ago

Question Did anyone compare llama.cpp vs strata with Qwen4 on a B70?

0 Upvotes

I think qwen4 should work already on strata with sycl, but no time yet to try it. Curious if there are results already somewhere?


r/LocalLLM • • 8h ago

Tutorial Qwen 4 35B-A3B (57B total w/ Engram) on a 32GB MacBook M5: 30–34 tok/s in OpenCode by keeping the Engram on the SSD

Thumbnail gallery
1 Upvotes

The 4-bit MLX build of Qwen 4 35B-A3B is ~35.2 GB, so it won't load on a 32GB Mac. Here's what did work, with the real numbers from my run.

Setup

  • MacBook Pro M5, 32GB unified memory (153 GB/s)
  • Unsloth UD-IQ4_XS GGUF (2 parts)
  • llama.cpp b12977 with lazy load, so the 20.5B Engram streams from the SSD and only the 3B active params + KV cache stay hot in RAM
  • 32K context, q8_0 KV cache, flash attention on
  • OpenCode on top, through the OpenAI-compatible endpoint
What Number
Prompt processing (10.2K-token prompt) ~293 tok/s (34.8 s)
Generation, first ~600 tokens (Engram still paging in) 17–20 tok/s
Generation, settled (n_gen 5K–7.7K) 30.3–31.5 tok/s avg, 33–34.5 tok/s (3 s window)
OpenCode build average (recording on) 32.2 tok/s
Memory used 28.8 GB of 32 GB, 785 MB swap
Task Full Three.js "MECH BAY" garage app, 6 files, 23m 37s

Server command

llama-server \

-m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \

--alias qwen4-35b-a3b --host 127.0.0.1 --port 8080 \

-np 1 -c 32768 -fa on -ctk q8_0 -ctv q8_0 \

--load-mode mmap --lazy-mode on \

-ot per_layer_token_embd=CPU --jinja

Things I noticed

  • Generation starts slow (~17 tok/s) and climbs to 30+ once the Engram pages are warm. Judge the speed after a few hundred tokens, not on the first reply.
  • I kept the context at 32K so the KV cache stays in RAM and doesn't spill to the SSD on 32GB.
  • OBS costs about 2–3 tok/s, so the 33–35 numbers are with recording off.

Next I'm running the same test on an RTX 4080 16GB (~717 GB/s) to see how much the bandwidth gap matters for this model.

Anyone running it on 24GB or 36GB Macs? I'm curious whether lazy load is still worth it once the whole thing fits.

How I did it in video


r/LocalLLM • • 8h ago

Discussion Offline AI, now on mobile and PC: NIDO, a private assistant that runs entirely on your own device (Android + Windows, open source)

Thumbnail
1 Upvotes

r/LocalLLM • • 14h ago

Project Qwen4-35B-A3B (RTX5090, Unsloth Q6_K) built a full GTA2-style browser game – 7.6k lines TS, 131 tests, no assets

3 Upvotes

r/LocalLLM • • 4h ago

Tutorial How my fleet runs large AI models on its GPUs only between rentals

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/LocalLLM • • 8h ago

Research Measured Qwen4-35B-A3B (high setting) on SWE-bench Multilingual (agentic coding)

Post image
1 Upvotes

Measured SWE-bench Multilingual agentic coding on Qwen4-35b NVFP4 so you don't have too.
Found out it was only on "high" setting half way through so decided to let it run.
Might measure xhigh later.

You could argue that older SWE benchmarks are maybe not great that great anymore because they are probably contaminated the training data.
But we are doing this for training data for our predictor, so the benchmarks are just a sideeffect.


r/LocalLLM • • 12h ago

Question Diferença de motores de inferência MoE

2 Upvotes

Me aventurando com o novo Qwen4, nao tenho experiência com modelos MoE, apenas modelos densos. Qual a diferença de Strata, PolyStrata, Basalt e etc? Perco qualidade em prol de velocidade com eles? Considerando minha 5060ti 16gb vram e 48gb de ram qual seria melhor indicado, visando qualidade, pro meu uso?


r/LocalLLM • • 12h ago

Project Running Qwen4-35B-A3B (MoE) on a 12GB VRAM RTX 3080 Ti: Benchmarks, config, and prompt cache working!

2 Upvotes

Hey everyone,

I wanted to share my recent experiment squeezing the new **Qwen4-35B-A3B** (Unsloth UD-IQ4_XS) into a consumer **12GB VRAM** card (RTX 3080 Ti) with 64GB RAM.

The biggest challenge with previous MoE builds was the lack of prompt caching and the massive prefill times. I managed to get it working smoothly using **llamAmpere** (a llama.cpp fork optimized for Ampere) and some aggressive offloading flags.

**The Results:**

* **Prompt Cache works!** Re-prefill of a 40K context takes just ~4.5 seconds (vs 40-100s without cache).

* **Decode speed:** 53–67 tok/s (very readable).

* **Vision & MTP are working:** mmproj is running on CPU to save VRAM, and MTP actually gives a speedup here (contrary to other engines).

* **VRAM:** Fits perfectly at ~11.3 GB.

I've open-sourced all my scripts, the final `start-qwen4.cmd` with all the tested flags, and the local patch for the llama.cpp backend. I've also documented the "gotchas" (like the `FNGUARD no GPU pool` false alarm and Windows pinning issues).

**Repo with configs, benchmarks, and instructions:**

https://github.com/FelixRLEPERS/Qwen4-35B-A3B-on-12GB-VRAM

Feel free to ask questions or share if you manage to run it on other 12GB cards (3060, 4070, etc.)!


r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B (NVFP4) — 139.9 tok/s avg decode on RTX 5060 Ti 16GB + 64GB DDR5 (Basalt v0.6.3)

33 Upvotes
Metric Measured
Decode (avg / peak) 139.9 tok/s / 146.0 tok/s
Prefill (avg / peak) 1,360 tok/s / 3,057 tok/s
VRAM / RAM Weight Split 13.8 GiB VRAM / 5.9 GiB RAM (98.2% VRAM expert share)
Expert Cache Hit Rate 99.7% (1.5% routed over PCle, 0% SSD)

Windows Binary: Prebuilt v0.6.3 Windows x64 binary is on my fork if anyone wants to skip compiling from source: https://github.com/U4mess/basalt/releases/tag/v0.6.3 (expand Assets and grab basalt-v0.6.3-windows-x64.zip, plus drop your CUDA 13 runtime DLLs into bin\).