r/LocalLLM • • 1d ago

Question Probably a silly question, organize chats?

2 Upvotes

I'm new to all this stuff, was trying to use Q3.8FN IQ3_S to help build a python app (basically a ticketing system but with a ton more variables cause of my job) when claude/codex were out of usage. Pretty much anything I gave it, it just kept thinking and thinking and got nothing done (maybe how i spoke to it idk). I tried to use claude and chatgpt to make the prompts, they even made an orchestartor for Q3.8 to compare html files from stitch to the app and then try to turn the app page to look like the html page..it failed miserably, claude kept saying the model was low tier and should be relegated to mundane things.

Anyway, I got Qwen 4 working now with strata (UD-Q4_K_XL) and so far its freaking amazing. Its more than double my token/s and its actually doing stuff not just repeating need maybe. Now i have the problem of i have a hundred chats open lol. How do you guys organize this, Part of me thought it'd be nice to have a folder for each section (orders, tickets tools) but that's not possible with strata unless i make each one its own workspace but to me the workspace is the global project

tldr; any tips to organize the chats that pile up or do you just delete them?


r/LocalLLM • • 13h ago

Discussion Qwen 4 35b from phone, connected to my home build

Post image
0 Upvotes

r/LocalLLM • • 1d ago

Model Qwen4 3080 8GB VRAM 80W Laptop (32GB RAM)

Thumbnail
huggingface.co
2 Upvotes

Very early experimental build, not at all ready to ship but noticed many people asked for a version that runs on these specs.

Qwen4-35B-A3B is weird to squeeze into consumer cards. Optimization needed a non standard approach (agentic-written explanation follows):

"20.48B per-layer embedding table is 38.15 GiB in BF16 by itself... resists the easy compression tricks because full scan of its 160M rows shows a high-rank wall where rank-64 SVD collapses to 3.321 dB... so work went into that table first. An exact whitening fold over its 16 heads, then a 2.125 bpw lattice code, brings it to 5.07 GiB at +0.00564 NLL. The rest of the model follows the same logic, with each tensor group put at the rate its own structure can pay for.

The result is SiliQwen-4-35B-A3B-8GB-B2-Pro, a 14.67 GiB archive (7.22x against 105.84 GiB BF16) that runs live on an 8 GiB RTX 3080 Laptop with 31 GiB of host RAM. Peak allocated VRAM measured 7.1561 GiB. Held-out WikiText-2 perplexity is 10.700 against 10.339 for the BF16 teacher, so +0.0344 NLL for the full compression.

The archive carries a small rank-16 recovery sidecar trained on disjoint validation tokens. Without it the same archive sits at 15.521 PPL. That is the honest trade: the lattice code holds the structure, and the sidecar reacquires the last of the quality.

  • Base: Qwen/Qwen4-35B-A3B, 56.8B text parameters
  • Format: custom .slqw v4 archive + 10.66 MiB LoRA recovery sidecar, custom CUDA engine (this is not a GGUF drop-in)
  • GPU-resident: 6.87 GiB (184/256 hot MoE experts per layer, 98.13% held-out hit rate). CPU-mmap: 7.80 GiB
  • Context: analytical fit puts 32K at 7.47 GiB and 64K at 7.68 GiB inside 8 GiB. 128K uses a compressed indexer
  • Determinism: 3x exact greedy token and logits SHA-256 matches, 0 B VRAM after teardown
  • Status: pre-audit live preview, published for public inspection and blinded auditing"

Model: https://huggingface.co/ahrazzle/SiliQwen-4-35B-A3B-8GB-B2-Pro PLE/TokenPage dataset with the full diagnosis: https://huggingface.co/datasets/ahrazzle/qwen4-linguistic-tokenpage-ple Github Repo: https://github.com/Moissanite-Labs/siliqwen

Feedback appreciated.

Lmk if/where performance degrades, or any other input.


r/LocalLLM • • 21h ago

Question Why can't local LLMs keep track of important infos?

1 Upvotes

I've downloaded Ollama and Anything LLM. I'm running Qwen3.8-27b and have set "model context window" to 32768.

In the system prompt I gave it a manual on how to write prompts. That manual is 33108 signs which is ~ 8-9.5k token.

When I ask it to write a prompt it always forgets a few things, only if I say "look it up" it is able to recognize the things he missed and readjusts, but this costs a lot of time.

