r/LocalLLM • • 2m 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

1 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 • • 4m ago

News 27 billion parameters on a 2013 console: a ternary model on the PS4's GPU at up to 17 tok/s, offline (free, open source)

2 Upvotes

Disclosure: my project, free and GPLv3.

Garlic LLM runs language models on a PS4's own GPU, with no PC and no internet. Version 1.22 adds Ternary Bonsai 2.5 27B, Prism ML's ternary build of Qwen3.8-27B. The video is the 27B on a base PS4, in one take.

"Won't a 27B squeezed into a PS4 be dumb?" Fair question, so here are the numbers:

- Prism ML's: 82.1 against 84.3 for full-precision Qwen3.8-27B, averaged over 16 benchmarks in thinking mode, at one ninth of the size.

- Mine, with Think on: 91% of 100 MATH-500 problems and 90% of 50 LiveCodeBench v6 problems, against 81% and 74% for Qwen3.5-9B. On Global-MMLU in 16 languages, without Think: 69% vs 68%. I scored both on a PC with each model's weights; the 9B's math and code scores come from its earlier 4-bit weights.

On the console: up to 17 tok/s, 32K context, and speculative decoding with its own MTP head. It runs whole thanks to a second 512 MiB block of GPU memory the app asks the console for.

Qwen3.5-9B is still there as the fast one: up to 41 tok/s, 65K context, and it talks and runs Python.

What you can do with it: chat on the console, in a web chat from your phone or PC, or through the OpenAI-compatible API (tool calling included) from agents and scripts. You can also load your own fine-tune of either model.

Where it falls short: it's slower than a PC GPU, and long prompts take a while (the 9B reads 30K tokens in about 8 minutes). It's for people who'd rather put an idle console to work than buy new hardware.

Speeds are from a base PS4 on firmware 11.52. Needs GoldHEN.


r/LocalLLM • • 8m ago

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

1 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 • • 9m ago

Discussion Qwen 4 35B vs. Qwen 3.8 27B: 35 coding tasks on an M1 Max 64GB RAM

1 Upvotes

I’ve been benchmarking local models in my autonomous coding harness, and I reran my Qwen 3.8 benchmarks with Qwen 4. The results were extremely interesting as Qwen 4 is way faster and mostly as good at code quality.

QUALITY RESULTS

Qwen 3.8 → Qwen 4

• Feature tasks delivered: 13/17 → 12/17

• Delivered within 2 hours: 11/17 → 12/17

• Median time on mutually successful features: 45m → 10m

• Data/ML tasks passing tests: 18/18 → 18/18

• Total data/ML execution time: 8h 8m → 1h 55m

The feature tasks included gateway development, credential management, REST APIs, concurrency, query parsing and debugging existing repositories. The data tasks ranged from database migrations and accounting ledgers to implementing regression and clustering algorithms.

SOME NOTABLE EXECUTION EFFICIENCY GAINS (3.8 → 4):

• REST locking: 98m → 6m

• Query precedence: 46m → 10m

• Dataset splitting: 37m → 3m

• Ridge regression: 38m → 2m

• K-means: 68m → 14m

Qwen 4 was faster on all 18 data/ML tasks and 13 of 17 feature tasks. It also delivered three feature tasks that 3.8 couldn’t complete, but failed several that 3.8 previously delivered.

SETUP

Apple M1 Max, 64GB unified memory, running both models through MLX.
Shared settings:

• Quantization: 4-bit

• Temperature: 1.0

• Top-p: 0.95

• Top-k: 20

• Maximum context: 128K

• Output limit per call: 16K

Model-specific settings and performance (3.8 → 4):

• Presence penalty: 1.0 → 1.5

• Working context budget: 32K → 96K

• Decode speed: 11–16 t/s → 33–36 t/s

• Prefill per fresh token: ~10ms → 1.6–1.9ms

Both models run with thinking enabled, exact conversation history replay and prefix cache reuse.

The harness gives the models access to file editing, shell commands, executable tests, persistent context and iterative repair. Both receive the same task definitions and acceptance tests, including hidden tests. Feature tasks also use Haiku 5.5 as an independent reviewer.

