
deepseek_v3_hf
Language29 ops50.2K params
Sparse mixture-of-experts language models that route each token to a few experts.
Language · 29 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
This family gathers mixture-of-experts language models, where each token is routed to a few of many expert feed-forward blocks so a model can hold far more parameters than it activates per token. The saved documentation covers two of them: DeepSeek-V3, which pairs Multi-head Latent Attention with the DeepSeekMoE expert layout and uses an auxiliary-loss-free load-balancing strategy with a multi-token prediction objective, and JetMoe-8B.
JetMoe takes sparsity one step further: each block holds two MoE layers, a Mixture of Attention Heads and a Mixture of MLP Experts, and only a subset of experts is activated for the input tokens. That sparse activation is what buys training throughput over dense models of similar size.
Two implementation details matter for reading the traced graphs: the DeepSeek-V3 code in this library computes attention the plain way rather than as true MLA, and it loops through the experts one at a time instead of using a packed kernel. So the expert routing shows up in the graph as a visible loop over expert sub-blocks.
Key idea. Sparse mixture-of-experts language modelling: DeepSeek-V3 activates 37B of 671B parameters per token with auxiliary-loss-free load balancing, and JetMoe applies the same idea to both attention heads and MLP experts.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.