█

AI/TLDR

Buy me a coffee
Buy me a coffee

Open-Instruct

AllenAI's open codebase for instruction-tuning and post-training LLMs

Fine-Tuning FrameworksOpen source
Language
Python
License
Apache-2.0
$uv sync
IN SHORT

What is Open-Instruct?

Open-Instruct is AllenAI's open codebase for instruction-tuning and post-training pretrained language models on publicly available datasets. It sits in the Fine-Tuning Frameworks category of the Training & Fine-Tuning tools and is open-source, written in Python and licensed Apache-2.0. To get started: install dependencies.

Overview

Open-Instruct is AllenAI's open codebase for instruction-tuning and post-training pretrained language models on publicly available datasets. It collects the scripts, data formats, and training recipes the team used to build the Tulu and OLMo model families, so you can reproduce their work or apply the same methods to your own base models.

It covers the main stages of modern post-training: supervised finetuning (SFT) on instruction data, preference tuning with DPO, and reinforcement learning with verifiable rewards (RLVR). The repo also ships reward-model training and a unified format for mixing instruction datasets, plus LoRA and QLoRA for parameter-efficient finetuning.

It is aimed at researchers and ML engineers who want a documented, reproducible pipeline rather than a one-line wrapper. As a fine-tuning framework, it sits alongside the released model checkpoints and the TÜLU 3 paper, giving you the full recipe from base model to instruction-following model.

What it does

  • Supervised finetuning (SFT) of pretrained models on instruction datasets in a unified format
  • Preference tuning with DPO and other preference-finetuning methods
  • Reinforcement learning with verifiable rewards (RLVR), plus reward-model (RM) training
  • Ready-made recipes for the Tulu 3 and OLMo 2 model families (Llama 3.1 8B/70B, OLMo-2 7B/13B)
  • LoRA and QLoRA support for parameter-efficient finetuning
  • Released checkpoints on HuggingFace for SFT, DPO, RLVR and reward-model stages

Getting started

Open-Instruct uses uv for dependency management and ships ready-to-run training scripts. Clone the repo, sync dependencies, then launch one of the recipe scripts.

Install dependencies

The repository uses uv for installation and running code. From the cloned repo, sync the environment.

bashbash
uv sync

Run supervised finetuning (SFT)

Launch the Tulu 3 8B SFT recipe to instruction-tune a base model.

bashbash
bash scripts/train/tulu3/finetune_8b.sh

Run preference tuning (DPO)

After SFT, run the DPO recipe to align the model on preference data.

bashbash
bash scripts/train/tulu3/dpo_8b.sh

Try the released models

If you just want to use the results, download the Tulu and OLMo checkpoints from HuggingFace (for example allenai/Llama-3.1-Tulu-3-8B) or try the free demo at playground.allenai.org.

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Reproduce the Tulu 3 or OLMo 2 post-training pipeline from base model to instruction-following model
  • Instruction-tune your own base model with SFT, DPO and RLVR using documented recipes
  • Train a reward model and run RLVR experiments on verifiable-reward tasks
  • Run parameter-efficient finetuning with LoRA or QLoRA when GPU memory is limited

How Open-Instruct compares

Open-Instruct alongside other open-source fine-tuning frameworks tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Unsloth★ 80.5kA library that speeds up LoRA and QLoRA fine-tuning while cutting memory use, aimed at training models on a single GPU.
LLaMA-Factory★ 76.3kAn end-to-end training suite with a web UI that covers pre-training, supervised fine-tuning, and RLHF for hundreds of LLMs and multimodal models.
PEFT★ 21.9kHugging Face's library of parameter-efficient fine-tuning methods such as LoRA, DoRA, and prompt tuning that train small adapters instead of full models.
FinGPT★ 21.7kFinGPT is an open-source project of financial LLMs, fine-tuned with LoRA on news and tweet data for tasks like sentiment analysis, relation extraction, and stock-move forecasting.
ms-swift★ 16.2kModelScope's framework for fine-tuning and deploying 600+ LLMs and 300+ multimodal models, supporting PEFT and full-parameter SFT, DPO, and GRPO.
LitGPT★ 13.8kAn open-source toolkit from Lightning AI to pretrain, finetune, and serve 20+ large language models, each written from scratch for speed and full control.
Axolotl★ 12.8kA config-driven tool for fine-tuning and post-training open LLMs that supports SFT, LoRA/QLoRA, DPO, GRPO, and multi-GPU training across many model families.
Open-Instruct★ 4kAllenAI's open codebase for instruction-tuning and post-training LLMs