Model reference · open weights

OLMo-0724

LLMs allenai Text gen 2 builds Open weights 7k dl/mo

OLMo-0724 is an open-weight language model from allenai. OLMo-1B-0724-hf (FP32) weighs 2.6 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • OLMo-0724 is a 6.9 billion parameter autoregressive language model developed by Allen Institute for AI for text generation tasks.
  • The model supports English with a context length of 4096 tokens and is released under the Apache 2.0 license.
  • It is trained on the Dolma dataset and features a Transformer architecture with 32 layers and 32 attention heads.

Summary of the allenai/OLMo-7B-0724-hf model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byallenai
Released2024-07-12
Parameters6.9B
VRAM2.6 GB for the weights

What it runs on

Memory and cards for OLMo-1B-0724-hf (FP32)

2.6 GBweights, file size
131 MBcache per 1K tokens
582 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB15all 4K11.6 GB
RTX 4060 Ti 16 GB22all 4K15.4 GB
RTX 3090 24 GB37all 4K23.4 GB
RTX 4090 24 GB37all 4K23.4 GB
RTX 5090 32 GB51all 4K31.0 GB
L40S 48 GB76all 4K44.0 GB
A100 80 GB139all 4K78.2 GB
H100 80 GB134all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB163all 4K93.8 GB
DGX Spark (GB10) 128 GB unified188all 4K107 GB
H200 141 GB245all 4K138 GB
B200 180 GB316all 4K176 GB
Memory needed at each load
Requests at once4K tokens each
13.7 GB
55.8 GB
87.4 GB
1611.7 GB
3220.3 GB
6437.5 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
OLMo-7B-0724-hf ↗ 6.9BFP32 13.8 GB2× RTX 3060 12 GB
OLMo-1B-0724-hf (above) ↗ 1.3BFP32 2.6 GBRTX 3060 12 GB

From the model card

What allenai says about OLMo-0724

Read the model card

OLMo is a series of Open Language Models designed to enable the science of language models. The OLMo models are trained on the Dolma dataset. We release all code, checkpoints, logs, and details involved in training these models.

Model Details

The core models released in this batch are the following:

SizeTraining TokensLayersHidden SizeAttention HeadsContext Length
OLMo 1B July 20243.05 Trillion162048164096
OLMo 7B July 20242.75 Trillion324096324096

[Coming soon] We are releasing many checkpoints for these models, for every 1000 training steps. The naming convention is stepXXX-tokensYYYB. These checkpoints are already available at OLMo 7B April 2024 and will be copied here soon.

To load a specific model revision with HuggingFace, simply add the argument revision:

olmo = AutoModelForCausalLM.from_pretrained("allenai/OLMo-7B-0724-hf", revision="step1000-tokens4B")

All revisions/branches are listed in the file revisions.txt. Or, you can access all the revisions for the models via the following code snippet:

from huggingface_hub import list_repo_refs
out = list_repo_refs("allenai/OLMo-7B-0724-hf")
branches = [b.name for b in out.branches]

Model Description

  • Developed by: Allen Institute for AI (AI2)
  • Supported by: Databricks, Kempner Institute for the Study of Natural and Artificial Intelligence at Harvard University, AMD, CSC (Lumi Supercomputer), UW
  • Model type: a Transformer style autoregressive language model.
  • Language(s) (NLP): English
  • License: The code and model are released under Apache 2.0.
  • Contact: Technical inquiries: olmo at allenai dot org. Press: press at allenai dot org
  • Date cutoff: Oct. 2023, with most data from Feb./March 2023 based on Dolma dataset version.

Model Sources

  • Project Page: https://allenai.org/olmo
  • Repositories:
    • Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo
    • Evaluation code: https://github.com/allenai/OLMo-Eval
    • Further fine-tuning code: https://github.com/allenai/open-instruct
  • Paper: Link
  • Technical blog post: https://blog.allenai.org/olmo-1-7-7b-a-24-point-improvement-on-mmlu-92b43f7d269d
  • W&B Logs: pretraining, annealing

Uses

Inference

Proceed as usual with HuggingFace:

from transformers import AutoModelForCausalLM, AutoTokenizer
olmo = AutoModelForCausalLM.from_pretrained("allenai/OLMo-7B-0724-hf")
tokenizer = AutoTokenizer.from_pretrained("allenai/OLMo-7B-0724-hf")
message = ["Language modeling is "]
inputs = tokenizer(message, return_tensors='pt', return_token_type_ids=False)
# optional verifying cuda
# inputs = {k: v.to('cuda') for k,v in inputs.items()}
# olmo = olmo.to('cuda')
response = olmo.generate(**inputs, max_new_tokens=100, do_sample=True, top_k=50, top_p=0.95)
print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])
>> 'Language modeling is the first step to build natural language generation...'

Alternatively, with the pipeline abstraction:

from transformers import pipeline
olmo_pipe = pipeline("text-generation", model="allenai/OLMo-7B-0724-hf")
print(olmo_pipe("Language modeling is "))
>> 'Language modeling is a branch of natural language processing that aims to...'

Or, you can make this slightly faster by quantizing the model, e.g. AutoModelForCausalLM.from_pretrained("allenai/OLMo-7B-0724-hf", torch_dtype=torch.float16, load_in_8bit=True) (requires bitsandbytes). The quantized model is more sensitive to typing / cuda, so it is recommended to pass the inputs as inputs.input_ids.to('cuda') to avoid potential issues.

Fine-tuning

Model fine-tuning can be done from the final checkpoint (the main revision of this model) or many intermediate checkpoints. Two recipes for tuning are available.

  1. Fine-tune with the OLMo repository:
torchrun --nproc_per_node=8 scripts/train.py {path_to_train_config} \
    --data.paths=[{path_to_data}/input_ids.npy] \
    --data.label_mask_paths=[{path_to_data}/label_mask.npy] \
    --load_path={path_to_checkpoint} \
    --reset_trainer_state

For more documentation, see the GitHub readme.

  1. Further fine-tuning support is being developing in AI2's Open Instruct repository. Details are here.

Evaluation

Core model results for OLMo 7B models are found below.

TaskLlama-7bLlama2-7bFalcon-7bMpt-7bOLMo-7BLlama2-13bOLMo 7B April 2024OLMo 7B July 2024
arc_c44.548.547.546.548.552.842.543.8
arc_e67.969.570.470.565.473.767.268.8
boolq75.480.274.674.273.482.283.778.9
copa91.086.086.085.090.090.086.084.0
hellaswag76.276.875.977.676.478.675.577.4
openbookqa51.248.4

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms