DeepSeek V3 Architecture in 190 Lines of JAX

The 30-Second Skim
- What happened: A Show HN project offers DeepSeek-V3’s architecture as a compact, readable JAX experiment, inviting developers to inspect and reproduce it on a Mac rather than treat it as a production-scale system.
- Key facts & numbers: deepseek-v3-jax reimplemented the DeepSeek-V3 architecture in 190 nonblank, noncomment lines of pure JAX, storing parameters as plain dictionaries of arrays and exposing the model as readable functions without Flax, Equinox or PyTorch. MacBook Air M5 powered the default run with 24 GB of memory; the main configuration calls for 12,000 training steps and about 2.6 hours on 207 downloaded public-domain detective-fiction books. DeepSeek V3’s expert-balancing bias produced nearly identical validation loss at step 2,000—3.921 with balancing and 3.923 without it—matching the paper’s claim that the bias evens out expert work without a measured cost.
- What happens next: The catch: this is a 36.2M-parameter architecture demo, not a full 671B DeepSeek V3 reproduction.
- deepseek-v3-jax reimplemented the DeepSeek-V3 architecture in 190 nonblank, noncomment lines of pure JAX, storing parameters as plain dictionaries of arrays and exposing the model as readable functions without Flax, Equinox or PyTorch.
- MacBook Air M5 powered the default run with 24 GB of memory; the main configuration calls for 12,000 training steps and about 2.6 hours on 207 downloaded public-domain detective-fiction books.
- DeepSeek V3’s expert-balancing bias produced nearly identical validation loss at step 2,000—3.921 with balancing and 3.923 without it—matching the paper’s claim that the bias evens out expert work without a measured cost.
- DeepSeek V3 has 671 billion parameters, 61 layers and a 128K context in the technical report, while deepseek-v3-jax uses 36.2 million parameters, six layers and a 256-token context.
Why It Matters
For ML developers, the release implements DeepSeek V3’s core design in a 190-line JAX reference runnable on a 24 GB Mac, making the routing and expert-balancing mechanics directly inspectable and reproducible. Its 36.2-million-parameter scale and dense expert execution keep it an educational demo, not a practical general-purpose model.
Sources Cited
- Hacker News — Show HN: DeepSeek V3 in ~200 lines of pure Jax
Related Coverage
Ask SkimNews