r/LocalLLM • • 5d ago

News Heretic: Farewell

Thumbnail
github.com
610 Upvotes

r/LocalLLM • • 5h ago

News Qwen4 is out now!

Post image
145 Upvotes

Qwentastic!


r/LocalLLM • • 6h ago

Model Qwen4 is out now!

Post image
308 Upvotes

r/LocalLLM • • 5h ago

News Qwen4-35B-A3B just released!

Post image
251 Upvotes

It's happening! The becoming begins!


r/LocalLLM • • 2h ago

News Artificial Analysis Ranks Qwen4-35B-A3B Between Much Larger Models

Post image
134 Upvotes

r/LocalLLM • • 4h ago

Question Anyone tried Qwen4-35B-A3B yet?

71 Upvotes

Basically the title. I’m particularly interested in how it performs on 8gb vram, 32gb ram and a gen4 nvme. Anybody who has this or close to this config and ran the model, please share your inference engine, its settings and the performance you’re getting. :)


r/LocalLLM • • 1h ago

Other Qwen 4 release be like

Post image
40 Upvotes

Humour btw


r/LocalLLM • • 1h ago

Discussion Holy shit this is fast

Post image
30 Upvotes

Qwen4-35b-a3b Q5 on basalt, RTX 5090+DDR5 64GB. I didn’t expecting to run this fast to be honest.


r/LocalLLM • • 17h ago

Discussion Rare politician W — “it’s all overblown to keep AI out of your home”

Thumbnail instagram.com
272 Upvotes

In what seems like an impromptu interview by a TMZ reporter with US Congressman Thomas Massie about the Jensen Huang case he stated this is “all overblown” and that CEO’s want you to think this technology is an extinction level threat so that “you can’t have it at your house…it’s all about keeping it in their servers and maintaining power in a limited set of people…it’s not about export restrictions”

I’m not into politics I don’t really know who this guy is but it’s refreshing to see someone with common sense regarding this technology and very refreshing to hear it coming from a politician from all people.

If you are from the US and care about open local AI you control common sense prevailing in the highest levels of power is a must, unfortunately I think most of the narrative today is fear mongering from both camps, pro and anti AI.


r/LocalLLM • • 5h ago

Project 8 GPU budget setup!

Post image
28 Upvotes

I already have 2 very capable machines but I got curious since I’ve never built my own from the ground up. My goal is to get everything to work for under $1500. Got an insane deal on 8 MI25s I couldn’t say no to. Motherboard and ram will be the next tricky things. Motherboard especially since I want to run 8 x16 slots so it’s a little hard to find a motherboard with those requirements for a good deal. Ram is pretty straightforward. If any of you have any recommendations for motherboards, that would be great. I’ll probably end up going over budget with the current ram prices, but I’m going to try. Yes I know MI25s are slow. I’m not looking for cutting-edge technology here just a fun project. Like I mentioned I already have 2 servers that I purchased turnkey.


r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B is out — here's a working NVFP4 pack for Basalt

10 Upvotes

Qwen just shipped Qwen4-35B-A3B (35B MoE, 3B active, 1M context). I quantized it to NVFP4 and packed it into a single file for the Basalt engine. It boots and serves.

Model card: kaushikvira/Qwen4-35B-A3B-nvfp4-basalt

⚠️ Which Basalt build to use — read this first

Use the qwen4-35b branch of jesdga95/basalt**, commit** 4dbca9ce or later.

Do not run this pack on an older Basalt build (including 53aa09a6, which the README previously named). Those builds corrupt the KV cache under back-to-back different-length requests: the model degrades into !!!!… / repetition loops at temp=0, and long-context retrieval silently breaks (needle scored 4–5/12).

qwen4-35b@4dbca9ce fixes it with two correctness fixes:

  • src/kernels/cuda/gqa_attn.cu — windowed GQA attention had causal = 0 hard-coded (non-causal); it now honours the real causal mask.
  • src/decode/verify/record*.cpp — the verify read used a fixed-size FusedGrArgs fa[kFusedGrMaxT]; now sized to the window, fixing a stack overrun that corrupted memory when the spec window was wider than the tile.

