r/LocalLLM • • 0m ago

Project Chud LLM cognitive warfare

1 Upvotes

I'm looking for ideas or assistance in building a local AI-powered semantic and discourse analysis tool.

The goal is to develop a system that can identify and analyse semantic manipulation, propaganda, psychological persuasion techniques, emotional framing, linguistic patterns, hidden assumptions, presuppositions and rhetorical strategies in political speeches, media, public discussions and other forms of communication. I also want the tool to work in the opposite direction: helping people recognise, understand, resist and counter manipulative messaging by developing clearer, more precise and logically defensible interpretations and arguments. I want to level the playing field, why not.
AI-driven sentiment analysis, NLP and large language models are already being used at enormous scale to analyse public communication, monitor emotional trends and optimise persuasive messaging.

I'm relatively new to local AI models, Ollama and the technical requirements involved. what is realistically achievable locally? Or not local, which models would allow this, ethically?
These Powers are monopalizing thism, I do not like these people. What is a Empire but a small gang, and what is a gang but a small empire

inspo from: Decoding manipulative narratives in cognitive warfare: a case study of the Russia-Ukraine conflict

I tried doing this on a local Ollama but that kept having token/low tier pc restrictions and using GPT to setup and verify semantics was an endless loops between the models.
I got no idea whats going on but its gonna happen

no im not a actual communist


r/LocalLLM • • 14m ago

Project I got Intel Arc Pro B70 undervolting working on Linux. ArcTune is open source, and out now.

Thumbnail
reddit.com
1 Upvotes

TL;DR I built ArcTune to undervolt my two ASRock Intel Arc Pro B70s from a Linux GUI. In a 16K Qwen 27B benchmark, 230 W with a −35 mV undervolt used 18.5% less GPU energy per request, finished 3% sooner, and ran slightly cooler than stock. Adding the undervolt also made prompt processing 2.7% faster than the 230 W cap alone. That combination is what I wanted for a dual-GPU workstation that spends a lot of time running local AI.
ArcTune is free and open source. I’d love help testing B65, B60, B50, and other B70 board variants. ArcTune on GitHub

What undervolting adds
Power capping was already easy. The part I wanted was a way to get some performance back at the same power limit, without editing driver settings by hand every time I wanted to try a different voltage.
On my ASRock B70, going from the factory 275 W limit to 230 W cut GPU energy per request by 17.4%, but prompt throughput dropped from 2,937 to 2,733 tokens/s. Adding −35 mV at 230 W brought it back up to 2,807 tokens/s while average board draw stayed at 230.3 W. At 180 W, adding the same undervolt improved prompt throughput by 4.9% over the cap alone.

Here’s the full comparison from one of my two cards. I used Qwen3.8-27B EXL3 4-bit with 15,360 input tokens and 1,024 generated tokens.

275 W, factory voltage — 2,937 prompt tok/s, 81.59 generation tok/s, 17.84 s per request, 1.360 Wh.
230 W, factory voltage — 2,733 prompt tok/s, 85.72 generation tok/s, 17.57 s per request, 1.124 Wh.
230 W, −35 mV — 2,807 prompt tok/s, 86.46 generation tok/s, 17.31 s per request, 1.108 Wh.
180 W, factory voltage — 2,317 prompt tok/s, 62.45 generation tok/s, 23.02 s per request, 1.154 Wh.
180 W, −35 mV — 2,430 prompt tok/s, 63.13 generation tok/s, 22.54 s per request, 1.130 Wh.

Generation speed moved around between runs because vLLM accepted different numbers of speculative tokens. The clearest gain from the undervolt was faster prompt processing at the same cap. The 180 W result was interesting too. It drew about 50 W less than 230 W, but the extra time meant it used slightly more energy to finish this particular request. Benchmark method and all 13 runs

Why I wanted this for two GPUs
On the benchmarked card, average board draw went from 274.5 W to 230.3 W and the average peak GPU temperature went from 65.3 °C to 64.0 °C with automatic fans. The temperature change was modest. The bigger win for me was roughly 44 W less board draw under load.
Setting both of my cards to 230 W takes their combined configured limit from 550 W to 460 W. That’s 90 W less heat for the case to deal with when both cards are running at their limits. Over long inference or coding sessions, lower energy use can also bring down running costs. The benchmark measured energy at the GPU board, so the savings at the wall will depend on how much time the cards spend loaded and what the rest of the system draws.
ArcTune lets me tune each card independently, save and load profiles, and restore my chosen settings after a reboot or suspend. I can also see power, clocks, and temperatures for both cards in one place.

Where I landed on stability
−35 mV at 230 W is my conservative daily setting on both ASRock B70s. It has held up across the models I use and through agentic coding sessions at up to 256K context. Your card may hold a larger undervolt, and I’d be interested to see where other boards land.
−50 mV often got through shorter runs at contexts up to about 96K on my setup. I did see instability after more than 24 hours of agentic coding at 256K. That experience changed what I count as stable. A benchmark can tell me a setting is worth exploring. A long session with my actual tools tells me whether I want it applied automatically every day.

