# DeepSeek V3 JAX - Full architecture in 190 lines of pure JAX

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

> Hacker News story 50497589 · language: en · submitted 2026-11-14
> Web version: https://zeli.app/story/50497589
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 272 · by [VaibhaavTiwari](<https://news.ycombinator.com/user?id=VaibhaavTiwari>) · 💬 27
[original](<https://github.com/Vaibhaav-Tiwari/deepseek-v3-jax>) · [HN discussion](<https://news.ycombinator.com/item?id=50497589>)

## Summary

DeepSeek V3 JAX is a minimalist implementation of the DeepSeek V3 architecture—including Multi-head Latent Attention, DeepSeekMoE, auxiliary-loss-free balancing, and multi-token prediction—in just 190 lines of pure JAX. No Flax, no Equinox, no PyTorch. It was pretrained from scratch on a MacBook Air using public-domain detective fiction, achieving a validation loss drop from 5.02 to 3.51 in about 2.6 hours. The code is readable top to bottom, with plain dicts of arrays and every component as a function. Perfect for learning, experimentation, and understanding modern LLM internals without heavy frameworks.

## Key quote

> The bias evens out the experts without costing anything, which is the paper's claim.

## HN discussion (27 comments)

### [mattfrommars](<https://news.ycombinator.com/item?id=50500767>)

> Post like these always drives a motivation to understand how inference or what OP did.
>
> For folks who are more familiar in this space, is there a good road map how to build and understand the intuition behind this? I’m comfortable in Java and Python and do vanilla SWE work.

### [nico](<https://news.ycombinator.com/item?id=50499974>)

> \> to asking a language model to create a 3D end-to-end working model for me to capture the nuances
>
> Love this! Yes, having a visual of the system makes it a lot easier to reason about and understand
>
> I wish all AI models came with interactive animated workflows of their architecture
>
> \> so I wanted it to be different just for the sake of it and used various books by…
>
> That’s cool and great for your own project. At the same time it helps to use datasets that others have used, because then you can compare results more directly
>
> Excellent write up, I really appreciate all the detail and the sample outputs at the end. Excited to see what I could apply for  this to the small <10M models I’ve been training

### [armcat](<https://news.ycombinator.com/item?id=50499902>)

> I love this, there is nothing like recreating a model from first principles, plus makes me want to revisit Jax again (I'll do it after I spend enough time with Zig). Thanks for this!

---

## Cite

- Page: https://zeli.app/story/50497589
- Date: 2026-11-14
- Source: github.com (https://github.com/Vaibhaav-Tiwari/deepseek-v3-jax)
- Hacker News: https://news.ycombinator.com/item?id=50497589

## Other languages

- zh: https://zeli.app/zh/story/50497589 · markdown: https://zeli.app/zh/story/50497589.md
- ja: https://zeli.app/ja/story/50497589 · markdown: https://zeli.app/ja/story/50497589.md
- ko: https://zeli.app/ko/story/50497589 · markdown: https://zeli.app/ko/story/50497589.md
- de: https://zeli.app/de/story/50497589 · markdown: https://zeli.app/de/story/50497589.md
- es: https://zeli.app/es/story/50497589 · markdown: https://zeli.app/es/story/50497589.md
- ru: https://zeli.app/ru/story/50497589 · markdown: https://zeli.app/ru/story/50497589.md