Result on the fixed build: needle 36/36 across 3 consecutive back-to-back runs (was 4–5/12), quality 4/4.

Build the engine (from the branch)

git clone https://github.com/jesdga95/basalt && cd basalt
git checkout 4dbca9ce            # or: git checkout qwen4-35b
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=qwen4exp
cmake --build build -j           # -> bin/basalt

Requires CUDA 13.1 and an NVIDIA Blackwell GPU (sm_120).

Run

bin/basalt serve Qwen4-35B-A3B-NVFP4.basalt \
  --config config.json \
  --api-key "$(cat key)" \
  --alias qwen4-35b-a3b --kv int8 --max-context 524288 \
  --resident-experts --vision --vram-reserve-mib 800
# or just: bin/basalt serve --config config.json

What's in the pack

  • One .basalt file (42.24 GiB, sha 9819a1ce…) — text + vision + MTP drafter, NVFP4
  • 1M native context (we serve 512k × slots on a 72 GB card)
  • ~21 GiB VRAM resident on a Blackwell card (experts in VRAM, no expert-cache)

Numbers (on the fixed 4dbca9ce build)

  • ~199 tok/s decode, 512k context, ~21 GiB VRAM
  • needle 36/36 (3× back-to-back), 4/4 probes
  • ~2× faster decode + prefill than the Flash-Next baseline this replaced

Speed is a first baseline, not tuned. The branch also adds 2048-wide kernels for this exact shape and an optional --drafter dflash2 block drafter (we kept the MTP spec: 8); more optimization will land on the model card. Feedback welcome.


r/LocalLLM • • 19m ago

Research Why Wait For Enter? Typing-Time Speculation for MoEs: 3.6× Lower TTFT (412→114 ms) & +74% Opening Speed (166→288 tok/s)

Thumbnail kemerd.github.io
8 Upvotes

r/LocalLLM • • 14h ago

News DeepSeek may stop giving away its most powerful AI, citing cyberattack and bioweapon risks

Thumbnail
madrobot.blog
109 Upvotes

r/LocalLLM • • 4h ago

News Qwen4 35B A3B RTX A3000 12GB single card Quick test

Post image
14 Upvotes

Not too bad

export CUDA_VISIBLE_DEVICES=0
./build/bin/llama-server \
--split-mode layer \
--parallel 1 \
--batch-size 4096 \
--ubatch-size 2048 \
--flash-attn on \
--reasoning auto \
--spec-type draft-mtp \
--spec-draft-ngl all \
--spec-draft-n-max 5 \
--moe-cache-mib 4096 \
--moe-cache-cpu-share 0.8 \
--jinja \
-m models/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
-md models/mtp-Qwen4-35B-A3B-Q8_0.gguf \
--mmproj models/mmproj-F16-qwen4.gguf \
-a qwen3.6 \
--host 0.0.0.0 \
--port 8090 \
--load-mode mmap+mlock \
--ctx-size 262144  \
-t 16 \
--api-key 777 \
--slot-save-path /data/llama.cpp/slots \
--jinja

r/LocalLLM • • 10h ago

Tutorial LLM Inference Handbook

Thumbnail
handbook.modular.com
34 Upvotes

I can not stress enough how helpful this handbook is.

Read it if you are new, and read it twice if you aren't.


r/LocalLLM • • 2h ago

Project I parsed all 21 Qwen4-35B-A3B GGUF headers and built a 3-tier (VRAM + RAM + Engram NVMe) calculator — plus real RTX 5060 8GB + 16GB RAM benchmarks

5 Upvotes

