Running 510GB DeepSeek V4.1 Flash on one DGX Spark: 113.6GB base plus 40MB domain sidecars
Physical_Toe_2499 · reddit · 2026-10-06
A developer demonstrated YoungAi, a native C/CUDA inference engine that runs DeepSeek V4.1 Flash (originally 510GB) on a single NVIDIA DGX Spark (GB10, 128GB unified memory) using a three-file architecture:
- Quantized base: VQ-8 scheme where every 8 consecutive expert weights become one 12/13-bit codebook index; codebooks trained per layer and shared across all 384 experts, stored in FP8. Zero-corpus, 113.6GB, a complete model on its own.
- Domain sidecars: 40MB each for finance, code, law, medicine, and science. They store per-channel multiplicative gains (FP4) plus router biases, solved layer-by-layer to reproduce the original MoE block outputs on domain text.
- Experimental post-training file: turns preferences into linear equations on last-layer expert gains; flips decision points from 55% to 88% on training requests but doesn't generalize yet.
Results: domain sidecars improve top-1 agreement vs. the original by 2.8–3.7 points (e.g., code 78.61%→82.26%), and English WikiText-2 actually improves slightly with any sidecar attached. Speculative decoding hits 43 tok/s on a real 14.1k-token agent request; prefill reaches 1,055 tok/s on 12.5k prompts. Decode runs at 82% of the GB10's 235GB/s memory-bandwidth wall. Limitations: teacher-forced metrics only, no human evaluation.
More from Infra
- Baseten's 'Inference Engineering' book back in print, free copies at re:Invent — philipkiely · 2026-11-29
- Debate: inference demand makes H100s more valuable while NVDA stock heads south — teortaxesTex · 2026-11-29
- Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9% — WaroftanksPro · 2026-11-29
- Leopold's $880K-per-H100 revenue claim vs "Nvidia has zero moat" draws flak — teortaxesTex · 2026-11-29
- JITEngine from Berkeley ecosystem synthesizes custom Mac LLM inference engines, up to 2.7x faster — CShorten30 · 2026-11-29
- Dev Uses Neon to Build 'ultra' CLI That Wraps Google Colab GPUs — andrew_n_carr · 2026-11-29