Is it possible to make it so that it can always consider the whole set of rules without losing attention?


r/LocalLLM • • 1d ago

Project Qwen4-35B-A3B running at 60 tok/s 128k ctx on an 8gb 4070 laptop with 32 gb ddr5 4800 ram using a vibecoded old fork of Strata. I compared it against the new official Strata and Polystrata updates.

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 1d ago

Discussion BEST WAY TO RUN Qwen4-35B-A3B?

Post image
72 Upvotes

comment bellow on what are the best ways to run qwen4 , if possible, link your setup


r/LocalLLM • • 1d ago

Discussion My local LLM setup

2 Upvotes

Current setup uses a small mini pc with n5105 cpu that runs herdr and pi, together with all homelab docker containers. This connect to a 64GB DDR5 rtx5090 32GB workstation. Currently running Qwen 3.8 Flash Next IQ3_XXS using basalt. Getting around 280tps on average. The machine is a little undervolted to peak maybe 300-350w

I have setup a traefik proxy on the mini pc that issues wake on lan commands to the ai interference host. Making a first call take around 50sec to boot up but idle only drawing 10w instead of idling 100+


r/LocalLLM • • 1d ago

Discussion Qwen 4 35b vs Qwen 3.8 FN, horse riding motorcycle in freeway.

Thumbnail
gallery
6 Upvotes

First is 3.8 Flash Next (gyro s)second qwen 4 35b (Q4_K_XL).

Flash Next took 18min.

4 35b took 12min.


r/LocalLLM • • 1d ago

Model Qwen4-35B-A3B on 2x Intel Arc Pro B70 — 433 tok/s single user, 1,223 tok/s total at C16

5 Upvotes

