| Show HN: DeepSeek V3 in ~200 lines of pure Jax(github.com) | |
| 272 points by VaibhaavTiwari 15 days ago | 28 comments | |
tl;dr: A from-scratch reimplementation of DeepSeek-V3's architecture (MLA, DeepSeekMoE, auxiliary-loss-free balancing, multi-token prediction) in 190 lines of pure JAX, with no Flax/Equinox/PyTorch dependencies. The author pretrained a 36.2M-parameter version on 21.7M tokens of public-domain detective fiction on a MacBook Air M5 in ~2.6 hours, reaching validation loss 3.51. Notably, the expert-balancing bias evenly distributed load (5.7–6.9% per expert) at no cost to validation loss, confirming the paper's claim—though compute is dense (no sparse dispatch) and scale is tiny vs. the 671B original. | |
HN Discussion:
| |