deepseek-v3-jax
An educational project implementing the DeepSeek V3 architecture in about 190 lines of pure JAX.
What does it do?
The repository's deepseek_v3.py contains a model implementation built from array dictionaries and functions. It explains how to download and clean a public-domain detective novel and create a tokenizer and training and validation data. Checkpoints and data from a published run are also available. The author describes it as an architecture demonstration, not a powerful language model. The basic run requires an Apple Silicon Mac, Python 3.12, and uv.
Key features
- Implementation of MLA, DeepSeekMoE, auxiliary-loss-free balancing, and MTP
- Examine the model structure in about 190 lines of pure JAX
- Create a tokenizer and training and validation data from a public-domain detective novel
- Published run checkpoints and data