q4forge: open-source PyTorch+Triton SFT engine fine-tunes Qwen4-35B MoE on a single A100
SrPakura · reddit · 2026-12-07
A Reddit user released q4forge, a custom PyTorch + Triton SFT engine for the Qwen4-35B-A3B MoE architecture that fits fine-tuning on a single 80GB A100 without PCIe block swapping — authored largely by directing a team of AI coding bots.
Key techniques:
- 256 routed experts quantized on the fly to symmetric per-channel INT8 (30.1 GiB) via a custom Triton Grouped GEMM computing only dX in backward; sensitive layers stay BF16.
- The 20.5B Engram table lives in system RAM as INT8 (19.1 GiB) with async prefetch on a dedicated CUDA stream.
- Hermetic 16K-token multimodal sequence packing across 3D MRoPE, Engram n-grams, causal conv1d and QSA; streaming shard loader caps peak disk at <4 GiB vs 114GB.
- Two presets (Attention LoRA r=32 or +ViT LoRA), 189-197M trainable params, 390MB checkpoints; measured 2239 tok/s at 16K multimodal, 56 GiB peak VRAM; end-to-end smoke test passed (valloss 0.417→0.213).
Requires ≥48GB VRAM GPU and ≥32GB host RAM; video not yet supported.
More from Infra
- Japan Splashes $11 Billion on Texas Shale as AI and LNG Demand Soars — edgarpavlovsky · 2026-12-07
- Together Compiler uses agents to auto-optimize inference, up to 2.6x higher TPS — togethercompute · 2026-12-07
- ZAI claims 3x serving gain on Chinese chips, per-token cost on par with mainstream NVIDIA GPUs — himanshustwts · 2026-12-07
- Korea admits DRAM lead over China shrinks to 2-3 years as CXMT first to mass-produce 4F2 — basedjensen · 2026-12-07
- Nvidia 'cancellations' are China export rules, not demand: Amazon adds 2M GPUs — basedjensen · 2026-12-07
- NVIDIA's Ian Buck: 500 Vera Rubin NVL72 Racks, 100MW Capacity Per Month — Beth_Kindig · 2026-12-07