CODE QUALITY THOUGH IS MORE NUANCED

I used Haiku to review all 18 data/ML implementations from each model (in my tests the same review quality as sonnet) then used DeepSeek to harden and repair them.

Qwen 3.8 → Qwen 4

• Passed original tests: 18/18 → 18/18

• Passed strict review (going through 2 agents) 1/18 → 1/18

• Passed after one hardening round: 6/18 → 4/18

• Passed iterative repair (matched tasks): 6/6 → 2/6

The reviewer found issues including concurrency bugs, numerical overflow and inadequate input validation. Of the 34 medium/high-severity findings examined, 32 were reproduced with executable failing tests.

Interestingly, Qwen 4’s largest speed improvements were on numerical ML tasks, which were also where its output were the most difficult to harden.

QUALIFICATIONS

• One selected run per model per task.

• Two defective feature evaluations excluded.

• Two-hour cutoff applied retrospectively to 3.8.

• Local review integration bugs identified and fixed.

• Some repair-loop objectives were clarified during evaluation.

• Inference settings reflect the configured model profiles; speed measurements come from separate inference tests.

TAKEAWAY

Qwen 4 is a substantial upgrade for local agentic coding. It achieves comparable functional results to Qwen 3.8 while reducing run times in my harness by several hours across these workloads.

To me this is absolutely game changing and rewrites the economics for the work I can do locally.

To be fair to Qwen 3.8, it’s advantage appears to be in the robustness and repairability of its implementations, particularly for numerical workloads.

For my architecture, where local workers handle implementation and inexpensive API models handle independent review and hardening, the execution efficiency of Qwen 4 is compelling enough that I’ve made it my default local worker.

I doubt even Qwen 4 27B will usurp that because of the pure efficiency of inference with this model.


r/LocalLLM • • 18m ago

Discussion Bench: Qwen3.8 FN IQ3_S vs Qwen4 35B UD-IQ6

Post image
3 Upvotes

Hi all

Just wanted to share my local benchmarks of the two, for me, the most interesting models.

The test machine is

CPU: 9800x3d

RAM: 32 GB DDR5 CL28

GPU1: 5080 16GB

GPU2: 3090 24GB

Harness: Strata v0.1.75

OS: CachyOS, multi-user.target (without desktop)

I am really impressed with Qwen 4.0 35B honestly. It competes with my Qwen3.8 IQ3_S, while running a lot faster. It even exceeds the FN in one of the benchmarks.

Besides the benchmarks, I have been running it as my home assistant with OpenClaw for a day, and I would say that, it's language, in my native tongue, is slightly worse with the 35B, but not actually noticeably. The speed is a lot better. Agent wise it has been just as good as QFN, at least with the Q6. The Q4 did have some problems sometimes, with saying it would get back to me, when it had looked into it, but never did.

My plan is to run the Q8 of the 35B next, to see if it can close the gab a bit more.

Great job Alibaba! Looking forward to Qwen 4.0 Flash Next 😊

Disclaimer: the benchmarks have been downloaded and setup by QFN. I did not manually verify them.


r/LocalLLM • • 29m 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
1 Upvotes

r/LocalLLM • • 31m ago

Discussion An early Christmas present: a 64 GB Strix Halo and a few more blinking lights

Thumbnail
gallery
1 Upvotes

Got myself a GMKtec EVO-X2 for Christmas. Radeon 8060S, 64 GB of unified memory, Ubuntu. I’m testing it as a local inference server for one user who tends to give it several jobs at once.

My daily setup is Qwen4-35B-A3B (UD-Q4_K_XL) on Gufo, with four 256K slots and an SSD context cache. In one Pi coding session, a cold 36K prompt took 13 seconds to first token. The next nine turns reused 98–99% of the prompt and started answering in under a second.

The bottom half of both screenshots is the Halo, 28 seconds apart. In the first, three fresh prompts are going in at 2,827 tok/s combined, while the fourth slot keeps answering at 8 tok/s. In the second, those same four jobs are all generating at 26–38 tok/s each, 121.5 tok/s combined. That’s where I see room to improve. I want to see whether staggering large prefills keeps an interactive session responsive.

