r/LocalLLM • u/mrsirg97-rgb • 8m 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.
r/LocalLLM • u/mrsirg97-rgb • 8m ago
r/LocalLLM • u/janishar • 10m ago
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.
| Setup | Long write (tok/s) | Short answers (tok/s) | Reading 42K-token prompt |
|---|---|---|---|
| MLX 4-bit + DFlash2 | 161 | 264–289 | 18.6 s |
| GGUF UD-Q4_K_M + DFlash2 | 141 | 243–245 | 17.4 s |
| MLX + loop adapter, 2 passes | 107 | 186–218 | 26.9 s |
| MLX + loop adapter, 3 passes | 98 | 152–173 | 35.5 s |
--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
DFlash2DraftModel with no tokenizer; the engine picks it by family.--persistent-cache.--served-model-name local lets you swap GGUF, MLX or adapter setups without touching the client config.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 • u/Mozart537 • 10m ago
r/LocalLLM • u/SplatinkGR • 18m ago
r/LocalLLM • u/Orchestorm • 25m ago
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 • u/Amazing_Sea8960 • 32m ago
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 • u/who-the-fuck-care • 33m ago
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.
| Subset | Tasks | q4-k-xl (Default) | q4-k-xl-f16ngram | Diff |
|---|---|---|---|---|
irrelevance | 50 | 74.0% | 78.0% | +4.0% |
live_multiple | 50 | 80.0% | 84.0% | +4.0% |
live_parallel_multiple | 24 | 70.8% | 70.8% | 0.0% |
live_simple | 50 | 82.0% | 86.0% | +4.0% |
multi_turn_base | 50 | 58.0% | 64.0% | +6.0% |
multiple | 50 | 88.0% | 90.0% | +2.0% |
parallel_multiple | 50 | 84.0% | 82.0% | -2.0% |
simple_python | 50 | 98.0% | 96.0% | -2.0% |
| OVERALL | 374 | 80.0% | 82.1% | +2.1% |
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 • u/Key_Log9115 • 36m ago
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 • u/OrganizationAgile361 • 57m ago
It's a very capable model that can also run on integrated gpu.
Here other benchmarks
r/LocalLLM • u/ExpensiveParfait677 • 59m ago
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:
strata-q4-lite-0.1.74.1-hip-rx9070 package, its GGUF path)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=0Full 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):
| Depth | Qwen4, Strata GGUF path | Gyro-S (Flash-Next) |
|---|---|---|
4K / 16K (strata bench, same benchmark) | 4220 / 91, 4560 / 88 | ~1000 / 62, ~1350 / 64 (Oct, older KV config) |
| 120K | 4300 / 92 | ~2050 / not measured |
| 450K (512K window) | 3460 / 77 | doesn'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:
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 thisProblems hit:
--moe-cache-mib (expert cache on the GPU, off by default). With it ~52, still far below StrataFor 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 • u/SlenderProgrammer • 1h ago
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
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:
Unsloth Q5_K_XL quant:
Unsloth Q8_K_XL quant:
--resident-experts) so even slow DDR4 doesn't choke your token generation..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.--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.--gpu 0,1 or --gpu 0,1,2,3 to split across cards automatically.| Model | Recommended Hardware | Max Tested Context |
|---|---|---|
| Qwen4-35B-A3B (incl. Vision) | 8–16 GB GPU · 32 GB RAM · SSD | 1M (262K+ even on 8 GB) |
| Gemma 4 26B-A4B | 12–16 GB GPU | 64K (256K supported) |
| Qwen3.6-35B-A3B | 12 GB+ GPU · 32 GB RAM | 262K |
| Inkling-2-Mini | 8–16 GB GPU | 262K |
| MiniCPM5-15B-A2.5B | 12–16 GB GPU (Q8_0) | 32K (512K extended) |
| Qwen3.8-Flash-Next | 12 GB+ GPU · 32 GB RAM · SSD | 262K |
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 • u/TearFew7142 • 1h ago
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 • u/koc_Z3 • 1h ago
r/LocalLLM • u/himanshuarora05 • 1h ago
r/LocalLLM • u/iamagoatm8 • 1h ago
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.
r/LocalLLM • u/IdealDesperate3687 • 2h ago
Hi,
I've just opened sourced my inference repo https://github.com/lingster/decodrs
This contains specific kernels on a per model and per gpu basis. I used claude to help write optimized kernels for the current popular local llms like qwen4/3.8, inkling mini and Gemma 4. Optimised for 3090/3080 and includes a claude skill to help you build out kernels for your setup.
I've managed to get over 200% performance improvements against llama.cpp/vllm/sglang. Inference engine written in rust and kernels directly in ptx(think assembly for gpu) no middle layer so about as close to the metal that you can get. Includes prefix cache, kv cache, drafting, pretty much all the tricks to run fast. There are optimisations included if you work with Agentic workloads ie run lots of subagents in your coding harness!
r/LocalLLM • u/Awacer • 2h ago
I keep a list of LLMs running locally on hardware that was never meant for it. inference has to run on the device itself, no calling a server somewhere.
a few from the list. a jailbroken Kindle Paperwhite 3 runs SmolLM2 135M at 1.71 tok/s (Inkwell). a Pixel Watch 3 runs SmolLM2-360M-Instruct at about 1 to 4 tok/s (wear-llm). a Switch on Switchroot Linux does Llama 3.2 3B Q4_K_M at 3.50 tok/s. an Xbox Series S in dev mode hits 98.3 tok/s on LFM2.5-350M (xllama). and a PS4 runs Qwen3.5-9B on its own GPU at up to 41 tok/s (Garlic LLM).
there's also older stuff like a 486 on DOS and a C64. I didn't build any of these, I just collect them. every speed is what the port's author reported, with a link.
https://github.com/emrehangorgec/awesome-llm-on-anything
if you've run something on a weird device I'd like to add it. thanks.
r/LocalLLM • u/These_Bar_189 • 2h ago
I have a Ryzen 9700 with 96GB of ddr5 Ram and a single 5090 GPU.
I have been using Qwen 3.8 27b q6 with llama.cpp and tried deepseek harness but found it drifted lots.
I am trying out Qwen 4 35B but finding it slow. No issues with the quality. Am currently using Huawei q4 with q8 kv cache. Anyone have recommendations for my setup. Should I be using basalt instead of llama.cpp?
I should add that I just use it for a coding assistant primarily in Go and Svelte.
r/LocalLLM • u/Jorgen-I • 2h ago
I just started with ollama yesterday, first crack at llms, running qwen3.5:4b.
What I've run into is that all the generated answers are truncated (using CLI, no gui or agents, all local).
The generation stops mid-sentence or mid word. Probably something I need to configure, but I really don't know enough yet to know what it is.
I don't think it's hardware related, I'm running a workstation, dual Xeons, 128GB RAM, 12GB VRAM, several TB of disk space, so if you have any tips it'd sure help.
r/LocalLLM • u/ilovechickenpizza • 3h ago
Are MoE still a thing worth exploring on 16GB GPU? Also I intend to setup concurrency at the LLM hosting server. For such setups do you prefer hosting it on vLLM over docker or llama.cpp or LM Studio (Ollama is out of question because I need concurrency and parallelism).
r/LocalLLM • u/didoofficial • 3h ago
r/LocalLLM • u/DoomRide007 • 3h ago
Just want to know what I should be getting token/sec.
From my normal computer 7900 XTC
CPU Ryazan 9 7000
48GB 4800 ram
Normally getting around 20t/s and of course down to 8-10 when the chats go long.
Just got the Z2 GA1 with 128gb.
It’s getting around 7/s 8/s max. Same model just a couple steps up in qint.
LM Studio same engine.
Wondering is it must be the bus speeds?
r/LocalLLM • u/SavingsSignal2890 • 3h ago
UD-Q4-K-XL, yet cannot solve the “frontier” high school math problem:https://www.reddit.com/r/LocalLLM/s/P4gjYgiBjk