Nandai AI
Sign In
GGF-15 · QWEN 4 35B-A3B UD-IQ4_XS (20.40 GIB) FOR 36–64 GB MACS & RTX 5090

Qwen 4 35B-A3B UD-IQ4_XS: 20.40 GiB Near-FP16 Coding Fidelity, 2.95 GB/tok Reads & 1M Context Fit

UD-IQ4_XS (20.40 GiB, 2.95 GB/token active read) delivers near-lossless 4-bit MoE accuracy across 36–64 GB Apple Silicon Macs and 32 GB RTX 5090 cards, while squeezing into 24 GB RTX GPUs at <=32K Q4_0 KV.

Roofline Math Disclosure: 20.40 GiB weight and 2.95 GB/tok active read figures align with Destiny GGUF Calculator UD-IQ4_XS profile; sustained tok/s sits below theoretical BW/Active ceiling due to dispatch and Engram lookup overhead.

GGF-15 · Qwen 4 35B-A3B MoE · 4-Bit Workhorse⌘9 Model Manager

OS-Aware Studios & Tools

Verify memory fit before downloading weights, or launch zero-upload browser studios on macOS, Windows, and Linux:

02 · Hardware Memory-Bandwidth Roofline & KV Matrix

Exact Weight GiB, Active GB/Token, KV Scaling & Bandwidth Ceilings

Calculated from Qwen 4 35B-A3B UD-IQ4_XS (4.35 bpw, 20.40 GiB weights, 2.95 GB/token active read, 40 MiB/1K FP16 QSA KV + 0.25 GiB GDN state, Host-RAM Engram).

