Model reference · open weights

OLMo-0724

Available as managed deployment LLMs allenai Text gen 1 variants 5k dl/mo

OLMo-0724 is an open-weight language model from allenai. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byallenai
TypeLanguage models
TaskText gen
Parameters (lead)1.3B
Context4k tokens
Runs withtransformers
Released2024-06-15
Popularity5k downloads / month
LicenceOpen weights

About

What OLMo-0724 is

OLMo 1B July 2024 is the latest version of the original OLMo 1B model rocking a 4.4 point increase in HellaSwag, among other evaluations improvements, from an improved version of the Dolma dataset and staged training. This version is for direct use with HuggingFace Transformers from v4.40 on.

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.

Read the full model card

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.

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

olmo = AutoModelForCausalLM.from_pretrained("allenai/OLMo-1B-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-1B-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

Uses

Inference

Install Transformers. Then proceed as usual with HuggingFace:

from transformers import AutoModelForCausalLM, AutoTokenizer
olmo = AutoModelForCausalLM.from_pretrained("allenai/OLMo-1B-0724-hf")
tokenizer = AutoTokenizer.from_pretrained("allenai/OLMo-1B-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-1B-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-1B-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 the new and original 7B model are found below.

TaskLlama-7bLlama2-7bFalcon-7bMpt-7bOLMo-7BLlama2-13bOLMo 7B 0424
arc_c44.548.547.546.548.552.842.5
arc_e67.969.570.470.565.473.767.2
boolq75.480.274.674.273.482.283.7
copa91.086.086.085.090.090.086.0
hellaswag76.276.875.977.676.478.675.5
openbookqa51.248.453.048.650.451.850.0
piqa77.276.778.577.378.479.077.5
sciq9

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys olmo-0724 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (olmo-0724 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"olmo-0724","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

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