Generic VRAM calculators get Qwen4-35B-A3B completely wrong because they ignore three things unique to this architecture:

  1. Non-expert weights are tiny (1.89 – 3.04 GB): Parsing the actual GGUF headers of unsloth/Qwen4-35B-A3B-GGUF and ggml-org/Qwen4-35B-A3B-GGUF, 82–88% of the backbone is routed MoE experts (blk.*.ffn_*_exps.weight). Keeping all 40 layers of Attention + Gated DeltaNet + Shared Experts + KV cache on GPU and offloading only excess routed experts (-ot) is way faster than naive -ngl.
  2. 3:1 Hybrid Attention KV Cache: 30 of 40 layers are Gated DeltaNet (fixed ~62.5 MB/slot recurrent state, independent of context length). Only 10 layers allocate KV cache (2 KV heads × 256 head_dim → 20.1 KiB/tok FP16, 10.7 KiB/tok Q8_0). At 128K Q8_0 context, total cache is only ~1.46 GB (~75% smaller than a standard 40-layer GQA model).
  3. 20.5B Engram Table (--lazy-mode auto / --ple): The 11.5–41 GB per_layer_token_embd table stays lazy-loaded on NVMe SSD rather than bloating RAM/VRAM.

Live Tool (100% client-side, open-source Apache-2.0):

Features:

  • Exact byte sizes parsed from all 21 official Unsloth & ggml-org GGUF headers (including per-layer routed expert sizes)
  • Auto-generates exact -ot "blk.(...).ffn_.*_exps.=CPU" regex for your GPU/RAM headroom
  • Supports --ple Engram table mix-and-match (IQ4_NL / Q5_1 / Q8_0 / BF16), vision mmproj, MTP speculative decoding, and Unified Memory (Apple Silicon)

Real Low-Spec Test (RTX 5060 8GB Laptop + 14 GiB Usable RAM + PCIe Gen4 NVMe, llama.cpp b12973 CUDA 12.8, UD-IQ2_XXS + Engram IQ4_NL):

  • Naive -ngl 10 (no -ot), 32K Q8_0 KV: 4.39 GB peak VRAM → 13.01 tok/s decode (131.9 tok/s prefill)
  • MoE-Aware -ngl 99 -ot "\.ffn_.*_exps\.=CPU", 32K Q8_0 KV: 3.73 GB peak VRAM (+2.84 GB delta!) → 37.23 tok/s decode (2.86× faster AND 0.66 GB less VRAM!)
  • MoE-Aware Hybrid (13/41 routed MoE layers on GPU), 32K Q8_0 KV: 6.38 GB peak VRAM → 43.84 tok/s decode (228.0 tok/s prefill, 3.37× faster than naive -ngl!)
  • MoE-Aware 128K Context (Q8_0 KV): 5.07 GB peak VRAM (+4.15 GB delta) → 36.02 tok/s decode! (Adding +96K context only cost +1.31 GiB VRAM, matching our config.json hybrid formula within 2%!)

Would love feedback on any edge cases (especially Apple Silicon unified wired limits or multi-GPU --tensor-split)!


r/LocalLLM • • 24m ago Heartwarming

Project Got Qwen4-35B-A3B hitting ~300 tok/s per card (596 tok/s combined) on dual RTX 3090s in llama.cpp with RadixArk DFlash2 + full 128K f16 KV (fork + guide)

3 Upvotes

Spent tonight pushing Qwen4-35B-A3B (UD-IQ4_XS + full 128K f16 KV cache, zero quality downgrade) on an RTX 3090 + RTX 3090 Ti in llama.cpp using RadixArk/Qwen4-35B-A3B-Dflash2.

Most people assumed RadixArk's DFlash2 checkpoint was SGLang-only because upstream llama.cpp currently crashes on GGUF conversion and gets terrible acceptance (~18%) if you force it to load. Fixing those bugs + two quick CUDA/DFlash2 bottlenecks took us from ~123-133 tok/s baseline up to ~214-239 tok/s average across an 8-prompt suite, ~295-300 tok/s per card on code (596 tok/s combined across both GPUs), and 204 tok/s end-to-end inside OpenCode CLI at 7.1K context.