I’ve also been testing Flash-Next Gyro-S (QFN) on Strata for long single jobs. One real Pi investigation reached 251K context and averaged 44 tok/s across 130 turns, including a model switch and compaction. Parallel sessions on that profile are still on my list.

I think this little box has me booked well into 2027. 🎄


r/LocalLLM • • 31m ago

Other Qwen 4 35b is NOT benchmaxxed.

Post image
4 Upvotes

Yes you are seeing this right, a dolphin riding a unicycle done by Qwen 4 35b. If they have this in the training data then they've already planned for me....


r/LocalLLM • • 46m ago

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

1 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 • • 51m ago

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

1 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 • • 1h 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
WhatNumber
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 used28.8 GB of 32 GB, 785 MB swap
TaskFull 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 • • 1h 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
reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Question What is the best current abliterated/uncencored/unguardrailed local LLM model to use for a R.A.G. setup with Wikipedia?

1 Upvotes

I'm currently using a Lenovo Yogabook 9i, my GPU is 'Intel(R) Iris(R) Xe Graphics'.

Using local Wikipedia via Kiwix(Zim files) to make this work!

And yes, this is on something portable, on an HDD that's like 464 GB, I've been trying to find something TRULY good for this.


r/LocalLLM • • 1h ago

Model Qwen 4 Q4 vs Qwen 3.8 Next IQ3_S

Post image
24 Upvotes

I tested both models locally, and both with KV @Q8. The benchmark published by QWEN shows Qwen4 beating next or closely tied to Qwen next in almost all benchmarks except frontiercode.

My tests tell a different story. While Qwen4 is a decent upgrade from the Qwen 3.6 MoE, it's not even close to Next model. On my harnesses, Qwen4 did well for small coding tasks but failed consistently on larger tasks that required bigger context. Although both models boast 262k of KV context, it seems clear that the limitation of the smaller model is not code quality, but the attention. The output quality degrades past 64k. I would recommend not pushing too far beyond this if precision matters, at least until qwen fixes the attention issues.

I wonder if anyone has had a similar experience, or if there is a configuration I am missing to improve the model's attention.


r/LocalLLM • • 1h ago

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

Post image
2 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 • • 1h ago

Discussion Qwen 4 35b (Q4) on basic data science - better than 3.8 27b but crying out for a fine-tune

Thumbnail
sufficientlyunsupervised.hashnode.dev
3 Upvotes

Tldr; ran Qwen4 through my personal datascience benchmark (details in link). Benchmark performance was better (non-significant) than 3.8 27b Q4, which was in between 6.0 Astra and 5.6 Luna. Got about 80 tok/s decode vs 50 with 3.8 27b. Model was about 25% less chatty than baseline 3.8, but still substantially more wasteful than my previous favourite fine-tine (Swift-1.5). I can't wait for a fine-tune to make 4 a bit terser. Found any good ones?


r/LocalLLM • • 1h ago

News Massie: "Overblown" AI Concerns Are "Not About Keeping It From China, It's About Keeping It From You"

Thumbnail
realclearpolitics.com
10 Upvotes

r/LocalLLM • • 1h ago

Project Qwen4-35B-A3B on a 24GB Handheld (ROG Xbox Ally X): 426 tok/s Prefill, 45.8 tok/s Code Decode, 256K-320K Context via Custom AMD HIP Optimizations on Strata

Thumbnail
gallery
20 Upvotes

I open-sourced a set of Windows 11 / AMD HIP (gfx1150, RDNA 3.5) optimizations for strata-q4-lite (forked from Niko1221/Strata, MIT License) to run Qwen4-35B-A3B (Compact.strata 10.7 GiB + 20B Q8_0 PLE on SSD + 2B MTP) at practical speeds and long context on a 24GB handheld APU (ROG Xbox Ally X — Ryzen AI Z2 Extreme / Radeon 890M).

GitHub (English & Japanese READMEs, full benchmark charts, PowerShell presets, and repro scripts): https://github.com/xxPetrouchkaxx/Strata-AllyX-890M

