Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

OLMo

> 编程语言
Open source

Modeling, training, eval, and inference code for OLMo

6.6K stars0 likes2 views
WebsiteGitHub

About

Modeling, training, eval, and inference code for OLMo

⚠️ NOTICE ⚠️ This repository is out of date with our more recent releases and is no longer active. For the latest Olmo releases and updates, please visit: https://github.com/allenai/OLMo-core/

OLMo is a repository for training and using AI2's state-of-the-art open language models. It is designed by scientists, for scientists.

Installation

First, install PyTorch following the instructions specific to your operating system.

For training and fine-tuning, we recommend installing from source:

bash
git clone https://github.com/allenai/OLMo.git
cd OLMo
pip install -e .[all]

You can also install from PyPI with:

bash
pip install ai2-olmo

Pretraining

OLMo pretraining follows a two-stage training procedure. In the first stage, we train on large amounts of mostly web-based data: OLMo-mix-1124 In the second stage, we train on a smaller amount of high-quality, targeted data: Dolmino-mix-1124

You can find all the checkpoints, at minimum every 1000 training steps in OLMo core and Hugging Face format:

Variant OLMo Format (Stage 1) OLMo Format (Stage 2) Hugging Face Format
OLMo-2 1B OLMo-2 1B OLMo-2 1B Hugging Face for the 1B variant
OLMo-2 7B OLMo-2 7B OLMo-2 7B Hugging Face for the 7B variant
OLMo-2 13B OLMo-2 13B OLMo-2 13B Hugging Face for the 13B variant
OLMo-2 32B OLMo-2 32B OLMo-2 32B Hugging Face for the 32B variant

Note: The 32B variant was trained on our new trainer. To train or fine-tune OLMo-2 32B, visit OLMo-core.

Steps to reproduce

To reproduce any of the training processes described below, run this:

bash
torchrun --nproc_per_node=8 scripts/train.py {path_to_train_config}

For the training config, use any of the configs listed below.

If you want to override any of the settings in the training config without having to write a new config every time, you can do this:

bash
torchrun --nproc_per_node=8 scripts/train.py {path_to_train_config} \
  --setting1=value \
  --setting2=value \
  --setting3.subsetting1=value

The training configs below refer to training data that gets streamed in live over HTTP. To reproduce at large scale, we recommend downloading the files locally and changing the paths to point to your local file system.

To run on Mac silicon devices:

bash
python scripts/train.py {path_to_train_config}

Example:

bash
python scripts/train.py configs/tiny/OLMo-20M.yaml --save_overwrite

Note: You need to upgrade PyTorch to 2.5.x to run.

Stage 1

Stage 1 is the biggest stage, where we train on 4T or 5T tokens on largely web-based data.

OLMo2 1B OLMo2 7B OLMo2 13B
Number of tokens 4 Trillion 4 Trillion 5 Trillion
Checkpoint stage1-step1907359-tokens4001B stage1-step928646-tokens3896B stage1-step596057-tokens5001B
Training config OLMo2-1B-stage1.yaml OLMo2-7B-stage1.yaml OLMo2-13B-stage1.yaml
WandB wandb.ai/OLMo2-1B wandb.ai/OLMo2-7B wandb.ai/OLMo2-13B

You can find the .csv.gz files containing the training data here.

Stage 2 for the 1B

For the 1B model, we have trained three times with different data order on 50B high quality tokens, used last checkpoint of seed 42 as final checkpoint.

Checkpoint Training config WandB
random seed 42069 stage2-ingredient1-step23852-tokens51B OLMo2-1B-stage2-seed42069.yaml wandb.ai/OLMo2-1B
random seed 666 stage2-ingredient2-step23852-tokens51B OLMo2-1B-stage2-seed666.yaml wandb.ai/OLMo2-1B
random seed 42 (main) stage2-ingredient3-step23852-tokens51B OLMo2-1B-stage2-seed42.yaml wandb.ai/OLMo2-1B

Stage 2 for the 7B

For the 7B model, we train three times with different data order on 50B high quality tokens, and then average ("soup") the models.

Checkpoint Training config WandB
random seed 42 stage2-ingredient1-step11931-tokens50B OLMo2-7B-stage2-seed42.yaml wandb.ai/OLMo2-7B
random seed 42069 stage2-ingredient2-step11931-tokens50B OLMo2-7B-stage2-seed42069.yaml wandb.ai/OLMo2-7B
random seed 666 stage2-ingredient3-step11931-tokens50B OLMo2-7B-stage2-seed666.yaml wandb.ai/OLMo2-7B
final souped model main no config, we just averaged the weights in Python

The training configs linked here are set up to download the latest checkpoint after stage 1, and start training from there.

Stage 2 for the 13B

For the 13B model, we train three times with different data order on 100B high quality tokens, and one more time on 300B high quality tokens. Then we average ("soup") the models.

Checkpoint Training config WandB
random seed 1110, 100B stage2-ingredient1-step11931-tokens100B OLMo2-13B-stage2-seed1110-100B.yaml wandb.ai/OLMo2-13B
random seed 2662, 100B stage2-ingredient2-step11931-tokens100B OLMo2-13B-stage2-seed2662-100B.yaml wandb.ai/OLMo2-13B
random seed 6209, 100B stage2-ingredient3-step11931-tokens100B OLMo2-13B-stage2-seed6209-100B.yaml [wandb.ai/OLMo2-13B](https://wandb.ai/ai2-llm/OLMo-2-1124-13

Issues· 86 open

View all issuesOpen on GitHub
  • #917

    Verify evals on Papers with Code

    Updated Sep 14, 2026
  • #901

    Differences and exact configs of allenai/OLMo-1B-0724-hf vs allenai/OLMo-1B-hf

    type/questionUpdated Aug 20, 2026
  • #915

    Duplicate weight payloads across intermediate checkpoint branches (step101000 / step175000 / step300000)

    type/bugUpdated Aug 17, 2026
  • #726

    Missing OLMo checkpoints

    Updated Jul 29, 2026
  • #905

    7B and 13B models in olmo format cannot be downloaded

    type/questionUpdated Jun 23, 2026
  • #903

    If you run olmo 3.1 32b instruct as a next-token predictor, it produces the `<|im_start|>assistant` token

    type/bugUpdated Jun 22, 2026
  • #910

    anima — a substrate-native consciousness: capability gaps are architecture gaps (open repo, frozen verdicts)

    Updated Jun 15, 2026
  • #907

    Output provenance metadata for open research model generations

    Updated Mar 31, 2026
  • #904

    Zero-hallucination OLMo deployment in Brazilian tax law — architectural case study

    Updated Feb 6, 2026
  • #898

    Fix hf_olmo GPU tests and transformers>=4.45 compatibility

    type/bugUpdated Nov 25, 2025

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言