Skip to the gist
aiBytes_

← Back to Sun, Nov 15

Hacker NewsFirst covered 15 Nov 2026

Show HN: DeepSeek V3 in ~200 lines of pure Jax

Source

A from-scratch rebuild of the DeepSeek-V3 architecture in about 190 lines of plain JAX, trained on a MacBook Air using public-domain detective novels.

Stats

(As of 15 Nov 2026)
Points
257
Comments
23
Submitted by
VaibhaavTiwari
Posted
1d
  • Implements MLA attention, DeepSeekMoE, auxiliary-loss-free load balancing and multi-token prediction, with parameters as plain dicts and no Flax or PyTorch.
  • The model is 36.2M parameters with six layers and a 256-token context, against 671B parameters and 61 layers in the original.
  • Switching the balancing bias on or off left validation loss almost identical at step 2000, matching the paper's claim.
  • Simplifications include dense expert compute and no MLA weight absorption; FP8, DualPipe and post-training are left out.
  • Runs on Apple Silicon through jax-metal, on CPU with a smaller config, and on AMD GPUs through ROCm.

The discussion

  • AgreedCommenters welcome it as a learning project, and several say they plan to rebuild it themselves to understand the architecture. comment
  • ThemeAn RX 7600 XT owner got it training on Fedora with ROCm after two environment-variable workarounds, prompting a reply about weak AMD support on consumer cards. comment
  • ThemeNewcomers ask for a learning path; replies point to 3Blue1Brown and Welch Labs videos and Karpathy's build-from-scratch tutorials. comment
  • CounterpointOne commenter suggests standard datasets over detective fiction so results can be compared, and the author agrees. comment

Appeared in

15 Nov 2026

More from Sun, Nov 15

HiringNow

Polls 247,000+ company career sites every 5 minutes, tailors your resume and cover letter per job, and applies on the employer's own site only after you approve.