dbrx_tiny
A decoder-only transformer language model built on a fine-grained mixture-of-experts architecture.
Language · 484 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
- 451.9K
- Operations
- 484
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- 2024
- Authors
- The Databricks AI Research Team
- Source
- transformers 4.57.6
- 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
- m4105
- Graph hash
- da4d30aa17901b4aaeaa4e89f494fcd5b0794efb35ee69273f11f520890899f6
- Skeleton hash
- a8327392c34f67d2841991bc228d9c5807ebb935a5dec28336adbb68f92feec8
- Architecture hash
- f7bdd9500cecdd52e74c58b90fd9b11b7f9522f28773efd220b38bd3ce8d22a7
- Diagram SHA-256
- 2885fa499b9266870b8e1465992d91e1778899230e55dfc7229be99829aa0289
- 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.AutoModel.from_config()
What it is
DBRX is an open, general-purpose large language model created by Databricks. It is a transformer-based decoder-only model trained with next-token prediction. Its main design choice is a fine-grained mixture-of-experts (MoE) architecture, for which Databricks reports 132B total parameters with 36B active on any input.
Fine-grained here means a larger number of smaller experts than other open MoE models use. DBRX as announced has 16 experts and chooses 4, where Mixtral and Grok-1 have 8 and choose 2; Databricks says this gives 65x more possible combinations of experts and that it improved model quality. The model also uses rotary position encodings (RoPE), gated linear units (GLU) and grouped query attention (GQA).
DBRX was pretrained on 12T tokens of text and code data with a maximum context length of 32k tokens. Because an MoE model uses relatively few of its parameters for each input, Databricks measured inference throughput 2-3x higher than a 132B non-MoE model. Training ran on 3072 NVIDIA H100s connected by 3.2Tbps Infiniband.
Key idea. Databricks built DBRX, an open decoder-only language model whose fine-grained mixture-of-experts architecture uses 16 experts and chooses 4.
- dbrx
- dbrx base
- dbrx instruct
- databricks llm
- mixture of experts
- moe
- open llm
- large language model
- decoder-only transformer
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{dbrxmoe2024,
title = {Introducing DBRX: A New State-of-the-Art Open LLM},
author = {The Databricks AI Research Team},
year = {2024}
}