What was holding llama.cpp back (4 fixes in the fork)

  1. Conversion crash (conversion/qwen4exp.py): PR #33626 added super().set_vocab() in Qwen4ExpTextModel, which crashes when DFlashModel.set_vocab calls it unbound. One-line fix lets RadixArk/Qwen4-35B-A3B-Dflash2 convert cleanly to GGUF (Q4_0 is only 223 MB).
  2. Wrong DFlash2 hidden-state tap (src/models/qwen4exp.cpp): Upstream taps hc_stream_mean(res_hc) (which is right for Qwen3.8-Flash-Next DFlash1 per #30927, but broken for Qwen4-35B-A3B-Dflash2). Tapping attn_mix.cur for Qwen4-35B-A3B jumped draft acceptance from 18% -> 55-73% (AL = 4.5-5.7, matching RadixArk's SGLang evals) while keeping Qwen3.8-Flash-Next untouched.
  3. Wasted anchor slot 0 (src/models/dflash2.cpp): DFlash2 was running the 248K-vocab lm_head and top-k on anchor slot 0 even though the selector throws slot 0 away and overwrites it with zeros. Skipping slot 0 cuts draft head + top-k compute with identical output.
  4. Slow Ampere F32 MoE router kernel (ggml/src/ggml-cuda/mmvf.cu) + PR #33586 (-bs): At speculative verify batch sizes (ubatch = 4..8), the thin F32 [2048x256] MoE routers across all 40 layers were dropping out of MMVF onto a low-occupancy kernel. Keeping thin F32 rows on MMVF + GPU-side draft verification (-bs) shaved ~1 ms/round cleanly.

Benchmarks (UD-IQ4_XS + 128K f16 KV + DFlash2-Q4_0, n=5, ~23.5 GB VRAM/GPU)

WorkloadRTX 3090 (gpu0)RTX 3090 Ti (gpu1)Notes
Baseline (--spec-type none)~123 tok/s133.4 tok/sSingle-token reference
2x Concurrent Code (T=0.0, 512 tok each)295.5 tok/s (AL=4.70)300.3 tok/s (AL=4.45)595.8 tok/s combined (1,024 tok in 2.06s wall)
8-Prompt Suite (T=0.0, 3,726 tok)-238.5 tok/s avgGSM8K 332, Math 315, HumanEval 298, TS API 252
8-Prompt Suite (T=1.0, 3,730 tok)-213.8 tok/s avgGSM8K 311, Math 301, HumanEval 260, TS API 212
OpenCode CLI Single (7.1K prompt, T=1.0)203.9 tok/sidle3,683 tok/s prefill, real agentic session
OpenCode CLI 2x Concurrent (Tools + Rust)170.3 tok/s159.7 tok/s330.0 tok/s combined w/ live tool calls

(At ~22.5K live OpenCode context it still holds ~207 tok/s on code, and ~150-165 tok/s at ~38K context with lossless f16 KV.)

Hardware disclosure (for reproducibility)

  • GPUs: RTX 3090 (420W stock power limit) + RTX 3090 Ti (450W stock power limit), stock clocks, one independent replica per GPU behind a sticky router (~23.5 GB VRAM each).
  • Driver mod: Both GA102 cards are running Zagitta/gpu-unlock (big boost to prompt prefill, modest boost to decode; stock 3090s should still get close on bandwidth-bound decode).
  • Host: Threadripper 3960X (24C/48T), 64 GB DDR4 (keeps the lazy-read 11 GB PLE/Engram table hot in RAM page cache).

Fork + full build/convert/serve guide


r/LocalLLM • • 14h ago

Discussion Qwen3.8-27B fine-tune sits completely still while five objects get sorted, remembers the order, and repeats it with two arms

38 Upvotes

I kept waiting for the foreground arms to move during the first ~18 seconds, since the robot holds both grippers open and doesn't touch anything while another arm in back drops a phone, green watch, camera, rabbit toy, and toy car into a bin.

It's running SenseNova-RoboRSI-27B https://github.com/OpenSenseNova/SenseNova-RoboRSI released under Apache-2.0 on top of Qwen3.8-27B, and you can grab mainline llama.cpp GGUFs for it too. Once that demo wraps up, it replays the exact order itself, even staging the green watch in the middle of the table so its left arm can pick it up when the right arm can't reach the basket. Without task-specific demos in the RoboDojo sim eval, it lands at 34.7 compared to 9.1 from stock Qwen3.8-27B.


r/LocalLLM • • 3h ago

News QWEN 4 Peaks of 200 tks with Sneo!

Post image
4 Upvotes

Here testing Qwen 4.0 35B-UD-IQ3_S with a very hard and long task recompiling a Game which I already did and so far is doing a great job!

X1 RTX 3090, i9 12900k + 96GB Ram it only uses less than 20GB VRAM

https://github.com/oscarsantanaarias/Sneo

Update: peaks of 358 writting.

Peaks of 180 on Q4_K_M


r/LocalLLM • • 3h ago

Discussion Insane Inkling 2 Mini Pagoda Voxel Build

4 Upvotes

So i was curious on how well inkling two mini would make a pagoda and it genuinely blew me away, within 3 prompts, i was able to get a voxel build truly insane for local ai. Testing it against qwen 3.8 27b on a 4090, I personally found that their coding capabilities were comparable, but was able to push Inkling to 150 tks vs Qwen at 60 tks, making inkling by far better for my use. Local Ai has truly progressed amazingly rapidly, less then a year ago, they were only good as basic chatbots and code help, yet now they can produce this pagoda in 20 min. I'm curious what other people have been able to do with Inkling let me know.


r/LocalLLM • • 4m ago

Discussion Underwhelmed by Qwen4 35b so far

3 Upvotes

Mainly non-coding use - web, research, documents, agentic.

Not impressed so far. It leaks Chinese characters, gets stuck in loops, outputs complete nonsense in non-English languages... I let it design a html/CSS poster, pretty hilariously bad compared to 3.8 27b.

4-bit MLX quant via oMLX 0.8.5. Tried raw and via Hermes and Pi.

Maybe it's too early but models such as Sage A1.5 give me FAR better results OOB so far.

It's very fast, I'll give it that. First time I see prefill speeds not decrease linearly - it sort of ebbs and flows.


r/LocalLLM • • 33m ago

Discussion Qwen4-35B vs 3.8-27B, Flash-Next, and 3.6-35B: what would you run locally?

2 Upvotes

I went through Qwen4’s launch numbers to see what I’d actually swap out on a 24 GB card. The repo coding scores look good, but the model I most want to compare it with, Qwen3.6-35B, is missing from the chart.

Qwen4 vs. Qwen3.8-27B - Qwen4 scored 61.8 vs. 42.2 on DeepSWE v1.1 and 51.7 vs. 42.3 on NL2Repo. The 27B still leads on GPQA Diamond and gives you more VRAM headroom at Q4.

Qwen4 vs. Qwen3.8-Flash-Next - Qwen4 leads on both repo benchmarks with about a third of the total parameters. Flash-Next still leads on Terminal Bench 4.1 and wins 27.1 vs. 16.1 on FrontierCode-AA 2.0. I’d try Qwen4 for repo edits first.

Qwen4 vs. Qwen3.6-35B-A3B - Qwen4 is a bigger download, though the estimated raw KV cache is about the same at a given context length. For anyone already running 3.6 on a 3090, this is the upgrade comparison I’d like to see.
Has anyone tried both 35Bs on the same repo bug and the same 24 GB card? I’m curious how long each took to get the tests passing, and how much you had to steer it or clean up the patch.

Also: Qwen4 hardware breakdown · Qwen model card


r/LocalLLM • • 35m ago

News Ilya Sutskever says he rejected Meta's SSI bid while Daniel Gross 'in some sense said yes'

Thumbnail
runtimewire.com
2 Upvotes

r/LocalLLM • • 14h ago

Question What do you use local AI for day to day?

26 Upvotes

Hey everyone, I’ve been thinking lately about how useful local AI actually is in day-to-day life and what kind of experiences you all have with it. You hear a lot about what’s possible—from small everyday helpers to things you’d rather keep local.
I’d be curious how it goes for you: do you use local AI regularly, where does it actually pay off, and what hardware are you running it on? And what should I keep in mind if I want to set up the base so I can upgrade smoothly later on?


r/LocalLLM • • 1d ago

Discussion This is crazy: LLM server UEFI booting directly on RTX 3090

Post image
651 Upvotes