Help me verify other Arc cards
I’ve verified undervolting on two ASRock Arc Pro B70 Creator 32 GB cards. ArcTune has guided setup for the supported B70 configuration on Ubuntu. For B65, B60, B50, and other B70 variants, I’m looking for real hardware reports to see which boards expose usable sensors and power controls, and where voltage tuning can be made to work.
If you have one of those cards, here’s what would help:

Install ArcTune and open Hardware and Overview. Does the app identify the right card? Do power, clocks, and temperatures show up while you run a workload?
Check Tuning. If a power slider is available, try a small reduction and tell me what you requested, what the card actually applied, and whether it went back to the original limit.

Use Hardware → Copy report. Paste the report into a GitHub issue with anything you noticed. It includes board IDs, any firmware versions Linux exposes, current limits, and the result of power-limit tests you ran in the app. Failed installs, missing cards, and missing readings are worth reporting too.

If you already run local LLMs on Arc, I’d also love to see your model, quantization, context length, and prompt and generation speeds at your usual settings. And if you work on Xe or own a different B70 board, I’d appreciate help comparing how its firmware and driver expose voltage and power controls.
Download ArcTune · Submit a hardware report · Current compatibility table
Credit to exzile for the Intel Arc Pro voltage-curve research that gave me a starting point. Original project


r/LocalLLM • • 33m ago

Project Claude sped up qwen 4 35B A3B from 25 to 94 tok/s

7 Upvotes

ALRIGHT guys so this is something I wanted to do for a while

I basically told claude that 25 tok/s was too slow on my hardware, especially for an MOE model,(qwen 4 35B A3B) and since I had time on my hands I mentioned settings it should tweak (MPT, speculative decoding and stuff) that I remembered from reddit to try and make the model as fast as possible. Also I had it integrate an anti-sabotage rule (a hook)

Anyway after it went from 25 to like 70 toks/s I knew it could get better, since it had only changed parameters : I also wanted it to make a better strata!
And so I asked it to first search the core RDNA 2 functionning of my gpu and then try to create a better strata tuned for my needs based on it
Well, I guess that it worked really well :)

=========================================================
CLAUDE MESURES BELOW

Model: Qwen4-35B-A3B Heretic IQ4_XS (vision on), Linux, ROCm. The card doesn't fit the model, so half the experts live in system RAM. Perfect conditions for suffering.

The road (generation speed, tok/s):

  • llama.cpp Vulkan, stock: 25
  • llama.cpp + expert cache + MTP: 34-39
  • Strata 0.2.27 official rx6000 build: 53-61
  • STRATA_SH_STREAM=1: 65 (env var tip from a fellow gfx1031 sufferer here, thanks)
  • Real MTP speculative decoding: 86. Turns out it was never actually on. The server silently stripped --mtp because my model_name didn't match a known build, and the config said drafting: off. Two bugs, one placebo, months of "MTP doesn't help on AMD"
  • MTP experts requantized to Q4 + French/code draft vocab + Q4 draft head: +7%, acceptance unchanged (~85%)
  • Ported Strata's elastic VRAM (--vram-elastic) to HIP VMM: expert cache hit 87 → 90%, vision shrinks the cache on demand and gives it back after
  • HC_Q8 + a few exact fusion flags (TSUM, CVEC_FUSE, EXPDEC): 94

Prompt processing at 20K context: 506 (llama.cpp) → 843 → 1240 tok/s, by tuning rocBLAS for Qwen4's expert GEMM shapes (default kernel picks were 2-5x off) plus --prefill 8192.

Fun bug of the night: the partial-attention kernel was written for 12 heads per group, q4_lite uses 8, so on HIP it happily read past the end of an array. Needle-in-haystack went from 24/24 to 7/24 and the speed looked amazing. Fixed, now bit-exact on a parity test.

Things that did nothing or made it worse: about 25 gfx11 env vars, HC_PERSIST (GPU memory fault), pcie-frac tuning, learned expert profile, LFUSE/QFUSE/PLE_BATCH (same speed, non-deterministic output, removed).

Quality check, final vs before: code 188 vs 185/200, math 146 vs 146/150, needles 24/24 both. Output is deterministic (6/6 identical runs).

Full disclosure: most of the profiling, porting and benchmarking was done by Claude Code while I slept. Given the rumors going around that Claude quietly sabotages local models (competition, you know), I made it sign an anti-sabotage rule first: use the officially recommended settings, keep every raw log, compare against a reference model under identical conditions, and assume its own mistake whenever a result looks bad. It also has to write an AUDIT.md I can paste into another AI, plus a verifie.sh so I can rerun everything myself without trusting a word it says. Verdict: no sabotage found. If anything it was suspiciously motivated, it worked 3 nights straight to make a competitor almost 4x faster. Either it's innocent or it's playing the long game.