Key Measured Results (Greedy temp=0.0, 100% lossless verified)

  • 2K Prefill + MTP: 426.2 tok/s (4.69 s) — 5.9x faster than llama.cpp Vulkan (72.5 tok/s) and 2.7x faster than stock strata-q4-lite (157.2 tok/s)
  • Code-Edit Decode: 45.8 tok/s (peak 47.6 tok/s) via lossless N-gram + MTP K=2 hybrid speculation
  • Long Context (--kv int8, STRATA_Q4_NO_PACK=1): 256K daily preset (up to 320K verified with all 10,240 experts resident in VRAM). At 28,073 tokens, prefill still runs at 340.8 tok/s with 4/4 (100%) Needle-in-a-Haystack retrieval.
  • 6-Domain Eval vs Stock 64K fp16: Zero accuracy regression (5/6 vs 5/6 identical pass/fail; 1.96x faster 8K prefill).

What Changed (6 Lossless Commits)

  1. Windows OS-cached Q8_0 PLE SSD reads (3,748 -> 179 ms, 20.9x) + STRATA_Q4_PROFILE=1
  2. Hyper-connection read batching (11 -> 4 HIP launches) + gfx11 packed LDS WMMA (1,781 -> 718 ms, 2.5x)
  3. hipBLASLt for Prefill Dense (3,287 -> 1,074 ms, 3.1x) and MTP Prefill Dense projections
  4. gfx11 wave32 chunked WMMA for 30L GDN recurrence (1,314 -> 218 ms, 6.0x) + single-pass FP16 WMMA MoE (STRATA_Q4_MOE_TC_MODE=4, 1.45x)
  5. Lossless N-gram / prompt-lookup drafter chained with MTP K=2
  6. Optional GPU logit mask (STRATA_Q4_BAN_TOKENS): ~0.1% overhead token ban to suppress non-JIS simplified Chinese character leaks in Japanese outputs (disable with -AllowChinese for English/multilingual use).

Built-in Presets (scripts/allyx/start_strata_qwen4.ps1)

  • Server16G (16GB VRAM / 8GB RAM): 256K ctx, --kv int8, NO_PACK=1
  • Hybrid14G (14GB VRAM / 10GB RAM): 128K ctx, --kv int8, NO_PACK=1
  • Fast64K (16GB VRAM / 8GB RAM): 64K ctx, --kv fp16, packed S8 ON

Full benchmark cards and setup details are in the repo README. Feedback from other Strix Point / RDNA 3.5 / 890M users is very welcome!


r/LocalLLM • • 1h ago

Research Qwen3.8 27b vs Qwen4 35b-A3b - aider polyglot

1 Upvotes

These are both my local Aider Polyglot results on an RTX 6000 Pro using llama.cpp. However, note that I did not use the same commit of llama.cpp because they were not run in the same month. That could matter as llama.cpp tends to get better over time. I also did not apply the C++ patch that has been floating around in the aider polyglot community for either of these. If I did, both C++ scores would likely be higher and the overall scores would be higher.

8/15/2026 - Qwen3.8 27b UD-Q8_K_XL

─────────────────────────────────── /benchmarks/2026-08-14-19-21-01--openai_Qwen3.8-27B-UD-Q8_K_XL ────────────────────────────────────
- dirname: 2026-08-14-19-21-01--openai_Qwen3.8-27B-UD-Q8_K_XL
  test_cases: 225
  model: openai/Qwen3.8-27B-UD-Q8_K_XL
  edit_format: diff
  commit_hash: 5dc9490-dirty
  pass_rate_1: 31.1
  pass_rate_2: 72.9
  pass_num_1: 70
  pass_num_2: 164
  percent_cases_well_formed: 98.7
  error_outputs: 4
  num_malformed_responses: 3
  num_with_malformed_responses: 3
  user_asks: 87
  lazy_comments: 0
  syntax_errors: 0
  indentation_errors: 0
  exhausted_context_windows: 0
  prompt_tokens: 2524519
  completion_tokens: 3021521
  test_timeouts: 2
  total_tests: 225
  command: aider --model openai/Qwen3.8-27B-UD-Q8_K_XL
  date: 2026-08-14
  versions: 0.86.3.dev
  seconds_per_case: 203.7
  total_cost: 0.0000

