olmoe_tiny
Sparse mixture-of-experts language model using 1B of 7B parameters per token.
Language · 360 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.
At a glance
- Task
- Language
- Parameters
- 98.6K
- Operations
- 360
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2024
- Source
- transformers 5.18.0
- 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 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.
Details
- Stable ID
- m7849
- Graph hash
- 76d1a8bd33fd56e1806c6f124e585ceadb8f5f30243cc62c810f0a48faed367b
- Skeleton hash
- bd15c96de3aee510fbe5a2220b09e3cfec1fb853bed962ee3c2f7b896e8bedce
- Architecture hash
- f65e2a66147e5b27705610999ad10a0d2564d8800bc431545dc74570f2441ae9
- Diagram SHA-256
- 07f731eb8b3ce361cf633a21e69bde120befde5f974f4ebc7bdb86e8d59aaade
- 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
How this diagram was made
transformers.AutoModelForCausalLM.from_config()
What it is
A reduced configuration with 2 hidden layers, hidden size 32, 8 experts with 2 routed per token and a 512-token vocabulary.
OLMoE is a sparse Mixture-of-Experts language model with 7B parameters of which only 1B are used per input token. The documentation says it has inference costs similar to dense models but trains about three times faster. Each layer uses fine-grained routing over 64 small experts with a dropless token-based routing algorithm.
The original checkpoints are published under the OLMoE collection, and the library's examples use them for text generation. The captured members instead instantiate the architecture from configuration without pretrained weights, one at the library default and one reduced to 8 experts with 2 routed per token.
Key idea. A sparse Mixture-of-Experts language model that activates 1B of its 7B parameters per token through fine-grained, dropless routing over 64 experts per layer.
- OLMoE
- OLMo
- mixture of experts
- MoE
- sparse language model
- open language model
- text generation
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.