All models

olmoe_hf

Sparse mixture-of-experts language models that route each token to a few experts.

Language · 29 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (36 KB)

Open in a new tab

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.

At a glance

Parameters
50.2K
Operations
29
Framework
PyTorch
Recurrent
No
Published
2024
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7848
Graph hash
e48549bf905806c17c8af3eb73d7fd5c7b2008805e47be90d02f707f5ccbfea4
Skeleton hash
e6ef272b784345aed4fe1ba6c43aead8c7af1d505067ce9695f60bdf9221bb6a
Architecture hash
89f3b472907b3e8fad7a687180979ca61850b40b3afdea7d1ab43401f2e88920
Diagram SHA-256
4c164bd236ecff5c01415ab918b856529743878fb2e75585dcd6709505699361
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • mixture of experts
  • MoE
  • DeepSeek-V3
  • JetMoe
  • Mixtral
  • OLMoE
  • sparse language model
  • expert routing
  • LLM

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.