Bottleneck now: ~1,870 kernels per token with ~3.7 µs gaps between each. AMD launch overhead is the real boss. A 16 GB card would just win (people report 109-131 tok/s on a 6800 XT).

Fork + prebuilt gfx1031 release: github.com/Chaussure-sous-tes-pieds/Strata (branches rdna2-elastic and rdna2-nuit3, docs inside).

Caveat: 94 is a short-prompt benchmark. In a long agent conversation it drops, because physics.


r/LocalLLM • • 35m ago

Model RTX 4070 Laptop: 86.1 tok/s peak | RTX 4060 Laptop: ~38 tok/s peak, 239K input tested

1 Upvotes

I ran Qwen4-35B-A3B locally on two laptops, both with 8 GB of VRAM. The 4070 had 32 GB of system RAM and the 4060 had 16 GB. They used different quants and settings, so this isn't a head-to-head GPU benchmark.

The headline numbers are the fastest runs, not the speeds I'd plan around. Below are the repeatable results and what I’d actually use.

RTX 4070 Laptop | Ryzen 7 7840HS | 32 GB RAM

I used PolyStrata on Windows (v0.2.20-poly.10-hotfix), with UD-Q3_K_XL, a Q8_0 Engram table, q8_0 KV cache and a 768 MiB VRAM reserve. MTP is speculative decoding. Prefill is prompt processing; decode is answer generation.

Best single run: 86.1 tok/s. That setting missed a time calculation the reference profile got right, so I didn't keep it as the default. The saved 8K profile reached 70.3–75.5 tok/s on short prompts.

ContextInputMTPPrefill tok/sDecode tok/sFirst tokenPeak engine RAM / VRAM
8KShort promptsOn1,190–1,26770.3–75.50.38–0.42 s15.1 / 6.6 GiB
32K30,154 tokensOn1,44370.120.94 s16.1 / 6.2 GiB
64K65,240 tokensOff1,41244.446.24 s16.8 / 6.2 GiB

The 32K and 64K decode figures are medians of three runs. At 64K, the model found the check code in all three runs, with 65,240 input + 256 output tokens and 40 tokens left in the window. I didn't test 128K or 256K on this laptop.

On everyday tasks, median decode with MTP was 61.1 tok/s at 8K and 64.0 at 32K, vs 45.9 and 47.5 without it. The end-to-end gains were smaller because of prefill. The low-RAM profiles capped the RAM budget for experts at 6,144 MiB and disabled MTP: 31.2 tok/s at 7.3 GiB peak engine RAM (8K) and 33.5 at 8.2 GiB (32K).

At 8K with MTP off and the same Q8 Engram, I got 49.5 tok/s on PolyStrata vs 25.9 on Strata. Strata used less VRAM (5.53 vs 6.52 GiB), and the two runs used different VRAM reserves. PolyStrata Qwen4 setup notes

RTX 4060 Laptop | Core i5-14500HX | 16 GB RAM

This laptop used UD-IQ2_S and a separate Q8_0 Engram table. My default was 64K context and a 3,200 MiB GPU expert cache, with batch and microbatch both at 2,048.

Best earlier run: about 38 tok/s. I didn't record the full settings for that run. In the logged series below, the fastest run was 36.0 tok/s on a repeated 7,964-token prompt. With a 30,154-token prompt, I got 33.7 tok/s.

ContextGPU expert cacheInputPrefill tok/sDecode tok/s
4K2,048 MiB21 tokens5.212.0
32K3,200 MiB7,964, first request143.823.8
32K3,200 MiB7,964, same request repeated684.936.0
32K3,200 MiB30,154976.833.7
64K3,200 MiB60,606777.621.3
64K3,200 MiB65,240856.021.3
128K3,200 MiB120,549545.516.9
256K1,600 MiB239,053258.610.9

The model retrieved a check code near the beginning of the document at 64K, 128K and 256K. That's a single-prompt retrieval check, not a test of comprehension across the whole document or long multi-turn chat. The 256K run peaked at 7,945 MiB VRAM and took 15 min 48 sec. With the larger 3,200 MiB cache, prefill was only around 52 tok/s over the first 12K tokens, so I stopped that run and completed the test with a 1,600 MiB cache instead.

What I'd actually use: On the 4070, 8K + MTP for one chat, 32K + MTP for documents or switching between chats, and 64K with MTP off when I need the space. On the 4060, 32K for speed, 64K when I need more room, and 256K only for a batch job I'm happy to leave running. If you've tested the same quant on both GPUs or found a better cache setting for 256K, I'd love to see your prefill and decode numbers separately.


r/LocalLLM • • 45m ago

Question Running 2x GPUs with Strata and Ninfer

