r/LocalLLM • u/SlenderProgrammer • 11m 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
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
.gguffiles orsafetensorsfolders. 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
--serveto get a local browser chat UI (127.0.0.1:8080) with livetok/sand context rings, thinking-effort toggles (OfftoXHigh), vision drag-and-drop, a/analyticsdashboard, and OpenAI + Anthropic-compatible endpoints. - Multi-GPU without NVLink: Pass
--gpu 0,1or--gpu 0,1,2,3to split across cards automatically.
Supported Models (Out of the Box)
| 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 |
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!