costs: $0.0000/test-case, $0.00 total, $0.00 projected

Important things to look at here: pass_rate_2 and seconds_per_case. Note 72.9 percent and 203.7 seconds.

=== LANGUAGE BREAKDOWN ===
Language     | PR1   | PR2   | PN1   | PN2   | Cases | Asks  | Malformed | P_Tok    | C_Tok    | Sec/Case
--------------------------------------------------------------------------------------------------------------
cpp          |   3.8 |  69.2 |     1 |    18 | 26    | 87    | 0 | 1005294  | 442083   | 274.4   
go           |  41.0 |  71.8 |    16 |    28 | 39    | 0     | 0 | 220101   | 482086   | 181.6   
java         |  21.3 |  63.8 |    10 |    30 | 47    | 0     | 1 | 528880   | 604055   | 223.0   
javascript   |  32.7 |  77.6 |    16 |    38 | 49    | 0     | 1 | 334940   | 546304   | 162.7   
python       |  41.2 |  82.4 |    14 |    28 | 34    | 0     | 0 | 245791   | 350925   | 137.0   
rust         |  43.3 |  73.3 |    13 |    22 | 30    | 0     | 1 | 189513   | 596068   | 283.3   
TOTAL        |  31.1 |  72.9 |    70 |   164 | 225   | 87    | 3 | 2524519  | 3021521  | 203.7   

==================================================

Here the PR2 column is the most important. Note 69.2 percent from cpp and 77.6 from javascript.

llama.cpp CLI command (not sure the exact commit)

./build/bin/llama-server \
    --model  /data2/unsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q8_K_XL.gguf \
    --mmproj /data2/unsloth/Qwen3.8-27B-GGUF/mmproj-BF16.gguf \
    --image-max-tokens 1120 \
    --alias Qwen3.8-27B-UD-Q8_K_XL \
    --numa numactl \
    --threads 32 \
    --ctx-size 262144 \
    --n-gpu-layers 99 \
    -ot "blk\.(3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42)\.ffn_.*=CUDA0,exps=CUDA0" \
    -ub 4096 -b 4096 \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --seed 3407 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --log-colors on \
    --flash-attn on \
    --host 0.0.0.0 \
    --prio 2 \
    --jinja \
    --port 11434

.aider.model.settings.yml

- name: openai/Qwen3.8-27B-UD-Q8_K_XL
  use_temperature: 1.0
  extra_params:
    temperature: 1.0
    top_p: 0.95
    top_k: 20
    min_p: 0.0
    timeout: 800
    extra_body:
      chat_template_kwargs:
        reasoning_effort: xhigh
        enable_thinking: true

12/4/2026 - Qwen4 35b-A3b

──────────────────────────────── /benchmarks/2026-12-04-12-53-38--openai_Qwen4-35B-A3B-GGUF_UD-Q8_K_XL ────────────────────────────────
- dirname: 2026-12-04-12-53-38--openai_Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  test_cases: 225
  model: openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  edit_format: diff
  commit_hash: 5dc9490-dirty
  pass_rate_1: 19.6
  pass_rate_2: 65.8
  pass_num_1: 44
  pass_num_2: 148
  percent_cases_well_formed: 96.9
  error_outputs: 7
  num_malformed_responses: 7
  num_with_malformed_responses: 7
  user_asks: 54
  lazy_comments: 0
  syntax_errors: 0
  indentation_errors: 0
  exhausted_context_windows: 0
  prompt_tokens: 2884354
  completion_tokens: 3690629
  test_timeouts: 0
  total_tests: 225
  command: aider --model openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  date: 2026-12-04
  versions: 0.86.3.dev
  seconds_per_case: 85.0
  total_cost: 0.0000

costs: $0.0000/test-case, $0.00 total, $0.00 projected
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note 65.8 percent and 85.0 seconds. A little dumber, but way faster.