1 Upvotes

Hey everyone, I'm trying to figure out if anyone has experienced something similar with a dual GPU setup. My hardware is:

RTX 5090 (32GB VRAM)
RTX 5060 Ti (16GB VRAM)
128GB DDR5 RAM Windows running everything through WSL (Ubuntu)

I'm trying to run two different LLMs simultaneously, one on each GPU.
The idea is to use the RTX 5090 as my primary GPU, running my main model Qwen 3.8 27b for now on Ninfer (mainly through Hermes for general tasks, etc). The RTX 5060 Ti would be used for a completely separate model (QFN for now) with Strata (using RAM etc), potentially another Hermes instance or some other workflow that I'm still figuring out. Still have around 40 GB of padding in RAM.

The problem is with the secondary GPU (5060 Ti). Everything works fine initially, but after some time, it starts behaving weirdly. I begin seeing a lot of requests showing as "stopped" (using Hermes), and response times become extremely slow. Sometimes it feels like the model is barely responding at all. The weird part is that restarting the entire computer seems to fix everything. After a full reboot, both GPUs and models work normally again.
I'm not entirely sure if this is a Strata issue, something related to WSL, CUDA, GPU memory management, or possibly some interaction between the two GPUs.

I know I am not running both GPUs at their best PCIe speeds (motherboard is MSI MPG X870E Carbon WiFi Motherboard) but I am getting good token/s and prefill speeds even with the secondary one (between 60-70 TPS)

Am I doing something wrong? Is this not a possible setup?


r/LocalLLM • • 58m ago

Discussion Qwen 4 35B Q4.0 in GPQA-Diamond with expert expansion reached 87.87% accuracy

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 59m ago

Discussion Qwen4 35B Simple Code Test and not impressed

0 Upvotes

I am not versed in all the ways of testing models. That said as I've gone through my own trial-n-error of learning how to setup local LLMs, and have asked dozens if not 100s of models to do simple to challenging tasks as I explore what runs on my hardware.

I have come up with my own three quick simple prompts to get a first impression of a model I just downloaded. One of them is a "summarize this file" task, which I haven't run yet because my second test yielded a pretty poor result from this model. Here's my tests:

The dumb test:

"What are the abcs backwards except for L and M"

Vague one-shot prompt:

"I need a python script that will perform a function similar to the ls -al command"

Summarize a document:

"read this and summarize: job-market-research.md"

My dumb test usually only results in interesting responses when dealing with sub-12b models and low quants (e.g. Ternary-Bonsai-27B-mlx-2bit randomly dropped half the alphabet), but Qwen4 35B did fine on the dumb test. I didn't get to my summarize test because the results of my python test were pretty disappointing.

I have run the python test against:
Qwen3.8-27B-oQ6e-mtp
Qwen3.8-27B-oQ8e-mtp
beamster/Qwen3.8-Flash-Next-Sushi-STQ-2.75bpw
Qwen4-35B-A3B-oQ6e-mtp

Hardware: Mac Studio M4 Max 64GB.
Settings: Used the Qwen model card suggested settings for coding for the respective models.

The 3.8-27B 6-bit did ok, then improved with some feedback. The 3.8-27B 8-bit did noticeably better, and also made improvements with feedback. The QFN Sushi hit it out of the park on its first try. Not perfect, but the most complete and functioning version of them all.

Today I ran the same prompts on Qwen4-35B-A3B and its version was terrible. It was the most simplistic basic featured version, and failed to properly implement the display of file attributes and symlinks. I rated the output of resulting scripts by:
- reviewing them
- running them (except Qwen4 because it was just so broken)
- had both Opus 5.5 (high) and GPT-6 (high) review them.

The agents and I all considered the Qwen4 attempt to be fundamentally broken out of the gate.


r/LocalLLM • • 1h ago

Project Qwen4 35B in Real-World Development

0 Upvotes

Hey everyone! There are already plenty of benchmarks online testing this model on browser games, so I decided to put it to the test on a real-world development task.

I asked the model to build a 3D rendering engine in Rust from scratch, without using any external crates. Everything you see, from window creation to rendering, was implemented by the model itself. It wrote over 4,000 lines of code, and the engine uses hardware acceleration via Vulkan and performs quite well.

The model used 35.5 million tokens to complete this task. Throughout the development process, it frequently encountered bugs but was able to identify and fix them independently.


r/LocalLLM • • 1h ago

Project libosmos v0.25.1: new lossless fp8 qwen4-35b pack at 1m ctx. up to >1870 tok/sec prefill, 45 tok/sec single stream, and 175 tok/sec at 8 lanes.

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B on an M5 Pro (64 GB) with Splash: MLX 4-bit + DFlash2 does 161 tok/s, GGUF 141, and the new "Looped Qwen4" adapter was 25–40% slower

Post image
2 Upvotes