Hardware TierQuant / ModeWeight GiBActive GB/tokKV @ 32KKV @ 128KKV @ 1MRoofline tok/sResidency Fit
MacBook Air / mini M4 (24 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB40.7 peak; PCIe/swap limitedExceeds pool (needs >23 GiB wired)
Mac mini / MBP M4 Pro (48 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB92.5 tok/s (273 GB/s)Fits 128K+ residency · Engram 0 MB VRAM
MacBook Pro M4 Max (128 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB185.1 tok/s (546 GB/s)Fits 1M full residency · Engram 0 MB VRAM
Mac Studio Ultra (192 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB277.6 tok/s (819 GB/s)Fits 1M full residency · Engram 0 MB VRAM
NVIDIA RTX 3090 (24 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB317.3 peak; PCIe/swap limitedSpills VRAM (+0.1 GiB PCIe offload)
NVIDIA RTX 4090 (24 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB341.7 peak; PCIe/swap limitedSpills VRAM (+0.1 GiB PCIe offload)
NVIDIA RTX 5090 (32 GB)Qwen4 35B-A3B UD-IQ4_XS20.40 GiB2.95 GB/tok1.50 GiB5.25 GiB40.25 GiB607.5 tok/s (1792 GB/s)Fits 128K+ residency · Engram 0 MB VRAM
Variant / ModeMemory / ThroughputRecommended Hardware Configuration
UD-IQ4_XS Backbone (4.35 bpw)20.40 GiB GPU + 0 MB VRAM Engram36–64 GB M4 Pro/Max or RTX 5090 32 GB
24 GB RTX Tight 32K Fit20.40 + 0.60 (32K Q4_0 KV+GDN) = 21.75 GiBFits 22.5 GiB usable RTX 3090/4090 VRAM
48–64 GB Mac 1M Full Context20.40 + 11.50 (1M Q4_0 KV+GDN) = 32.65 GiBFits 48–64 GB M4 Pro/Max completely offline

Section 01 · GGF-15

Why UD-IQ4_XS Hits the Optimal Quality-to-Bandwidth Ratio on 32–64 GB Systems

Non-linear 4.25–4.35 bpw codebooks match Q4_K_M perplexity while shaving ~1 GiB of VRAM.

For 36 GB–64 GB MacBooks, 48–64 GB Mac minis, and 32 GB NVIDIA RTX 5090 rigs, UD-IQ4_XS represents the standout daily-driver quantization for Qwen 4 35B-A3B. By packing 256-weight blocks at 136 bytes (4.25 bpw) across cold routed experts while keeping attention, Gated-DeltaNet, shared expert, and router projections at Q6_K/Q8_0 (raising model-wide density to ~4.35 bpw, 20.40 GiB), UD-IQ4_XS preserves virtually full reference DeepSWE coding and mathematical fidelity.

At 2.95 GB read per generated token, theoretical bandwidth rooflines sit at 92.5 tok/s on 273 GB/s M4 Pro, 185.1 tok/s on 546 GB/s M4 Max, 277.6 tok/s on 819 GB/s Mac Studio Ultra, and 607.5 tok/s on 1,792 GB/s RTX 5090.

Comparing 4.35 bpw UD-IQ4_XS against 3.15 bpw UD-IQ3_S reveals where the extra +7.50 GiB goes: routed FFN experts upgrade from 3-bit codebooks to 4.25 bpw vector blocks (136 bytes per 256 elements) while router gates and QSA attention weights step up to Q8_0/Q6_K—suppressing edge-case hallucination in multi-hop debugging and SQL schema inference.

Roofline / Allocation Equation48GB_M4Pro_1M_Q4KV = 20.40 GiB (UD-IQ4_XS) + 11.25 GiB (1M Q4_0 KV) + 0.25 GiB (GDN) + 0.75 GiB = 32.65 GiB <= 38.0 GiB Pool

Section 02 · GGF-15

Squeezing 20.40 GiB UD-IQ4_XS Into 24 GB RTX 3090 / 4090 GPUs

24 GB NVIDIA owners can run 4-bit UD-IQ4_XS completely in VRAM if they pin Engram in Host RAM and cap KV.

With 20.40 GiB of weights inside ~22.5 GiB usable VRAM on a headless or Linux-primary RTX 3090/4090, only ~2.10 GiB remains for CUDA scratch and KV state. Running FP16 KV at 32K (1.50 GiB w/ GDN) + 0.75 GiB scratch hits 22.65 GiB and risks spilling one layer over PCIe. Switching to --cache-type-k q8_0 --cache-type-v q4_0 (0.76 GiB at 32K w/ GDN) drops total VRAM usage to ~21.91 GiB—fitting completely inside 24 GB GDDR6X at 317–341 tok/s theoretical rooflines.

On Windows desktops where the OS reserves ~1.2–1.8 GiB VRAM for DWM compositing, prefer UD-IQ3_S (12.90 GiB) or offload 2–4 MoE layers to system DDR5.

Verification & Runtime Flagsllama-server -m Qwen4-35B-A3B-UD-IQ4_XS.gguf -c 32768 -ctk q8_0 -ctv q4_0 -fa on -ot "engram=CPU" -ngl 99

Section 03 · GGF-15

RTX 5090 32 GB + 128K FP16/Q8_0 KV at 607.5 tok/s Theoretical Ceiling

32 GB GDDR7 gives UD-IQ4_XS nearly 10 GiB of breathing room for full 128K–262K contexts.

Unlike 24 GB cards, the 32 GB RTX 5090 (~30.2 GiB usable) absorbs 20.40 GiB UD-IQ4_XS effortlessly while holding 128K FP16 KV (5.25 GiB w/ GDN) or 262K Q8_0 KV (5.69 GiB w/ GDN) in pure GDDR7 without touching PCIe except for O(1) Host-RAM Engram lookups. Combined with its 1,792 GB/s bus, 2.95 GB/tok yields a 607.5 tok/s single-stream theoretical roofline.

Equally attractive on Apple M4 Max 48 GB / 64 GB laptops, 20.40 GiB UD-IQ4_XS leaves over 17–31 GiB of practical Metal memory open so Xcode, local browser studios, and long 128K–512K document contexts never contend for wired pages.

Section 04 · GGF-15

Running Full 1M Token Contexts Inside 48 GB–64 GB Apple Silicon Unified Memory

Compact 10-layer QSA attention lets 48–64 GB Macs hold 1M tokens in RAM alongside 20.40 GiB weights.

Because only 10 QSA layers scale KV linearly across context while 30 Gated-DeltaNet layers remain constant, a 1,048,576-token prompt needs just 11.25 GiB in Q4_0 KV (or 21.25 GiB in Q8_0 KV). Adding 20.40 GiB weights yields 32.65 GiB total (with Q4_0 KV + GDN + scratch)—meaning a 48 GB M4 Pro (38.0 GiB pool) or 64 GB M4 Max (51.5 GiB pool) can run 1M-token repositories at 4-bit precision completely offline.

Validate your target context length and seat savings inside /tools/gguf-vram-calculator or route long-form docs to /writing-engine.

Interactive Sizing & Browser Studios

Verify Exact Memory Margins Before Downloading Multi-Gigabyte GGUFs

Plug your exact hardware SKU, KV quantization (--cache-type-k / -v), and context length into our zero-upload GGUF VRAM & Roofline Calculator. Explore full model cards at /models and Apple Silicon tier breakdowns at /apple-silicon, or draft and audit content inside /writing-engine and /seo-engine.

05 · Technical FAQ (1:1 JSON-LD Parity)

Qwen 4 35B-A3B UD-IQ4_XS — Frequently Asked Questions

Can a 36 GB or 48 GB M4 Pro/Max Mac run Qwen 4 35B-A3B UD-IQ4_XS at 128K–1M context?

Yes. 20.40 GiB weights plus 2.91 GiB (128K Q8_0 KV + GDN) fits inside 36 GB M3/M4 Max/Pro (28 GiB pool), and 48 GB M4 Pro/Max fits all the way to 1M context with Q4_0 KV (32.65 GiB total).

How does UD-IQ4_XS compare to standard Q4_K_M on Qwen 4 35B-A3B?

UD-IQ4_XS saves ~1.00 GiB of VRAM (20.40 GiB vs 21.40 GiB) and reduces active byte reads slightly (2.95 vs 3.15 GB/tok) while retaining virtually identical perplexity via imatrix vector codebooks.

Can an RTX 3090 or RTX 4090 24 GB run UD-IQ4_XS without splitting to CPU?

Yes on Linux/headless cards with ~22.5 GiB usable VRAM if you pin Engram in Host RAM, set --ctx-size 32768, and quantize KV (--cache-type-k q8_0 --cache-type-v q4_0).

What is the theoretical RTX 5090 32 GB roofline for UD-IQ4_XS?

Dividing 1,792 GB/s GDDR7 bandwidth by 2.95 GB/token yields a 607.5 tok/s theoretical single-stream ceiling.

Founder Pro $9.99/mo · 67% Off1-tap Stripe Checkout · Instant ?ref= Free Months · 40% Recurring Partner Payouts
1. Subscribe in 1 TapFOUNDER_999_LOCK

Unlock All 19 Pro Studios + Mac App

Lock $9.99/mo Founder Pro (reg. $29.99 — 67% off), $119/yr Web Annual (-34%), or $299/yr 5-Mac + Web Pro.

Redeem Code
2. Get 6 Months FreeZERO OTP

Mint Your ?ref= Link Instantly

Give friends 67% off ($9.99/mo). Every paid friend adds 30 days of Pro free to your account (up to 6 months).

Dashboard: /refer · Rules

3. Creator & Publisher Cash90-DAY COOKIE

Earn 40% Monthly · 30% Annual

Earn 40% recurring monthly until cancel + 30% annual & every renewal, or embed our free tools with data-ref.