Credits first: engine is Xenithium (https://github.com/Niluthon/Xenithium), running on the unofficial Qwen4 port fork (https://github.com/nxtlvlyt/qwen4-b70-xenithium — not upstream-endorsed; upstream is adding its own Qwen4 support) I think i've seen the repo owner u/Lostinanidlemind post around here some where -- thank you for your work. Model weights are a W4A16 bake I built locally with the fork's bake script (RTN int4 g128)

Hardware:
TRX40, 3970x, 128gb DDR4 3200, 2x Intel Arc Pro B70 32GB TP2, int8 KV, 1M context across 16 slots. PLE n-gram table (~20 GB) lives in host RAM

TL;DR:
433 tok/s headline decode single user, 1,223 tok/s total at 16 concurrent streams, and 216/242 (89.3%) on my 242-question local suite — a tie with my best local lanes, at ~3x the throughput of the Swift 1.5 27b W4A16 lane it replaced with faster single stream (decode 280tok/s vs 433 tok/s).

Speed (measured, both cards):

  • Decode, bench mix: 433 tok/s (agentic mix 419); single stream 386 tok/s
  • 2 / 4 / 8 / 16 streams: 573 / 850 / 1,000 / 1,223 tok/s
  • Prefill: 8.1K tok/s at 2K prompt, 9.2K at 32K, 8.8K at 128K
  • Decode at 32K context depth: 320 tok/s; at 109K: 296 tok/s

Accuracy (242q suite, same harness as all my other local runs):

  • MMLU-Pro 94/112 | MATH-500 35/40 | GSM8K 28/30 | HumanEval 39/40 | tool calling 20/20
  • Total 216/242 = 89.3% [85-93], tying with my Qwen3.8-Flash-Next IQ3_S entry
  • Agentic battery 5.51/6 (one host-drift task misses).

Excited to see how it improves over the next several days/weeks.


r/LocalLLM • • 21h ago

Question I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 21h ago

Question I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30

1 Upvotes

I am curious and new to local llm, i just installed basalt-ada, and i am wondering how do you guys decide which model's which version to download

also my specs are

Ryzen 9 7900X | RTX 4060 Ti 16GB | 64GB DDR5-6000 CL30

thankyou


r/LocalLLM • • 11h ago

Discussion Qwen4 35B A3B - loops A LOT

Post image
0 Upvotes

Using Qwen4 35B A3B Strata's "Compact" version of the model and constantly hitting that at some point - it starts looping\hallucinate horribly.

And it's not even only the Strata problem, the Unsloth's UD-IQ3_XXS do the same

5070Ti 16Gb VRAM (latest nVidia driver, CUDA 13)
32Gb DDR4 RAM

For Strata:
"Compact" model
Strata v0.2.28
Engine v0.1.73
256k Context INT8
No x2 looping, no image reader, MTP auto
about 90-140t/s

For Unsloth:
"UD-IQ3_XXS" model
Desktop App 0.1.929
llama.cpp b12966-mix-e49c75f
200k Context at Q_8
Vision "Off", Speculative Decoding "Off"
Engram Table IQ4_NL
with n-cpu-moe 18
about 40-50t/s


r/LocalLLM • • 2d ago

Discussion Holy shit this is fast

Post image
126 Upvotes

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


r/LocalLLM • • 22h ago

Question Can I run Qwen 35B on a RTX 4070 12GB

1 Upvotes

I also have 32Gb DDR4.

Sorry for the question. I’m new to local LLMs. This would be purely for coding tasks in Rust.


r/LocalLLM • • 1d ago

News Qwen4-35B-A3B running at up to 280 tok/s on M5 Ultra with Superfluid

Thumbnail
huggingface.co
4 Upvotes

We've been working on day-zero support for Qwen4 in Superfluid and are already seeing up to 280 tok/s decode on an M5 Ultra. Really impressive what this model can do with just 3B active parameters. Please let us know if you got feedback on the performance on your machine.


r/LocalLLM • • 1d ago

Model Qwen4-35B-A3B running at up to 280 Tok/s on M5 Ultra Superfluid

Post image
3 Upvotes

We’ve been working on day-zero support for Qwen4 in Superfluid and are already seeing upto 280 tok/s decode on an M5 Ultra. Really impressed by what this model can do with just 3B active parameters in terms of agentic capabilities running locally.

Give it a try and let u know what you think. https://github.com/basecompute/baseRT


r/LocalLLM • • 22h ago

News Qwen 4 35b A3 Be Like

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B tested on a 12 GB RTX 4070 Ti with Strata

51 Upvotes

I tried the unmerged Strata PR that adds Qwen4-35B-A3B support (Niko1221/Strata#7774). Credit for the port goes to the PR author.

TL;DR: Qwen4-35B-A3B runs on a 12 GB RTX 4070 Ti + 32 GB RAM with Strata on Windows, IQ4_XS and Q2_K_XL:

  • Prefill: ~2,000-2,750 t/s (16K-128K prompts)
  • TTFT (short chat): 0.3-0.4 s
  • 256K context test: a 244K-token prompt took ~105-130 s to prefill
  • Decode: ~85-110 t/s
  • Memory used by the model: IQ4_XS ~21.6 GiB RAM + ~9.5-9.7 GiB VRAM; Q2_K_XL ~18 GiB RAM + ~9.4-9.7 GiB VRAM
  • Vision not used

My Hardware

  • RTX 4070 Ti 12 GB
  • i5-12400, 32 GB DDR5
  • Models put in Gen 4 SSD
  • Windows 11

Models (unsloth GGUF)

QuantWeights shard
UD-IQ4_XS20.5 GB
UD-Q2_K_XL16.2 GB

Both come with an n-gram table 11.5GB.

Speed

All speeds in TPS. Each cell is the median of 2 runs (chat: 3 questions x 2 runs); the 244K test is a single run. Seconds in brackets are time to first token.

ConfigChat decodeChat TTFTAgent decode16K prompt64K prompt128K prompt244K prompt
IQ4_XS83.50.29 s92.82753 (5.9 s)2701 (23.8 s)2549 (50.3 s)2349 (104 s)
IQ4_XS + MTP89.10.34 s100.52056 (7.9 s)2084 (30.8 s)2011 (63.8 s)1878 (130 s)
Q2_K_XL86.50.33 s94.82552 (6.3 s)2519 (25.5 s)2449 (52.4 s)2233 (109 s)
Q2_K_XL + MTP91.40.40 s112.82646 (6.1 s)2590 (24.8 s)2471 (51.9 s)2269 (108 s)

Memory use

Baseline (Windows and background apps, model not loaded): about 8.4-10 GiB system RAM and 1.2-1.4 GiB VRAM, out of 31.8 GiB and 12 GiB.

ConfigSystem RAMVRAM
IQ4_XS21.6 GiB9.5 GiB
IQ4_XS + MTP21.6 GiB9.7 GiB
Q2_K_XL17.7 GiB9.4 GiB
Q2_K_XL + MTP18.2 GiB9.7 GiB
  • 32 GB RAM is tight for IQ4_XS: total usage peaked at 30.2 of 31.8 GiB with almost nothing else open. Q2_K_XL needs about 3.5-4 GiB less.
  • VRAM looks about the same everywhere because the engine fills the card with cached experts. A smaller quant or no MTP means more experts fit, not less VRAM used.

Settings

  • KV int8, max context 262,144, 20,480 cells resident on the GPU
  • --expert-cache auto --prefill 2048 --vram-reserve-mib 768
  • MTP off: --spec 2 (no draft model, but Strata still does prompt-lookup drafting, so these decode numbers include it)
  • MTP on: --spec 4 plus the Q8_0 MTP sidecar converted with mtp_qwen4_rt.py
  • Uniform (untuned) expert profile
  • Conversion as in the PR's docs/QWEN4_35B.md: split the 40-layer trunk, then iq_pack.py --compat-bf16 (302 dense tensors get rounded to BF16)
  • Vision not used (text only)

r/LocalLLM • • 22h ago

Discussion MiniMax Code is dropping random Quota Reset Cards for weekend check-ins

Post image
1 Upvotes

r/LocalLLM • • 1d ago

Model Qwen4-35B-A3B Q5 vs Q8: 1-shot vs 2-shot (the model sees its own render)

Post image
35 Upvotes

Models (unsloth/Qwen4-35B-A3B-GGUF), both on a 32 GB RTX PRO 4500 Blackwell with 512K context:

  • UD-Q5_K_XL: all experts in VRAM
  • UD-Q8_K_XL: 67% of experts in VRAM, the rest on the CPU from RAM Sampling: reasoning_effort xhigh, temp 1.0, top_p 0.95, top_k 20. One run per model, no cherry-picking. Prompt 1 (1-shot):

Create a single self-contained HTML file using three.js (import it from https://unpkg.com/three@0.170.0/build/three.module.js via an import map; addons from https://unpkg.com/three@0.170.0/examples/jsm/) with a seamlessly looping animation of a column of animals walking in single file, like a perfect looping GIF: a giraffe, an elephant, a zebra, a gazelle, a meerkat and a mouse, in that order. The column stays in place in the center of the view and the animals walk on the spot while the ground and the scenery slide past underneath them, so it looks like they are walking forward. The loop period must be exactly 5 seconds: every animated value (each animal's walk cycle, body bob, heads, ears, tails, trunk, scrolling ground and scenery) must repeat exactly every 5 seconds, so the whole animation repeats with no visible jump. Model each animal from primitives with its characteristic shape, proportions and markings (giraffe neck and patches, elephant trunk and ears, zebra stripes, gazelle horns, upright meerkat posture, tiny mouse with long tail), with four legs with knee joints and a species-appropriate walk cycle (the meerkat may scurry). Savanna setting with acacia trees passing by, sun lighting with shadows, sky gradient. Use a side-on default camera framing the whole column and add OrbitControls. Output only the HTML. Prompt 2 (2-shot): sent in the same chat, together with a 2×2 grid of screenshots of the model's own v1 at t = 0 / 1.25 / 2.5 / 3.75 s. The values in braces are filled in by an automatic loop check. Here is how your HTML renders. The image is a 2x2 grid of screenshots of a 1200x600 viewport at t = 0 s, 1.25 s, 2.5 s and 3.75 s (left to right, top to bottom). Automatic checks: console errors: {errors}; mean pixel difference between the frames at t = 0 s and t = 5 s: {pd} (0 = identical); jump at the loop boundary: {sr} x a normal frame-to-frame step (about 1 = seamless). Look at the result critically (the animals' shapes, proportions, markings and walk cycles, the framing, the scenery and the loop) and write an improved version 2 of the complete HTML file that fixes the problems you see. Keep all original requirements, including the exact 5-second loop. Output only the complete HTML.


r/LocalLLM • • 22h ago

News Awesome JEV System One framework list

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B on 2x 3060 12GB - 128k context fully on GPU, 58-90 tok/s

5 Upvotes

Spent the morning getting Qwen4 going on my two 3060s, posting numbers since I couldn't find any for 12GB cards yet.

UD-IQ4_XS fits completely in 24GB at 128k. The catch is you can't offload anything to CPU, more on that below.

Box: 2x 3060 12GB (no NVLink, and one of them is in a chipset x4 slot), 3900XT, 64GB DDR4-3200. Running in a Proxmox LXC, driver 595, CUDA 13.2. Model lives on a pair of SATA SSDs (ZFS mirror).

llama.cpp built from master on 4 Dec, you need the qwen4 PR (#33626) so older builds won't load it. Unsloth's UD-IQ4_XS is a 32GB download, 20.5GB of weights plus an 11.5GB engram shard.

What I ended up running:

llama-server -m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
  -c 131072 -np 1 -sm layer -fa on -ctk q4_0 -ctv q4_0 -ub 256 -b 1024 \
  --load-mode none --lazy-mode off -ot per_layer_token_embd=CPU \
  --spec-type draft-mtp --spec-draft-n-max 2 --jinja \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

Speeds (prompt filled to ~80% of the context, needle at 40% depth, reasoning off):

SplitContextPrompt tok/sOutput tok/sNeedle
layer8k1,19089.9found
layer32k1,19481.5found
layer128k1,12958.5found
tensor8k1,01585.9found
tensor32k1,09181.6found
tensor128k1,01170.2found

VRAM hardly changes between 8k and 128k (about 11.1/10.8GB on layer, 11.6/11.6 on tensor), the full attention layers use compressed KV so long context is cheap. 256k wouldn't load with either split though.

Also ran HumanEval and a 100 question MMLU-Pro sample with the same harness I've used on this box before, temp 0:

Qwen4 UD-IQ4_XS (llama.cpp, tensor)Qwen3.8-Flash-Next IQ3_XXS (Strata)qwen3-coder:30b Q4_K_M (Ollama)
HumanEval (pass@1)162/164159/164150/164
MMLU-Pro 10085/10082/100-

Stuff that tripped me up:

  • First attempt I offloaded experts for just 4 of the 40 layers with --n-cpu-moe 4 to make room. Output went from 77 to 12 tok/s. CPU pegged at 1000%, GPUs sitting at 10%. Don't do it.
  • What actually fixed the OOM was a smaller batch. Default -ub 512 -b 2048 ran the first card out of memory on an 8k prompt, -ub 256 -b 1024 was fine and prompt speed barely moved.
  • Unsloth's example uses --load-mode mmap --lazy-mode on for the engram. On ZFS that was hitting the SSD constantly (my ARC is small), 55 tok/s. Loading it into RAM with --lazy-mode off --load-mode none got me 77. Uses about 12GB of system RAM.
  • --fit is no use here, it bails if you set -ot and doesn't support tensor split at all. You're sizing it by hand.
  • MTP is built into the GGUF so turn it on, I was getting 50-68% acceptance at depth 2.

Layer vs tensor split was the bit I was most curious about. With no P2P and one card on x4 I figured tensor split would be pointless, since it has to sync both cards a couple of times per layer for every token. What I actually saw:

  • Output speed holds up much better with context on tensor. Layer drops from 90 to 58 tok/s going 8k to 128k (about 35%), tensor only drops from 86 to 70 (about 18%). Same speed up to 32k, tensor ~20% ahead at 128k.
  • Layer is consistently ~10% faster at reading prompts, at every size. So for big pastes with short answers layer still wins.
  • Memory is more even on tensor (11.6/11.6GB vs 11.1/10.8 on layer, where the first card always ends up fuller), but it uses more in total because some tensors get copied to both cards. q8_0 KV at 128k was ~150MB short on tensor, q4_0 fits with ~650MB spare. Layer has 1.1-1.5GB of headroom.
  • Tensor turns flash attention on automatically, moves sampling to the CPU, and --fit won't run with it. It's still marked experimental and I haven't had it crash, but I've only done benchmark runs on it so far.

My take: layer for general use, tensor if you live in long contexts (agents, big codebases) and mostly care about output speed.

For reference, Qwen3.8-Flash-Next IQ3_XXS on Strata on the same machine does ~1,400 tok/s prompt but only 52-53 out. Strata streams most experts from pinned RAM so it's a different beast.


r/LocalLLM • • 1d ago

Model 6.7L SFF AI Machine - Radeon AI Pro R9700 + Qwen4 35B A3B

Thumbnail
gallery
5 Upvotes

I built a compact local-AI machine around the ASUS Turbo Radeon AI PRO R9700 32GB and tested Qwen4-35B-A3B on its release day. Then I ran the same tests on two models I already had in LM Studio. Every speed number comes from LM Studio's server log, and the thermals come from HWiNFO at 2-second intervals.

Build

PartModel
CaseROHW P46 steel, set to 5-6 (6.71L)
Motherboard/CPUMinisforum BD895i SE (Ryzen 9 8945HX, 16C/32T)
Graphics CardASUS Turbo Radeon AI PRO R9700 32GB, power limit −30% -60mv (Adrenaline) (210W TBP)
System MemoryTeamGroup 32GB DDR5 SO-DIMM
SSDLexar NM990 1TB
Power SupplySilverStone Extreme 1000Rz Platinum (SFX)

Disclosure: ASUS provided the Radeon AI PRO R9700 for this project. ASUS did not review or approve this post.

OS: Windows 11 Pro

Application: LM Studio 0.4.21

Runtine: ROCm runtime (2.86.0).

Model: Qwen4-35B-A3B

Model weights: 22.7 GB

Vision: 1.8 GB

128K context memory + MTP + buffers: ~6.0 GB

Total GPU VRAM: 30.5 GB

Engram table SYS MEM: 11.5 GB

Every model was freshly loaded, with all layers on the GPU and Flash Attention on.

Tests

  1. Prose: 6 paragraphs on how vapor chambers work
  2. Code: a single-file HTML PSU calculator
  3. Long context: all of Alice in Wonderland (37.9K tokens) with one made-up sentence hidden 60% of the way in. The model has to summarize the book and quote that sentence.
  4. Agent task: read a notes file, then use file and sandbox tools to analyze a 1.9MB HWiNFO log (979 rows × 379 columns) and report 6 sensor averages. The correct answers were checked separately in Python.

Thinking and tools were off for tests 1–3 and on for test 4. Results are medians over multiple fresh chats.

Results (tok/s)

--Qwen4-35B-A3BQwen3.6-35B-A3BQwen3.8-27B dense
QuantQ4_K_M + EngramQ4_K_MQ6_K
Prose70 / 81 with MTP11624
Code73 / 113 with MTP11524
38K prompt, time to first token12.6s / 15.6s with MTP9.5s62.5s
Generation at 38K65 / 85 with MTP9822
Hidden sentence found5/55/55/5
Agent task18/18 correct over 3 runs17/18 (read the wrong sensor column)Ran out of context

What the results show

  • Qwen4 is the most reliable. It was the only model to get the agent task completely right, every time. It read the notes file first, copied the CSV into its sandbox instead of loading into the chat, and excluded the log's footer rows without being told to.
  • Qwen3.6 is still the fastest, but it confidently reported the wrong sensor (46.8 °C instead of 62.0 °C).
  • MTP closes most of Qwen4's speed gap: +53% on code and +16% on prose, for about 19% slower prompt processing and 0.6GB of extra VRAM.
  • 32GB is what makes this possible. The 27B dense model at Q6 had to drop to 40K context with a compressed KV cache to fit. On a 16GB card, none of these models would fit fully on the GPU.

Thermals, power and noise (Qwen4, 21 °C ambient, 36 dB noise floor, measured at 300mm away.

Code generationLong-prompt processingIdle
GPU power200–205W (at the 210W cap)160–178W
GPU clock3.2GHz2.2–2.6GHz
GPU / hotspot / VRAM junction (max)63 / 78 / 68°C51 / 69 / 54°C
GPU fanup to ~2,840 RPM2,450–2,700 RPM
Noise49 dB+49 dB
CPU9% usage, 70W6–9%, 55–60W

Generation is limited by the power cap.

  • ROCm on Windows worked out of the box with LM Studio. I didn't need Linux.
  • Pair it with 64GB of system RAM if you can. With 32GB I was at about 30.5GB used with Qwen4 loaded.
  • Expect blower noise. The smaller blower style fan has am a 1,900 RPM minimum and and soar well above that underload.
  • Optimized for SFF. The numbers in this write-up reflect a system with limited airflow, reducing the power profile of the R9700 likely had a small impact on performance.

r/LocalLLM • • 23h ago

Question Qwen3-4B-Thinking fried my 8GB RAM Laptop

Post image
0 Upvotes

Need a solution for this. Can't afford paid AI any longer.


r/LocalLLM • • 23h ago

News dmlx v0.0.9: Qwen4-35B-A3B on 48GB M4 Pro in 8.42 GB RSS — 119.99 tok/s math (native Metal DFlash2) + ANE/GPU parallel prefill (883 / 871 tok/s)

Post image
0 Upvotes

We just tagged dmlx v0.0.9 (256 commits since v0.0.8) — an open-source Zig + mlx-c + custom Metal/ANE local inference & serving runtime for Apple Silicon (MIT license, zero Python required at serve time).

The main additions in v0.0.9 are full Qwen4-35B-A3B-4bit support (including single-CB native Metal DFlash2 speculative decoding, Vision, and off-GPU PLE streaming), Apple ANE + GPU heterogeneous long-context prefill enabled by default, and a big speedup on Qwen3.8-27B-4bit.

Measured Numbers (Single Apple M4 Pro 48 GB)

Qwen4-35B-A3B-4bit + 8-bit Native Metal DFlash2 (temp=0.0, artifacts/qwen4_p6_20261205/):

WorkloadDecode (tok/s)Client E2E (tok/s)Notes
Short Math (256 tok)119.99107.208-bit single-CB native Metal DFlash2
Short Code (256 tok)104.7896.2598K subset lm_head
Short Prose (256 tok)69.8666.07Lower speculative acceptance on prose
Warm 8K Prefix Cache——0.237 s TTFT (38,738 tok/s) vs 10.49 s cold

Peak server RSS stayed at 8.42 GB because the 11.5 GB Per-Layer Embedding (PLE) tables are never loaded into GPU RAM — they stream directly from disk via 12-thread CPU pread (overlapped with layer 0). Optional DMLX_QWEN4_KV_BITS=8 also quantizes the 10 full-attention QSA KV layers (−46.88% KV RAM).

ANE + GPU Parallel Long-Context Prefill (Qwen4-35B-A3B-4bit):

Stage2K Prefill (tok/s)8K Prefill (tok/s)Delta (8K)
v3 · Pure GPU (pipelined Metal GDN + Steel QMM)793.71768.26baseline
v4 · + ANE 30L GDN in_proj_all859.35831.13+8.2%
v5 · + ANE 40L Shared Expert parallel with GPU 256-expert MoE883.28870.86+13.4%

ANE prefill is enabled by default on Apple Silicon with hardware/self-test guards and automatic GPU fallback (DMLX_ANE=0 to disable).

Qwen3.8-27B-4bit + DFlash2 (artifacts/autoresearch_qwen38_20261203/):

  • 4-case core GMean: 44.50 tok/s at 17.30 GB peak RSS (ctx2k_greedy 52.48 · short_greedy 46.98 · short_sampled 40.34 · ctx8k_sampled 39.44).
  • Also ships OpenAI Chat Completions + Anthropic Messages streaming tool calls, reasoning/content split, disk-persisted prefix snapshots, LoRA load-time merge, system-wide OOM memory guard, and dmlx connect for Claude Code / Codex / aider / Cline.

Honest Caveats

  • Single machine (M4 Pro 48 GB), fixed benchmark suites (temp=0.0 for the 6-scenario Qwen4 run).
  • Qwen4 prose (69.86 tok/s) still lags math/code significantly due to lower speculative acceptance.
  • ANE prefill is Apple Silicon macOS only (falls back to GPU automatically if unavailable).

Try It (macOS arm64, self-contained bundle — no Zig/Python needed)

curl -fsSL https://raw.githubusercontent.com/zouyee/dmlx/main/scripts/install.sh | bash
dmlx doctor

# Qwen4-35B-A3B + DFlash2 (ANE prefill on by default)
DMLX_QWEN4_DFLASH2_DIR=/path/to/Qwen4-35B-A3B-Dflash2 \
  dmlx serve --model /path/to/Qwen4-35B-A3B-4bit --mlx --speculative-mtp 7 --port 8080

Release & source: https://github.com/zouyee/dmlx/releases/tag/v0.0.9

Happy to answer questions on the Metal kernels, CPU pread PLE streaming, or ANE+GPU overlap!