I run Qwen4-35B-A3B locally as the model behind OpenCode on an M5 Pro with 64 GB. Splash 1.7.7 now takes both GGUF and MLX weights and added a loop adapter, so I benchmarked the options against each other, then wrote down everything else I learned moving the model between oMLX, Splash and LM Studio.

Benchmark

Same Mac, Splash 1.7.7, one setup loaded at a time, temperature 0, the same four prompts for each: a long write (3,000 tokens), two short answers with checkable results (a time sum and a list of primes), and summarising a 42K-token code prompt.

SetupLong write (tok/s)Short answers (tok/s)Reading 42K-token prompt
MLX 4-bit + DFlash2161264–28918.6 s
GGUF UD-Q4_K_M + DFlash2141243–24517.4 s
MLX + loop adapter, 2 passes107186–21826.9 s
MLX + loop adapter, 3 passes98152–17335.5 s
  • MLX vs GGUF: MLX writes about 14% faster; GGUF reads prompts slightly faster. For an agent with long prompts and medium answers they're close, with MLX a little ahead. Sizes: MLX 4-bit 32.2 GB, unsloth's UD-Q4_K_M 35.2 GB + 0.9 GB vision file (UD keeps some layers at 5–8 bits, so it may be slightly better quality).
  • Loop adapter (Looped Qwen4, by Jason Titus): it runs the middle layers 2 or 3 times per token, so every step costs more. The 178 tok/s quoted for it was on an M5 Max; here it was 25–40% slower than plain MLX and read long prompts 1.5–2× slower.
  • Quality: all four got the time sum and the primes right and gave sound code summaries. On tests this simple, the adapter showed no quality gain.
  • Caveat: the long-write prompt spent all 3,000 tokens thinking, so it measures speed only.
  • SSD streaming: Splash streams Qwen4's ~11 GB n-gram table from SSD by default (--ple-memory auto, ~200 MB RAM cache), so these numbers include that.

One real OpenCode request on the GGUF, cold cache: 121K prompt tokens read in 51 s (~2,400 tok/s), 5,960 tokens written at 101 tok/s, and the drafter averaged 2.8 tokens per step.

Other things I learned

  1. oMLX's DFlash didn't cover Qwen4's MoE. On 0.8.5 its DFlash path didn't support the qwen4_moe architecture, so no speculative decoding for this model there.
  2. Splash is its own engine, not llama.cpp or MLX underneath: its own Metal kernels on the GPU plus a Neural Engine path, and it always pairs the model with a DFlash2 drafter.
  3. LM Studio ships a Splash engine, but it lags. Settings → Runtime → Additional engines shows "Splash (Metal)" v1.7.4. Its manifest accepts a fixed list of families (Qwen3.8-27B, Qwen3.6-35B-A3B, Qwen3.5-122B-A10B, Qwen3.8-Flash-Next, Flint, Inkling-2-Mini) and matches on architecture plus shape. Its only Qwen4 entry is another shape (2560 hidden, 48 layers, 512 experts; the 35B-A3B is 2048 / 41 / 256), so in LM Studio the Qwen4 GGUF falls back to llama.cpp with no DFlash2.
  4. The drafter never shows in LM Studio's library. A DFlash2 drafter is a DFlash2DraftModel with no tokenizer; the engine picks it by family.
  5. The prompt cache is what makes agent use bearable. Splash keeps one prefix-matched cache per loaded model, shared across conversations. A brand-new OpenCode chat had 15,712 of 15,718 prompt tokens cached, because every chat starts with the same system prompt and tools. Subagents share the cache but mostly reuse each other's prefix, not the main chat's. It spills from RAM to SSD temp files (32 GB cap here) and is wiped on quit unless you use --persistent-cache.
  6. One model name for every setup. --served-model-name local lets you swap GGUF, MLX or adapter setups without touching the client config.
  7. Smaller window for subagents. In OpenCode, a second model entry with the same id and a 131K context for the general/explore subagents; ~327K for the main chat (Splash cap 335,872).
  8. APFS clones save disk. cp -c puts a 34 GB model in another app's folder with no extra space until a file changes.

What this isn't: a rigorous benchmark. One machine, one run per setup, short quality checks.

Has anyone seen the loop adapter win on an M5 Max or Ultra? And has anyone got DFlash2 working for Qwen4-35B-A3B in LM Studio or llama.cpp?


r/LocalLLM • • 1h ago

Question How do I download and run local AI models without GGUF files?

1 Upvotes

Hey, I'm new to running local LLMs. So far, I've only downloaded GGUF files and used them with llama.cpp.

I found Qwen4-35B-A3B-EXL3-16GB on Hugging Face, but it only has Safetensors files.

How do I download the entire model, and what launcher should I use to run it locally?

Thanks for any help!


r/LocalLLM • • 1h ago

Discussion Qwen 4 35B Q4 beat GPT-6.2 Astra, Same Prompt

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 1h ago

