mpt
MosaicML's MPT, a GPT-style decoder trained on 1T tokens with ALiBi instead of positional embeddings.
Language · 842 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
- 1.3B
- Operations
- 842
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- 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
- m7506
- Graph hash
- 107a302a36356994546dddb4a89447a283fe3af621675094943f4b02445dc9e2
- Skeleton hash
- cdc1150e42960c67600f60c8414efa0c542a22280e42ccd16d06b0832c92ea4b
- Architecture hash
- 785d23878b144b5677ce70cd49502c2d2c5968da396ca03a429f9399d356186b
- Diagram SHA-256
- c7cd9a39ced002a3d51bb9d5696911b116f628d4ad6de31f58a21512b27bc66f
- 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
MPT is a series of open source and commercially usable large language models from the MosaicML team, pre-trained on 1T tokens and released in multiple sizes and finetuned variants. Architecturally the models are GPT-style decoder-only transformers with performance-optimized layer implementations, changes for greater training stability, and ALiBi in place of positional embeddings, which removes the context length limit.
The released line includes MPT base models trained on next token prediction, MPT instruct models fine-tuned on instruction tasks, and MPT storywriter models fine-tuned for 2500 steps on 65k-token excerpts of fiction books so they can handle very long sequences. The original implementation lives in the llm-foundry repository, and its advanced version with triton kernels and direct flash attention integration is still reachable from Transformers with trust_remote_code; the member traced here is the plain port built from a default configuration.
Key idea. A GPT-style decoder-only LLM with ALiBi instead of positional embeddings, lifting the context length limit.
- mpt
- mpt-7b
- mosaicml
- mosaic mpt
- alibi
- llm-foundry
- mpt instruct
- mpt storywriter
- commercially usable llm
- text generation
- long context
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.