Running Qwen 125B+ MoE Models Locally on Consumer Hardware: Complete Walkthrough
End-to-end guide to downloading, verifying, sizing, and running 125B-class Qwen MoE checkpoints locally on a single 12GB+ NVIDIA GPU with 64GB+ RAM.
Key Technical Takeaways
- Plan for ~70–75 GB of free NVMe disk space before pulling a Q4_K_M 125B MoE checkpoint.
- Close GPU-accelerated browsers and Electron apps before launch to reclaim 1–2 GB of VRAM and 4–8 GB of host RAM.
- Start with --ctx-size 8192 and --kv-cache-type q8_0 to verify clean startup before scaling up to 16K or 32K context.
- Test both cold-load latency and warm generation throughput on a fixed prompt so you can measure any flag adjustments objectively.
1. Pre-Flight Hardware & Storage Checklist
Running a 125B-parameter Mixture-of-Experts model on a desktop PC is entirely achievable when you respect three hard boundaries: disk space, physical RAM headroom, and GPU driver readiness. Most first-time failures come from running out of NVMe space mid-download or leaving 30 browser tabs open while trying to lock 55GB of host memory.
- GPU: NVIDIA RTX 3060 12GB, RTX 4070 12GB, RTX 4080 16GB, RTX 3090/4090 24GB, or RTX 50-series with Driver 535+ and CUDA 12.x.
- System RAM: 64GB minimum (96GB+ recommended if you also run Docker, VS Code, and a browser simultaneously).
- Storage: At least 90GB free on a PCIe 4.0 NVMe SSD (70GB for Q4 weights + temporary download cache).
- OS: Windows 11 64-bit or Ubuntu 22.04/24.04 LTS.
2. Clean Installation & First Launch
Always pull the engine directly from the official upstream GitHub repository rather than third-party re-uploads. On Windows, the bundled START-HERE.bat script isolates Python dependencies so they do not collide with your global environment.
# 1. Clone upstream Strata repository
git clone https://github.com/Niko1221/Strata.git
cd Strata
# 2. Windows one-click bootstrap (or ./setup.sh on Linux)
.\START-HERE.bat
# 3. Serve with safe 12GB VRAM + 8K context baseline
strata serve --model qwen3.8-125b-q4 --ctx-size 8192 --kv-cache-type q8_0 --port 8080 3. Verifying the Local OpenAI-Compatible Endpoint
Once the server reports that shared attention layers are pinned and the HTTP listener is ready on localhost:8080, run a quick curl test to verify non-empty output, inspect tokens per second, and confirm zero CUDA warnings in the console.
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-125b-q4",
"temperature": 0,
"max_tokens": 128,
"messages": [
{"role": "user", "content": "Explain PCIe pinned memory in three concise bullet points."}
]
}' 4. Scaling Context & Connecting Your IDE
After confirming stability at 8,192 context, watch nvidia-smi while sending a long prompt. If you still have 2GB+ of free VRAM, you can step --ctx-size up to 16384. From there, connect Continue.dev, Cursor, or Open-WebUI to http://localhost:8080/v1.
Size Your Hardware Before Downloading
Calculate exact VRAM, system RAM offload, and KV cache limits — or inspect our Benchmark methodology →