πŸ“‹ Model Description


tags:
  • unsloth
license: apache-2.0 base_model:
  • allenai/Olmo-3.1-32B-Instruct
language:
  • en
library_name: transformers datasets:
  • allenai/Dolci-Instruct-RL

[!NOTE]

Includes Unsloth chat template fixes!
For llama.cpp, use --jinja

>



Unsloth Dynamic 2.0 achieves superior accuracy & outperforms other leading quants.



Model Details

Logo for Olmo 3.1 32B Instruct model

Model Card for Olmo-3.1-32B-Instruct

We introduce Olmo 3, a new family of 7B and 32B models both Instruct and Think variants. Long chain-of-thought thinking improves reasoning tasks like math and coding.

Olmo is a series of Open language models designed to enable the science of language models.
These models are pre-trained on the Dolma 3 dataset and post-trained on the Dolci datasets. We are releasing all code, checkpoints, logs (coming soon), and associated training details.

The core models released in this batch include the following:

StageOlmo 3 7B ThinkOlmo (3/3.1) 32B ThinkOlmo 3 7B InstructOlmo 3.1 32B Instruct
Base ModelOlmo-3-7BOlmo-3-32BOlmo-3-7BOlmo-3-32B
SFTOlmo-3-7B-Think-SFTOlmo-3-32B-Think-SFTOlmo-3-7B-Instruct-SFTOlmo-3.1-32B-Instruct-SFT
DPOOlmo-3-7B-Think-DPOOlmo-3-32B-Think-DPOOlmo-3-7B-Instruct-DPOOlmo-3.1-32B-Instruct-DPO
Final Models (RLVR)Olmo-3-7B-ThinkOlmo-3-32B-Think
Olmo-3.1-32B-Think
Olmo-3-7B-InstructOlmo-3.1-32B-Instruct

Installation

Olmo 3 is supported in transformers 4.57.0 or higher:

pip install transformers>=4.57.0

Inference

You can use OLMo with the standard HuggingFace transformers library:

from transformers import AutoModelForCausalLM, AutoTokenizer
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3.1-32B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("allenai/Olmo-3.1-32B-Instruct")
message = ["Language modeling is "]
inputs = tokenizer(message, returntensors='pt', returntokentypeids=False)

optional verifying cuda


inputs = {k: v.to('cuda') for k,v in inputs.items()}


olmo = olmo.to('cuda')


