Skip to content
FossShelf
Home / Categories / For AI Engineers

LLM Foundry

Apache 2.0 LLM fine-tuning toolkit for Llama and Mistral on GPU

Replaces Databricks, Google Cloud Vertex Ai, Amazon Sagemaker

4.46K starsApache-2.0reviewed 9 Jan 2025last commit 25 Mar 2026
Screenshot of LLM Foundry

Who it's for

ML engineers fine-tuning foundation models

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.

Researchers benchmarking LLM methods

Use LLM Foundry to inspect and adapt training, inference, and evaluation code for experiments.

Your work only needs API prompting against hosted models.

Teams building internal model pipelines

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 and fine-tuning workflows

Training code for Hugging Face and MPT models includes examples spanning 125M to 70B parameter ranges.

Dataset preparation tools

`data_prep` converts text data into StreamingDataset format, which helps teams prepare repeatable inputs for model training.

Evaluation and benchmarking scripts

The repo includes evaluation workloads for in-context learning tasks plus training and inference benchmarking scripts.

Inference conversion paths

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

Languages
Python, Shell, Makefile, Dockerfile
Frameworks
PyTorch
Databases
—
Tooling
—

FAQ

What is LLM Foundry?

LLM Foundry is a codebase for training, fine-tuning, evaluating, and deploying large language models with Composer and MosaicML workflows.

Does LLM Foundry include evaluation tools?

Yes. LLM Foundry includes evaluation workflows for academic and custom in-context-learning tasks.

Is LLM Foundry a managed service?

No. It is an open source toolkit and codebase. Teams still need infrastructure or a platform to run workloads.

Similar tools

More in AI Engineers