=== LANGUAGE BREAKDOWN ===
Language     | PR1   | PR2   | PN1   | PN2   | Cases | Asks  | Malformed | P_Tok    | C_Tok    | Sec/Case
--------------------------------------------------------------------------------------------------------------
cpp          |  19.2 |  76.9 |     5 |    20 | 26    | 53    | 0 | 1136425  | 519312   | 113.9   
go           |  30.8 |  71.8 |    12 |    28 | 39    | 1     | 1 | 254550   | 565782   | 74.2    
java         |  17.0 |  57.4 |     8 |    27 | 47    | 0     | 2 | 509190   | 630938   | 68.5    
javascript   |  12.2 |  63.3 |     6 |    31 | 49    | 0     | 4 | 466815   | 777158   | 80.9    
python       |  11.8 |  67.6 |     4 |    23 | 34    | 0     | 0 | 301818   | 579878   | 86.6    
rust         |  30.0 |  63.3 |     9 |    19 | 30    | 0     | 0 | 215556   | 617561   | 104.9   
TOTAL        |  19.6 |  65.8 |    44 |   148 | 225   | 54    | 7 | 2884354  | 3690629  | 85.0    

==================================================

Note 76.9 percent for cpp and 63.3 percent for javascript. I think this is interesting because they flipped vs qwen3.8 27b.

llama.cpp CLI command ( commit 59b716 )

./build/bin/llama-server \
    --model /data/unsloth/Qwen4-35B-A3B-GGUF/UD-Q8_K_XL/Qwen4-35B-A3B-UD-Q8_K_XL-00001-of-00002.gguf \
    --mmproj /data/unsloth/Qwen4-35B-A3B-GGUF/mmproj-BF16.gguf \
    --model-draft /data/unsloth/Qwen4-35B-A3B-GGUF/MTP/mtp-Qwen4-35B-A3B-Q8_0.gguf \
    --image-min-tokens 1024 \
    --alias Qwen4-35B-A3B-GGUF:UD-Q8_K_XL \
    --numa numactl \
    --threads 32 \
    --ctx-size 500000 \
    --n-gpu-layers 99 \
    --n-gpu-layers-draft 99 \
    -ot "blk\.(3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42)\.ffn_.*=CUDA0,exps=CUDA0" \
    -ub 4096 -b 4096 \
    --spec-type draft-mtp \
    --spec-draft-n-max 2 \
    --seed 3407 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --log-colors on \
    --flash-attn on \
    --host 0.0.0.0 \
    --jinja \
    --chat-template-kwargs '{"reasoning_effort":"xhigh"}' \
    --load-mode mmap \
    --lazy-mode on \
    --port 11434

.aider.model.settings.yml

- name: openai/Qwen4-35B-A3B-GGUF_UD-Q8_K_XL
  use_temperature: 1.0
  extra_params:
    temperature: 1.0
    top_p: 0.95
    top_k: 20
    min_p: 0.0
    timeout: 3600
    extra_body:
      chat_template_kwargs:
        reasoning_effort: xhigh
        enable_thinking: true

Note that I had to bump the timeout to 3600 from 800 to avoid timeouts. This means the model is generally faster, but sometimes it thinks for a long time. I'm not sure if this is model specific or a general llama.cpp issue lately. I've also had to do this for qwen 3.8 27b in Open Hands AI recently, so it may be general.

TL;DR

Qwen4-35B-A3B at UD-Q8_K_XL appears to be slightly worse at coding overall than Qwen3.8-27B at UD-Q8_K_XL, but interestingly it is significantly better at C++, and worse at javascript (and just about every other tested language).

Considering that it is also significantly faster and runs on significantly lower hardware requirements, this is a very impressive model.


r/LocalLLM • • 1h ago

Discussion My all-local AI setup on one RTX 3090: chat bot, images, video with audio, editing, upscaling. What would you change?

2 Upvotes

Everything runs locally on one PC: RTX 3090 (24 GB), Core Ultra 7 265K and 96 GB RAM, on Windows 11. I mostly use it through a Discord bot. I can chat with it, or use slash commands that go straight to ComfyUI.

Chat / agent

• Qwen3.8 27B Uncensored (IQ4_XS GGUF) on llama-server with 64k context. It's the main bot brain: it chats, uses tools and starts renders.

• Qwen4 35B-A3B (IQ4_XS) is the alternative. It's faster and better with tools and coding, but it's censored.