response = olmo.generate(inputs, maxnewtokens=100, dosample=True, topk=50, top_p=0.95)
print(tokenizer.batchdecode(response, skipspecial_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-3.1-32B-Instruct", 
torch_dtype=torch.float16,
loadin8bit=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 post-training, the naming convention is step_XXXX.
NOTE: For this model, due to a checkpointing issue, we only are releasing the final few checkpoints. See our other RL jobs for more detailed intermediate checkpoint suite.

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

olmo = AutoModelForCausalLM.frompretrained("allenai/Olmo-3.1-32B-Instruct", revision="step1375")

Or, you can access all the revisions for the models via the following code snippet:

from huggingfacehub import listrepo_refs
out = listreporefs("allenai/Olmo-3.1-32B-Instruct")
branches = [b.name for b in out.branches]

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-core repository:
torchrun --nproc-per-node=8 ./src/scripts/official/MODEL.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-node=8 ./src/scripts/train/MODEL.py run01 --train_module.optim.lr=6e-3
For more documentation, see the GitHub readme.

Model Description

  • Developed by: Allen Institute for AI (Ai2)
  • Model type: a Transformer style autoregressive language model.
  • Language(s) (NLP): English
  • License: This model is licensed under Apache 2.0. It is intended for research and educational use in accordance with Ai2's Responsible Use Guidelines.
  • Contact: Technical inquiries: [email protected]. Press: [email protected]
  • Date cutoff: Dec. 2024.

Model Sources

  • Project Page: https://allenai.org/olmo
  • Repositories:
- Open-Instruct for DPO and RLVR: https://github.com/allenai/open-instruct - OLMo-Core for pre-training and SFT: https://github.com/allenai/OLMo-core - OLMo-Eval for evaluation: https://github.com/allenai/OLMo-Eval
  • Paper:: https://allenai.org/papers/olmo3

Evaluation

MetricOlmo 3.1 32B Instruct SFTOlmo 3.1 32B Instruct DPOOlmo 3.1 32B InstructApertus 70BQwen 3 32B (No Think)Qwen 3 VL 32B InstructQwen 2.5 32BGemma 3 27BGemma 2 27BOLMo 2 32B
Math
MATH74.486.693.436.284.395.180.287.451.549.2
AIME 202412.735.267.80.3127.975.415.728.94.74.6
AIME 20258.223.357.90.121.364.213.422.90.90.9
OMEGA15.533.342.25.623.444.019.224.09.19.8
Reasoning
BigBenchHard69.082.184.057.080.489.080.982.466.065.6
ZebraLogic30.651.161.79.028.486.724.124.817.213.3
AGI Eval English71.779.479.561.682.489.478.976.970.968.4
Coding
HumanEvalPlus80.885.786.742.983.989.382.679.267.544.4
MBPP+61.563.665.145.867.969.066.665.761.249.0
LiveCodeBench v335.449.654.79.757.570.249.939.028.710.6
IF
IFEval87.787.388.870.487.588.181.985.462.185.8
IFBench29.736.339.726.031.337.236.731.327.836.4
Knowledge & QA
MMLU79.081.980.970.285.888.784.674.676.177.1
PopQA23.728.525.033.525.925.728.030.230.437.2
GPQA41.347.948.627.954.461.444.645.039.936.4
Chat
AlpacaEval 2 LC42.269.759.819.967.984.381.965.539.838.0
Safety92.188.989.577.181.685.882.268.874.484.2

Model Details

#### Stage 1: SFT

#### Stage 2:DPO

  • direct preference optimization on the Dolci-Think-DPO-7B dataset. This dataset consits of math, code, chat, and general knowledge queries.
  • Datasets: Dolci-Think-DPO-7B, Dolci-Instruct-DPO

#### Stage 3: RLVR

  • reinforcement learning from verifiable rewards on the Dolci-Think-RL-7B dataset. This dataset consits of math, code, instruction-following, and general chat queries.
  • Datasets: Dolci-Think-RL-7B, Dolci-Instruct-RL

Bias, Risks, and Limitations

Like any base language model or fine-tuned model without safety filtering, these models can easily be prompted by users to generate harmful and sensitive content. Such content may also be produced unintentionally, especially in cases involving bias, so we recommend that users consider the risks when applying this technology. Additionally, many statements from OLMo or any LLM are often inaccurate, so facts should be verified.

License

This model is licensed under Apache 2.0. It is intended for research and educational use in accordance with Ai2's Responsible Use Guidelines.

Citation

A technical manuscript is forthcoming!

Model Card Contact

For errors in this model card, contact [email protected].

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
Olmo-3.1-32B-Instruct-IQ4_NL.gguf
LFS Q4
17.06 GB Download
Olmo-3.1-32B-Instruct-IQ4_XS.gguf
LFS Q4
16.16 GB Download
Olmo-3.1-32B-Instruct-Q2_K.gguf
LFS Q2
11.18 GB Download
Olmo-3.1-32B-Instruct-Q2_K_L.gguf
LFS Q2
11.29 GB Download
Olmo-3.1-32B-Instruct-Q3_K_M.gguf
LFS Q3
14.53 GB Download
Olmo-3.1-32B-Instruct-Q3_K_S.gguf
LFS Q3
13.09 GB Download
Olmo-3.1-32B-Instruct-Q4_0.gguf
Recommended LFS Q4
17.08 GB Download
Olmo-3.1-32B-Instruct-Q4_1.gguf
LFS Q4
18.86 GB Download
Olmo-3.1-32B-Instruct-Q4_K_M.gguf
LFS Q4
18.14 GB Download
Olmo-3.1-32B-Instruct-Q4_K_S.gguf
LFS Q4
17.15 GB Download
Olmo-3.1-32B-Instruct-Q5_K_M.gguf
LFS Q5
21.29 GB Download
Olmo-3.1-32B-Instruct-Q5_K_S.gguf
LFS Q5
20.71 GB Download
Olmo-3.1-32B-Instruct-Q6_K.gguf
LFS Q6
24.63 GB Download
Olmo-3.1-32B-Instruct-Q8_0.gguf
LFS Q8
31.9 GB Download
Olmo-3.1-32B-Instruct-UD-IQ1_M.gguf
LFS
7.33 GB Download
Olmo-3.1-32B-Instruct-UD-IQ1_S.gguf
LFS
6.75 GB Download
Olmo-3.1-32B-Instruct-UD-IQ2_M.gguf
LFS Q2
10.29 GB Download
Olmo-3.1-32B-Instruct-UD-IQ2_XXS.gguf
LFS Q2
8.3 GB Download
Olmo-3.1-32B-Instruct-UD-IQ3_XXS.gguf
LFS Q3
11.78 GB Download
Olmo-3.1-32B-Instruct-UD-Q2_K_XL.gguf
LFS Q2
11.49 GB Download
Olmo-3.1-32B-Instruct-UD-Q3_K_XL.gguf
LFS Q3
14.79 GB Download
Olmo-3.1-32B-Instruct-UD-Q4_K_XL.gguf
LFS Q4
18.23 GB Download
Olmo-3.1-32B-Instruct-UD-Q5_K_XL.gguf
LFS Q5
21.23 GB Download
Olmo-3.1-32B-Instruct-UD-Q6_K_XL.gguf
LFS Q6
26.03 GB Download
Olmo-3.1-32B-Instruct-UD-Q8_K_XL.gguf
LFS Q8
35.08 GB Download