Show HN: DeepSeek V3 in ~200 lines of pure Jax
Category: ai-ml
Tags: jax, llm, deepseek, mixture-of-experts, educational
Score: 6.3/10 (Innovation: 5, Technical: 7, Documentation: 9, Utility: 4)
A from-scratch implementation of the DeepSeek-V3 architecture in pure JAX, condensing MLA, MoE with auxiliary-loss-free balancing, and multi-token prediction into about 190 lines. It trains a 36M-parameter model on a MacBook Air and demonstrates the balancing bias works, making it a useful reference for learning modern LLM internals.
Target audience: ML engineers and researchers interested in transformer internals and JAX
Repository: https://github.com/Vaibhaav-Tiwari/deepseek-v3-jax · Python · MIT · 259 stars
View on Hacker News