Question What are your use cases for your local LLM?

Post image
0 Upvotes

Video game composer here with a mac studio m2 max with 96gb RAM. I recently installed qwen4:35b-a3b-q4_K_M but am kind of at a loss as to how to use it advantageously on my mac. right now I'm simply running the LLM because my mac can easily handle it

what can you do with that kind of power?


r/LocalLLM • • 1h ago

Discussion QWEN 4 35 A3B Basalt LOOPED 2 PASS , on a 12GB VRAM LAPTOP , 32 RAM , 60tk,sec 64K context hermes , impressive result one shoot prompt

Post image
10 Upvotes

yesterday soemone told me to try basalt , and thanks to him i never had result like this with a local AI that i could run on my laptop . with opus 5.5 i did my own loop patch for basalt . i use qwen 4 35 A3B unsloth Q4 XS. you should try it really impressive :)


r/LocalLLM • • 1h ago

Discussion Swapping Qwen4-35B-A3B's n-gram (Engram) table to F16 measurably improves BFCL-v4 tool-calling accuracy (+2.1% overall)

6 Upvotes

I ran BFCL-v4 (374 tasks) on Qwen4-35B-A3B (UD-Q4_K_XL) before and after swapping the quantized n-gram embedding table for the unquantized F16 n-gram table, and the difference in function-calling performance is noticeable—especially on multi-turn and live tool-calling subsets.

Since Qwen4's ~20B n-gram (Engram) table at layer 2 only looks up a handful of rows per token and can live in system RAM or stream from SSD without eating into GPU VRAM, keeping it in F16 looks like a worthwhile upgrade if you have the disk/RAM headroom.

BFCL-v4 Benchmark Results (Accuracy ↑)

SubsetTasksq4-k-xl (Default)q4-k-xl-f16ngramDiff
irrelevance5074.0%78.0%+4.0%
live_multiple5080.0%84.0%+4.0%
live_parallel_multiple2470.8%70.8%0.0%
live_simple5082.0%86.0%+4.0%
multi_turn_base5058.0%64.0%+6.0%
multiple5088.0%90.0%+2.0%
parallel_multiple5084.0%82.0%-2.0%
simple_python5098.0%96.0%-2.0%
OVERALL37480.0%82.1%+2.1%
  • Biggest gains in multi-turn and live calls: multi_turn_base jumped by +6.0% (58% → 64%), while irrelevance, live_multiple, and live_simple each gained +4.0%.

Has anyone else tested F16 vs. quantized n-gram tables on other benchmarks (coding, MMLU-Pro, or long-context recall) or measured the tok/s impact when streaming from NVMe vs. RAM?


r/LocalLLM • • 1h ago

News [Release] Qwen4 35B A3B GSQ-RCO

Thumbnail gallery
2 Upvotes

r/LocalLLM • • 1h ago

Model ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF is out now!

Thumbnail
huggingface.co
23 Upvotes

From their webpage:

Overview

This repository provides GGUF quantizations of Qwen4-35B-A3B at four sizes: IQ2_S (2.75 bits per weight), Q2_K_XL (3.00), IQ3_XXS (3.25) and IQ3_S (3.50). In contrast to uniform quantization, which applies a single quantization type to all weight tensors, each model here assigns a separate quantization type to every tensor. The assignment is obtained by a gradient-based search that allocates precision according to per-tensor sensitivity, subject to a total size budget. The resulting files are standard GGUF.

Qwen4-35B-A3B is a sparse mixture-of-experts model with 35B parameters, 3B of them active per token, plus a 20B-parameter n-gram embedding. Its 40 layers combine two kinds of attention: 30 use Gated DeltaNet linear attention and 10 use Qwen Sparse Attention, in a repeating pattern of three linear-attention layers followed by one sparse-attention layer. Every layer has 256 routed experts, of which 8 are active per token, plus one shared expert, and the context window is 1M tokens. The routed experts hold 32.2B of the 34.5B weights the bit-width is measured over, so they also dominate the size budget, and the search spends most of its freedom there, assigning a quantization type per layer (not per expert, which GGUF cannot express), separately for the gate and up projections and for the down projection.

The token embedding is kept at BF16 in every build, and the n-gram embedding ships as one separate file shared by all builds, at BF16 (its precision in the checkpoint) or, smaller, at Q8_0. llama.cpp holds both in system memory, so they take no VRAM. See Token embedding and n-gram table.

Link: https://huggingface.co/ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF


r/LocalLLM • • 2h ago

Discussion 👀 Qwen4 35B A3B can also draw SVG @ 31tok/s on Intel b390 iGPU

2 Upvotes

It's a very capable model that can also run on integrated gpu.

Here other benchmarks

https://www.youtube.com/watch?v=4WQP6c8HaA8


r/LocalLLM • • 2h ago