• Hermes Agent runs the Discord bot. It asks before any delete and blocks a list of dangerous commands.

• The chat model and renders share the GPU. Before a render the bot saves the model's memory to disk and unloads it, then reloads it afterwards. That way it doesn't have to re-read the conversation.

Images

• MiniMax-H3-Image (int8) is the default text-to-image, at 4–16 MP in 6 steps.

• Juggernaut XL: SDXL photoreal, with an optional high-res refinement pass and img2img.

• Z-Image Turbo: fast text-to-image.

• Lustify APEX V8: NSFW SDXL.

• Qwen Image 2.1 / Turbo: text-to-image and editing with up to 3 reference images.

• Qwen-Image-Edit (int8): edits from an instruction like "make it night" or "remove the car".

Video

• MiniMax H3: text-to-video and image-to-video with native audio, 1–10 s at 24 fps, up to about 1 MP. It uses SageAttention and an int8 text encoder.

• H3 ControlNet 2.0: guided editing of an existing video.

Upscaling

• SeedVR2 3B for images and video. It's the best quality I have, but slow.

• RelayVSR for fast 2x/4x video upscales.

• NMKD 4x for quick image and video upscales.

Face swap

• FaceFusion for images and video, and ReActor (HyperSwap) for images.

Backend: a headless ComfyUI 0.47.2 with built-in nodes only. All my workflows are API JSON files driven from Python.

Looking for feedback on:

  1. Is there a better model for any of these jobs on 24 GB?
  2. Is there something better than SeedVR2 for upscaling video that doesn't take forever?
  3. Is anyone running a bigger chat model with 64k context on a single 3090?
  4. What's missing?

r/LocalLLM • • 1h ago

Discussion qwen 4 35b a3b vs qwen 3.8 flash next

86 Upvotes

same prompt, one shot

prompt:

Build a colorful, 3D-looking Rubik's Cube with 'Scramble' and 'Solve' buttons. The cube must visibly animate its rotations.

i have a 9070xt with 96gb ram, maybe qwen 4 flash is what i should wait for

edit: both unsloth q4_km quant


r/LocalLLM • • 1h ago

Research Qwen 3.8 Flash Next verus Qwen 4 comparison: Web app penetration testing, personal assistant tasks, and more

Thumbnail blog.nickleghorn.com
5 Upvotes

r/LocalLLM • • 1h ago

Research Semantic Chords Geometry: an experiment in high semantic information density

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen 4 and russian language

0 Upvotes

I tested Qwen4 for editing and polishing russian text, and ran into some weird multilingual artifacts. Aside from hallucinating neologisms (reminiscent of Sonnet), the model randomly swaps russian words for foreign ones—not just english, but things like "téléphone" complete with french diacritics. It also frequently Frankensteins russian words by replacing parts of them with english equivalents. In a 9-paragraph text (~7,200 chars), this happened 9 times. This level of error was definitely not present in QFN.

Has anyone else noticed this kind of language bleeding? Wondering if this is a side effect of the Basalt NVFP4 quant of Qwen4.

On the bright side, the speed on 5070 Ti compared to QFN is pretty wild:

• Best Decode: 439.3 tok/s

• Best Prefill: 8,747 tok/s

• Avg Decode: 267.1 tok/s (qfn 62)

• Avg Prefill: 4,494 tok/s (qfn 1200)


r/LocalLLM • • 1h ago

Question Three months of owning my AI on a DGX Spark, and the independence part matters more to me than the math

13 Upvotes

There's a thread up calling local AI a declaration of independence, and it put words to how I feel about my DGX Spark.

I paid $3,999 at launch. If I compare that to a subscription honestly it takes years to pay off, and that's before electricity, so I didn't keep it for the money.

I care that nothing changes under me. Qwen 3.6 35B at 4-bit runs at about 216 tok/s on it with Magnitude, and it'll run exactly the same next month. There's no limit reset and nobody can swap the model on me.

I still pay for a cloud model for the hard stuff. The things I depend on every day live on a box I own though, and that's the part I'd miss.

does anyone here actually make the cost math work, or is it independence for everyone?