Repository navigation
Qwen4-35B-A3B Exact 3-Tier (VRAM + RAM + Engram NVMe) Fit & -ot Offload Calculator (43.8 tok/s on 8GB RTX 5060) #33665
OdeenChang
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I parsed the tensor headers of all 21 official
unsloth/Qwen4-35B-A3B-GGUFandggml-org/Qwen4-35B-A3B-GGUFfiles and built a zero-dependency client-side 3-tier memory planner (GPU VRAM + System RAM + Engram NVMe SSD) that auto-generates exactllama-server-otrouted-expert offload regexes and--ple/--lazy-mode autocommands.Key Takeaways from Parsing the GGUF Headers
1.89 – 3.04 GB): Across 1-bit to 6-bit quants, all 40 layers of Attention (10 QSA + 30 Gated DeltaNet) + shared experts + hyper-connections (hc_*) + token embeddings total only1.89 – 3.04 GB. The remaining 82–88% of the backbone is routed MoE experts (blk.*.ffn_*_exps.weight).2 KV heads × 256 head_dim→10.7 KiB/tokatQ8_0), ~75% smaller than a standard 40-layer GQA model.per_layer_token_embd) Lazy Loading: Underllama.cppdefault--lazy-mode auto, the11.52 – 40.96 GBn-gram table streams on demand from NVMe SSD instead of bloating RAM/VRAM.Verified Real-Hardware Benchmarks (
RTX 5060 8 GB Laptop + 14 GiB Usable RAM + PCIe Gen4 NVMe)Tested on
llama.cpp b12973(CUDA 12.8) withunsloth/Qwen4-35B-A3B-GGUF(UD-IQ2_XXS+Engram IQ4_NL):-ngl 10(no-ot)Q8_0)-ngl 99 -ot "\.ffn_.*_exps\.=CPU")Q8_0)13/41routed MoE layers on GPU)Q8_0)-ngl 99 -ot exps=CPU,Q8_0 KV)+1.31 GiBFeedback and PRs welcome — especially Apple Silicon wired-limit measurements or multi-GPU
--tensor-splitsetups!All reactions