← all repositories
mosaicml/llm-foundry

The Open Assembly Line Behind DBRX and MPT

It is the open-source training, evaluation, and inference stack that Databricks uses to build and ship foundation models like DBRX and MPT.

llm-foundry
Not currently ranked — collecting fresh signals.
star history

What it does LLM Foundry is a full-lifecycle toolkit for building large language models. It bundles data preparation, training, fine-tuning, evaluation, and inference export into one codebase built atop MosaicML’s Composer framework. The repo also houses the training scripts and architecture definitions for the MPT family and the DBRX Mixture-of-Experts model.

The interesting bit Unlike scattered research code, this is the actual assembly line used to produce commercially licensed models at 132B parameters. It bakes in operational details often left as exercises for the reader—Flash Attention, ALiBi context extrapolation, and stability tweaks to curb loss spikes—while still exposing hooks for rapid experimentation.

Key highlights

  • Powers DBRX (132B total / 36B active parameters, 32K context) and the MPT model family (7B–30B).
  • Covers the full workflow: text-to-StreamingDataset conversion, training throughput profiling, in-context-learning evaluation, and HuggingFace/ONNX export.
  • Ships with integration for the MosaicML platform via mcli launch configurations.
  • Several MPT variants and DBRX weights are licensed for commercial use.
  • Includes benchmarking scripts for both training MFU and inference latency.

Caveats

  • Active hardware support is narrow: the maintainers test only on NVIDIA A100 and H100 GPUs, while consumer and AMD cards are “may work” territory.
  • The Docker images and mcli integrations nudge you toward the MosaicML ecosystem; this is not a framework-agnostic trainer.

Verdict Worth a look if you are training or fine-tuning LLMs at scale and want to inherit patterns from the DBRX/MPT teams. Skip it if you need a hardware-agnostic, framework-neutral solution or just want to run inference on off-the-shelf models.

Frequently asked

What is mosaicml/llm-foundry?
It is the open-source training, evaluation, and inference stack that Databricks uses to build and ship foundation models like DBRX and MPT.
Is llm-foundry open source?
Yes — mosaicml/llm-foundry is open source, released under the Apache-2.0 license.
What language is llm-foundry written in?
mosaicml/llm-foundry is primarily written in Python.
How popular is llm-foundry?
mosaicml/llm-foundry has 4.4k stars on GitHub.
Where can I find llm-foundry?
mosaicml/llm-foundry is on GitHub at https://github.com/mosaicml/llm-foundry.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.