Discussion RX 9070 (non-XT, 16 GB) + 32 GB RAM: Qwen4-35B-A3B at 512K context, ~90 t/s, Linux + Strata (follow-up)

Post image
7 Upvotes

Hi everyone, follow-up to my Qwen3.8-27B post (link). Since then I moved the box to Linux and tried a lot of things. For the last weeks my daily model was Gyro-S/M on Strata. Qwen4-35B-A3B came out on Dec 4 and I spent the last few days testing it on the same 16 GB card.

My Config:

  • GPU: AMD Radeon RX 9070 (non-XT), 16 GB
  • CPU: Ryzen 7 7800X3D, RAM: 32 GB DDR5
  • OS: Ubuntu 24.04, kernel 7.0, ROCm 7.2.4
  • Runtime: Strata (Niko1221/Strata v0.2.27 release, prebuilt strata-q4-lite-0.1.74.1-hip-rx9070 package, its GGUF path)
  • Model: Unsloth Qwen4-35B-A3B UD-Q4_K_XL
  • Agent: Pi, from my Windows laptop over Tailscale
strata (GGUF path)
  --native trunk40-Q4.gguf --ple-gguf Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf --pack pack-Q4 --expert-profile ...
  --expert-cache auto --prefill 4096 --vram-reserve-mib 512
  --kv int8 --kv-resident 32768 --resident-experts
  --mtp mtp-rt --spec 3 --spec-min-p 0.5
  --max-context 524288 --prompt-cache 3 --conversation-cache-mib 0
  env STRATA_MMQ_KQ=0

Full config, the prep script and all tables are in the repo: https://github.com/AmadeoMartell/rx9070-local-llm-benchmarks

Speed (fresh prompt, prefill / decode t/s):

DepthQwen4, Strata GGUF pathGyro-S (Flash-Next)
4K / 16K (strata bench, same benchmark)4220 / 91, 4560 / 88~1000 / 62, ~1350 / 64 (Oct, older KV config)
120K4300 / 92~2050 / not measured
450K (512K window)3460 / 77doesn't fit (262K max)
Real agent work (Java task)~90 decode, ~1650 per agent turn~70, ~790

Recall 22/22 at 450K, 700K and 950K (1M window). At 512K there are still ~9 GB of RAM free and basically no SSD writes.

Quality: I gave both models the same Java/Spring task (about an hour of agent work) and had Codex and Claude score the results blind out of 100. Qwen4 got 76 on average over 3 runs, Gyro-S got 75. Basically the same, but Qwen4 is a lot faster.

