
LLM Foundry
Apache 2.0 LLM fine-tuning toolkit for Llama and Mistral on GPU
Replaces Databricks, Google Cloud Vertex Ai, Amazon Sagemaker

Who it's for
Use LLM Foundry when you need reproducible scripts for model fine-tuning and evaluation instead of a closed managed workflow.
You need a no-code hosted training product with vendor support handling all infrastructure.
Use LLM Foundry to inspect and adapt training, inference, and evaluation code for experiments.
Your work only needs API prompting against hosted models.
Use LLM Foundry when data prep, training, evaluation, and inference conversion should live in versioned code.
Your team lacks GPU operations experience and needs managed deployment first.
The problem
LLM training work becomes hard to reproduce when experiments live inside managed notebooks, private platform jobs, or ad hoc scripts. Teams need consistent data preparation, training, evaluation, and inference workflows, but cloud ML platforms can hide the details behind proprietary job runners and billing. Researchers also need to inspect and modify the training stack when model architecture, dataset format, or benchmarking changes.
How it works
Training code for Hugging Face and MPT models includes examples spanning 125M to 70B parameter ranges.
`data_prep` converts text data into StreamingDataset format, which helps teams prepare repeatable inputs for model training.
The repo includes evaluation workloads for in-context learning tasks plus training and inference benchmarking scripts.
The `inference` directory supports converting models to Hugging Face or ONNX format and generating responses through scripts.
Features
- Training and fine-tuning workflows
- Dataset preparation tools
- Evaluation and benchmarking scripts
- Inference conversion paths
Recommended for this setup
Strengths
- Research-friendly source control: LLM Foundry exposes the training stack as code, which helps research teams inspect callbacks, datasets, scripts, and model behavior.
- Covers more than training: Data preparation, training, fine-tuning, evaluation, inference, and benchmarking coverage reduces glue work across the model lifecycle.
- Apache-2.0 license: Apache-2.0 licensing suits commercial ML engineering workflows that need source-level inspection and modification.
Trade-offs
- Requires ML infrastructure skill: LLM Foundry is code-first. Teams still need GPU infrastructure, experiment tracking discipline, and model operations expertise.
- Not a managed platform by itself: It can launch workloads through MosaicML tooling, but the repository is not a turnkey replacement for SageMaker, Vertex AI, or Databricks managed operations.
Tech stack
FAQ
LLM Foundry is a codebase for training, fine-tuning, evaluating, and deploying large language models with Composer and MosaicML workflows.
Yes. LLM Foundry includes evaluation workflows for academic and custom in-context-learning tasks.
No. It is an open source toolkit and codebase. Teams still need infrastructure or a platform to run workloads.