Qwen4-35B-A3B Strata Packs: Local 1M Context & Dual-GPU Offloading Guide

strata-engine/Qwen4-35B-A3B-Strata packages the 35B-parameter (3B active) Qwen4 MoE model into three quantization-aware packs—Compact (11.49 GB), Balanced (22.64 GB), and Ultra (28.08 GB)—that stream 10,240 experts between VRAM, system RAM, and NVMe storage starting on 6 GB GPUs or 16 GB Macs.
Qwen4-35B-A3B Strata Packs: Local 1M Context & Dual-GPU Offloading Guide: strata-engine/Qwen4-35B-A3B-Strata packages the 35B-parameter (3B active) Qwen4 MoE model into three quantization-aware packs—Compact (11.49 GB), Balanced (22.64 GB), and Ultra (28.08 GB)—that stream 10,240 experts between VRAM, system RAM, and NVMe storage starting on 6 GB GPUs or 16 GB Macs. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- TieredVRAM-to-RAM Expert Streaming: Keep shared dense layers and hot experts on GPU while streaming cold blocks out of the 10,240 experts via a 0.16 GiB prefetch guide.
- Quantization-Aware Pack Fidelity: Ultra (28.08 GB) matches BF16 next-token selection 97.622% of the time with 0.013379 KL drift; Balanced (22.64 GB) retains 96.788%.
- Compact Chat State Memory: Stores only 10,560 bytes per context token—roughly 0.32 GiB for 32K tokens—leaving VRAM free for dual-GPU 1M-context windows.
- Modular Optional Sidecars: Attach Qwen4-35B-A3B-MTP.strata (0.38 GB) for speculative drafting, Vision.strata (0.89 GB), or Loop.safetensors (0.15 GB).
import { createAgent } from '@smoke-monkey/harness';// Connect Smoke Monkey Harness to local Strata server running Qwen4-35B-A3B-Balancedconst agent = createAgent({agentId: 'qwen4-strata-local-coder',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8080/v1',model: 'Qwen4-35B-A3B-Balanced.strata',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},});async function main() {const result = await agent.run('Analyze src/server/router.ts for N+1 queries, implement batched SQL reads, and verify with npm test.');console.log('Strata Agent Result:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
Qwen4-35B explained in 12min..
Qwen4-35B-A3B Locally on CPU or 8GB VRAM in Windows and Linux
What Is Qwen4-35B-A3B Strata and How Does Expert Prefetching Work?
Qwen4-35B-A3B Strata is a quantization-aware local distribution of Alibaba's Apache-2.0 Qwen4-35B-A3B Mixture-of-Experts model (35 billion total parameters, ~3 billion active per token across 10,240 experts) built for Strata 0.2.26+. Instead of forcing all experts into VRAM or taking severe speed penalties from naive layer-by-layer CPU offload, each .strata pack bundles dense shared layers, variable-bitwidth experts, and a 0.16 GiB prefetch guide that predicts upcoming expert routes and stages them asynchronously from RAM or NVMe.
Each pack pairs with a system-RAM PLE lookup table (Qwen4-35B-A3B-PLE-Q4.gguf at 11.52 GB or PLE-Q8_0.gguf at 21.76 GB, consuming zero GPU VRAM). On 5,760 measured output tokens across 36 evaluation prompts against BF16, Strata reports the following pack profiles:
| Strata Pack | Pack Size | Avg Bits/Expert | Target GPU VRAM | Same Next Word | Top-5 Overlap | KL Drift | Sure-Word Change |
|---|---|---|---|---|---|---|---|
| Ultra | 28.08 GB | 6.21 bpv | 32 GB GPU | 97.622% | 100.000% | 0.013379 | 0.04% |
| Balanced | 22.64 GB | 4.85 bpv | 24 GB GPU | 96.788% | 99.983% | 0.026649 | 0.13% |
| Compact | 11.49 GB | 2.13 bpv | 12 GB GPU (min 6 GB) | 89.288% | 99.514% | 0.213052 | 3.69% |
Installing Strata 0.2.26+, Selecting Sidecars, and Tuning Sampling
Inside the Compact pack, Strata allocates mixed bitwidths non-uniformly: 6,560 experts (64.1%) sit at 1.81 bpv, 2,576 (25.2%) at 2.19 bpv, 784 (7.7%) at 3.19–4.19 bpv, and 320 high-sensitivity experts (3.1%) at 4.19 bpv. Chat context overhead stays at 10,560 bytes per token (~0.32 GiB at 32K tokens), allowing dual 12 GB cards (e.g., 2x RTX 3060) or 16 GB Apple Silicon Macs to hold large contexts without OOM crashes.
You can also attach optional sidecars: Qwen4-35B-A3B-MTP.strata (0.38 GB) for multi-token speculative acceleration, Qwen4-35B-A3B-Vision.strata (0.89 GB) for image inputs, and Qwen4-35B-A3B-Loop.safetensors (0.15 GB), though note that enabling Loop cuts M5 Max throughput by roughly one-third (from 79–80 tok/s down to 51–53 tok/s on Compact):
# 1. Install Strata CLI (>= 0.2.26) on Linux or macOS
curl -fsSL --connect-timeout 15 --max-time 120 \
https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
# 2. Verify SHA-256 checksums for Balanced pack + PLE-Q4 lookup table + MTP draft
sha256sum Qwen4-35B-A3B-Balanced.strata Qwen4-35B-A3B-PLE-Q4.gguf Qwen4-35B-A3B-MTP.strata
# Expected Balanced: 8f2ee55fe78b42653909e2d21caa8a120e7e9cf055b4af30506b2beca1340be
# 3. Launch local server and query with recommended thinking parameters
strata launch --model Qwen4-35B-A3B-Balanced.strata --port 8080
curl -fsS http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"Qwen4-35B-A3B-Balanced.strata","temperature":1.0,"top_p":0.95,"top_k":20,"presence_penalty":0.0,"messages":[{"role":"user","content":"Audit this SQL query plan."}]}'Recommended Sampling by Mode
With thinking enabled (default), use temperature=1.0, top_p=0.95, top_k=20, presence_penalty=0.0. With thinking disabled for fast tool dispatch, switch to temperature=0.7, top_p=0.80, top_k=20, and presence_penalty=1.5.
Orchestrating Strata Local Agents in Smoke Monkey Harness and Canvas
When wiring Qwen4-35B-A3B Strata into Smoke Monkey Harness, bind Balanced (22.64 GB) or Ultra (28.08 GB) for repository-wide refactoring where exact token fidelity prevents syntax drift—Compact changes a high-confidence (>90% probability) token 3.69% of the time versus only 0.13% for Balanced and 0.04% for Ultra.
In Smoke Monkey Canvas, pair a local Strata worker node with strict AST verification hooks so every patch generated on local hardware passes tsc --noEmit and unit tests before touching git state.
Frequently Asked Questions
Q:What is the minimum hardware required to run Qwen4-35B-A3B Strata?
Strata starts on any 6 GB VRAM GPU or a 16 GB Apple Silicon Mac by keeping active layers on GPU and streaming remaining experts from RAM or NVMe. Recommended VRAM tiers for full-speed execution are 12 GB for Compact (11.49 GB), 24 GB for Balanced (22.64 GB), and 32 GB for Ultra (28.08 GB).
Q:Does the PLE GGUF lookup table consume GPU VRAM?
No. Either Qwen4-35B-A3B-PLE-Q4.gguf (11.52 GB) or Qwen4-35B-A3B-PLE-Q8_0.gguf (21.76 GB) resides in system RAM and takes zero graphics memory.
Q:How much memory does conversation context take in Strata?
At default settings, Strata uses 10,560 bytes per token, which equals roughly 0.32 GiB for a 32K-token conversation.
Q:Should I enable Qwen4-35B-A3B-Loop.safetensors for coding agents?
Benchmarking on an M5 Max with Compact showed Loop.safetensors left 36-prompt accuracy roughly unchanged while slowing generation by one-third (from 79–80 tok/s to 51–53 tok/s), so most interactive coding loops run faster without it.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.