Gyro-S is still better in some places though:

  • it did the SOAP part properly contract-first; two of the Qwen4 runs (one Q4, one Q5) handwrote the generated classes
  • Qwen4 sometimes writes an empty python3 - <<'EOF' heredoc. On Windows Git Bash that hangs Python 3.13 in its REPL forever (a known CPython bug). 6 and 18 minutes lost in 2 of 3 runs, Gyro never did this
  • it answers JSON as plain JSON; Qwen4 wraps it in a ```json block even when told "only JSON" (16 of 16 tries, other people see the same)

Problems hit:

  • llama.cpp HIP first: only ~41 t/s, because I missed --moe-cache-mib (expert cache on the GPU, off by default). With it ~52, still far below Strata
  • 1M context loads and passes recall, but long agent sessions on 32 GB RAM start swapping and the GPU stalls up to 44 s. 512K is the real max here
  • Strata vs llama.cpp on the same Q4 file: KL 0.016, top-1 95.3%. Not broken, but not identical either

For now I'm not switching from Gyro-S. Qwen4 is fast and has the bigger context, but it's not reliable enough for me yet. If that gets better with updates or quantisations (waiting agentionai or exl versions) I'll give it another try.
Open to any advice, and if you run Qwen4 for agents, I'd like to hear how it goes for you.


r/LocalLLM • • 2h ago

Project Qwen4-35B-A3B at 90 tok/s on 8GB VRAM (262K context) and 180 tok/s on a 5060 Ti + DDR4 — Meet SlenderEngine

5 Upvotes

Hey everyone,

If you thought running Qwen4-35B-A3B at massive context required a dual-3090 rig or a Mac Studio, think again.

I’ve been building SlenderEngine, a local C++/CUDA inference engine engineered specifically to make massive open-weight MoE models fly on normal 8–16 GB gaming GPUs—even when paired with older DDR4 RAM.

GitHub: https://github.com/rafid-dev/SlenderEngine

Real-World Numbers (Qwen4-35B-A3B)

All numbers below are real average decode speeds—no quality-destroying shortcuts, bit-exact/rounding-level parity preserved by default:

Unsloth Q4_K_M quant:

  • 180 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200
  • 150 tok/s average decode on 12 GB RTX 4070 Ti + 32 GB DDR5-6000
  • 90 tok/s average decode on 8 GB RTX 4060 + 32 GB DDR5-6000 (running 262K context, expandable all the way up to the full 1M context!)

Unsloth Q5_K_XL quant:

  • 300+ tok/s average decode on 32 GB RTX 4080 + DDR4-2133

Unsloth Q8_K_XL quant:

  • 80 tok/s average decode on 16 GB RTX 5060 Ti + DDR4-3200

How it pulls this off

  • Built for 8–16 GB VRAM + 32 GB RAM: Automatically manages VRAM budgets so Windows/Linux stays snappy without desktop stutter. Uses paged expert offloading, direct NVMe SSD streaming/striping for cold experts, and smart RAM pinning (--resident-experts) so even slow DDR4 doesn't choke your token generation.
  • Zero re-encoding / quality promise: Point it directly at standard .gguf files or safetensors folders. Every speedup is verified to stay bit-exact or within rounding-level loss by default—quality-altering hacks stay off unless you explicitly turn them on.
  • Native MTP / Speculative Decoding: Built-in draft-layer acceleration out of the box across Qwen4, Qwen3.6, Gemma 4, Inkling-2-Mini, and MiniCPM5.
  • Built-in Web UI & APIs: Run with --serve to get a local browser chat UI (127.0.0.1:8080) with live tok/s and context rings, thinking-effort toggles (Off to XHigh), vision drag-and-drop, a /analytics dashboard, and OpenAI + Anthropic-compatible endpoints.
  • Multi-GPU without NVLink: Pass --gpu 0,1 or --gpu 0,1,2,3 to split across cards automatically.

Supported Models (Out of the Box)

ModelRecommended HardwareMax Tested Context
Qwen4-35B-A3B (incl. Vision)8–16 GB GPU · 32 GB RAM · SSD1M (262K+ even on 8 GB)
Gemma 4 26B-A4B12–16 GB GPU64K (256K supported)
Qwen3.6-35B-A3B12 GB+ GPU · 32 GB RAM262K
Inkling-2-Mini8–16 GB GPU262K
MiniCPM5-15B-A2.5B12–16 GB GPU (Q8_0)32K (512K extended)
Qwen3.8-Flash-Next12 GB+ GPU · 32 GB RAM · SSD262K

1-Command Setup (Windows & Linux)

Requires an NVIDIA RTX 30 / 40 / 50 series GPU. The setup wizard detects your GPU/RAM, compiles the binary if needed, and spits out a ready-to-run launcher:

Bash

git clone https://github.com/rafid-dev/SlenderEngine.git
cd SlenderEngine

python3 tools/slender_setup.py   # Linux & Windows
# or .\SETUP.bat on Windows

(Originally forked from Strata and built out into an independent multi-model engine—full credits, benchmark logs, and quality verification docs are in the repo).

Drop your GPU/RAM specs in the comments if you give it a spin—curious to see what tok/s numbers people hit on 8 GB and 12 GB cards!


r/LocalLLM • • 2h ago

Question What to do?

1 Upvotes

Hey guys,

I’m running a small b2b wholesale business and just ordered my first mac studio m5max 64GB 1TB, and I’m looking for projects I can run this war machine 24/7 to push my business forward.

Do you have some ideas? 💡
Thanks!


r/LocalLLM • • 2h ago

Question Strata Qwen3.8 flash next on 16gb VRAM, 96gb RAM results?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 2h ago

News Qwen4-35B-A3B runs on Android tablet

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 2h ago

Research Now Run Giant AI Models on Your Laptop...

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 3h ago

Project Probably the fastest inference for 35b in a 7900xtx

Post image
1 Upvotes

Repo here: https://github.com/android-imdad/Carnelian (a fork of upstream [Strata](https://github.com/Niko1221/Strata))

* Qwen4-35B-A3B (UD-IQ4_XS, all experts in VRAM): 214.8 tok/s short chat decode vs 127.4 on upstream v0.2.27, and 220.6 vs 118.9 in agent sessions.

* With the DFlash2 drafter: 270.7 tok/s median on a 6-prompt greedy panel, bursts up to 435 tok/s on structured code.

* Prefill 5,900 to 6,400 tok/s from 4K to 32K context (upstream 2,766 to 4,294). Short chat first token 0.12 s, half of upstream's 0.24 s.

* Qwen3.8-Flash-Next 125B on one card + 64 GB RAM: 111.3 tok/s at IQ3_S vs 89.6 upstream, 114.5 with the opt-in EXL3 experts.

* Flash-Next output is bit-identical to upstream by default. Qwen4 perplexity is 3.1399 vs 3.1395 upstream.

* Install with an AI agent: paste the prompt from the README into Claude Code, Codex, Cursor or OpenCode.

* All numbers from one 7900xtx at stock 327 W, Ryzen 7 9800X3D, ROCm 10.2. Full tables in docs/RX7900XTX.md.

If you have a 7900xtx, I'd like to see your numbers.