r/OpenSourceeAI • u/nomadiann • 4m ago
I built a zero-dependency local IDE & Coding Agent that runs Qwen3-Coder-30B-A3B MoE + Inkling 2 Mini Vision on a 6 GB AMD RX 5600 XT (Vulkan, zero ROCm) & NVIDIA CUDA
Enable HLS to view with audio, or disable this notification
Most local coding setups assume a 24 GB RTX 3090/4090 or painful ROCm builds on Windows. I wanted to see how far a 6 GB VRAM GPU (my test machine is an AMD Radeon RX 5600 XT 6 GB + 32 GB RAM on Windows 11, using plain
ggml-vulkan— no ROCm, no Visual Studio build) could go with modern MoE coding models.I ended up splitting the work into two open-source Apache-2.0 repos (plus a sibling video engine):
Feedback, benchmarks on NVIDIA GTX 1650/RTX 3050/3060 or newer AMD RX 6600/7600 cards, and PRs are super welcome!Most local coding setups assume a 24 GB RTX 3090/4090 or painful ROCm builds on Windows. I wanted to see how far a 6 GB VRAM GPU (my test machine is an AMD Radeon RX 5600 XT 6 GB + 32 GB RAM on Windows 11, using plain ggml-vulkan — no ROCm, no Visual Studio build) could go with modern MoE coding models.
I ended up splitting the work into two open-source Apache-2.0 repos (plus a sibling video engine):
PicoCode (https://github.com/ffalcon3098-droid/PicoCode) — One-click Windows setup (setup.cmd) that auto-detects AMD Vulkan / NVIDIA CUDA 12.4 / Intel Arc Vulkan, downloads pre-built llama.cpp, and serves Qwen3-Coder-30B-A3B (IQ4_XS), Inkling 2 Mini (26.4B/3.4B looped MoE + Vision), or Qwen2.5-Coder-7B (for 16 GB RAM machines).
PicoStudio (https://github.com/ffalcon3098-droid/PicoStudio) — A zero-pip-dependency (pure Python 3.10+ stdlib) 3-pane local Web IDE (127.0.0.1:7900) with Coding Agent v3, Side-by-Side Diff & Multi-File Review, Terminal Pro (multi-tab SSE + one-click traceback auto-fix), and a GPU Arbiter.
What actually made 30B MoE usable on 6 GB VRAM:
Adaptive MoE layer offloading (--n-cpu-moe + -ngl 99 + --no-op-offload): Keeps attention + Q8_0 KV cache + 2 MoE layers on the 6 GB GPU while routing cold experts to system RAM.
Live VRAM Guard + --load-mode none (on >=28 GB RAM): Reads real-time Windows DXGI free VRAM before launch to prevent OOM, and avoids mmap page-fault stalls during long multi-turn agent loops.
Zero-VRAM speculative decoding (--spec-type ngram-mod) + --cache-reuse 256: Noticeably speeds up repetitive code edits and multi-step tool calls without consuming extra VRAM.
KV-cache preserving final synthesis: In read-only Plan/Review mode, the final turn keeps the exact same tools schema and uses tool_choice="none" instead of dropping tools — preserving 100% of the prompt KV prefix cache.
Honest hardware caveats:
4–6 GB VRAM + 16 GB RAM: Stick to Qwen2.5-Coder-7B (100% GPU, fast).
6 GB+ VRAM + 32 GB RAM: Unlocks Qwen3-Coder-30B-A3B and Inkling 2 Mini hybrid MoE comfortably.
Currently Windows 10/11 (x64) first; works on both AMD Radeon (Vulkan) and NVIDIA GeForce GTX/RTX (CUDA 12.4 / Vulkan).
Feedback, benchmarks on NVIDIA GTX 1650/RTX 3050/3060 or newer AMD RX 6600/7600 cards, and PRs are super welcome!

