Model reference · open weights
OLMo-2-0325 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
| Maker | allenai |
|---|---|
| Type | Language models |
| Task | Text gen |
| Parameters (lead) | 32.2B |
| Context | 4k tokens |
| Runs with | transformers |
| Released | 2025-02-23 |
| Popularity | 8k downloads / month |
| Licence | Open weights |
About
We introduce OLMo 2 32B, the largest model in the OLMo 2 family. OLMo 2 was pre-trained on OLMo-mix-1124 and uses Dolmino-mix-1124 for mid-training.
OLMo 2 is the latest in a series of Open Language Models designed to enable the science of language models. We have released all code, checkpoints, logs, and associated training details on GitHub.
| Size | Training Tokens | Layers | Hidden Size | Attention Heads | Context Length |
|---|---|---|---|---|---|
| OLMo 2-7B | 4 Trillion | 32 | 4096 | 32 | 4096 |
| OLMo 2-13B | 5 Trillion | 40 | 5120 | 40 | 4096 |
| OLMo 2-32B | 6 Trillion | 64 | 5120 | 40 | 4096 |
The core models released in this batch include the following:
| Stage | OLMo 2 32B | OLMo 2 13B | OLMo 2 7B |
|---|---|---|---|
| Base Model | allenai/OLMo-2-0325-32B | allenai/OLMo-2-1124-13B | allenai/OLMo-2-1124-7B |
| SFT | allenai/OLMo-2-0325-32B-SFT | allenai/OLMo-2-1124-13B-SFT | allenai/OLMo-2-1124-7B-SFT |
| DPO | allenai/OLMo-2-0325-32B-DPO | allenai/OLMo-2-1124-13B-DPO | allenai/OLMo-2-1124-7B-DPO |
| Final Models (RLVR) | allenai/OLMo-2-0325-32B-Instruct | allenai/OLMo-2-1124-13B-Instruct | allenai/OLMo-2-1124-7B-Instruct |
| Reward Model (RM) | (Same as 7B) | allenai/OLMo-2-1124-7B-RM |
OLMo 2 32B is supported in transformers v4.48 or higher:
pip install transformers>=4.48
If using vLLM, you will need to install from the main branch until v0.7.4 is released. Please
You can use OLMo with the standard HuggingFace transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
olmo = AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-0325-32B")
tokenizer = AutoTokenizer.from_pretrained("allenai/OLMo-2-0325-32B")
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 a key component of any text-based application, but its effectiveness...'
For faster performance, you can quantize the model using the following method:
AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-0325-32B",
torch_dtype=torch.float16,
load_in_8bit=True) # Requires bitsandbytes
The quantized model is more sensitive to data types and CUDA operations. To avoid potential issues, it's recommended to pass the inputs directly to CUDA using:
inputs.input_ids.to('cuda')
We have released checkpoints for these models. For pretraining, the naming convention is stage1-stepXXX-tokensYYYB. For checkpoints with ingredients of the soup, the naming convention is stage2-ingredientN-stepXXX-tokensYYYB
To load a specific model revision with HuggingFace, simply add the argument revision:
olmo = AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-0325-32B", revision="step250000-tokens2098B")
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-2-0325-32B")
branches = [b.name for b in out.branches]
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.
torchrun --nproc-per-node=8 ./src/scripts/official/OLMo2-0325-32B-train.py run01
You can override most configuration options from the command-line. For example, to override the learning rate you could launch the script like this:
torchrun --nproc-per
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys olmo-2-0325 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (olmo-2-0325 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-2-0325","messages":[{"role":"user","content":"Hello"}]}'
Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.