CoolFace
Modelpublic

from-our-page/Olmo-3-1125-32B-stage1-step656000

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
0likes10downloads
Model Card

Model Details

<img alt="OLMo Logo" src="https://cdn-uploads.huggingface.co/production/uploads/65316953791d5a2611426c20/nC44-uxMD6J6H3OHxRtVU.png" width="242px" style="margin-left:'auto' margin-right:'auto' display:'block'">

Model Card for Olmo 3 32B

We introduce Olmo 3, a new family of 7B and 32B models featuring a [TODO: insert gain in performance], among other evaluation improvements, compared to the most recent Olmo 2 7B model. These gains come from training on dolma3-mix-1025] and dolma3-dolmino-mix-1025 datasets and staged training approach.

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

SizeTraining TokensLayersHidden SizeAttention HeadsContext Length
Olmo 3 7B5.93T324096328192
Olmo 3 32B

The core models released in this batch include the following:

**Stage****[Olmo 3 7B]****[Olmo 3 32B]**
Base Model
SFT
DPO
Final Models (RLVR)
Reward Model (RM)

Installation

Olmo 3 is supported in transformers [TODO] vX.XX or higher:

bash
pip install transformers>=X.XX [TODO]

Inference

You can use OLMo with the standard HuggingFace transformers library:

python
from transformers import AutoModelForCausalLM, AutoTokenizer
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-1125-32B")
tokenizer = AutoTokenizer.from_pretrained("allenai/Olmo-3-1125-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:

python
AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-1125-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:

python
inputs.input_ids.to('cuda')

We have released checkpoints for these models. For pretraining, the naming convention is stage1-stepXXX.

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

bash
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-1125-32B", revision="stage1-step10000")

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

python
from huggingface_hub import list_repo_refs
out = list_repo_refs("allenai/Olmo-3-1125-32B")
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. 1.Fine-tune with the OLMo-core repository:
bash
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:

bash
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: The code and model are released under Apache 2.0.
  • —Contact: Technical inquiries: olmo@allenai.org. Press: press@allenai.org
  • —Date cutoff: Dec. 2023.

Model Sources

  • —Project Page: https://allenai.org/olmo
  • —Repositories:
  • —Core repo (training, inference, fine-tuning etc.): https://github.com/allenai/OLMo-core
  • —Evaluation code: https://github.com/allenai/OLMo-Eval
  • —Further fine-tuning code: https://github.com/allenai/open-instruct
  • —Paper: [TBD] <!-- - Technical blog post: (URL) --> <!-- - W&B Logs: [pretraining](), [annealing]() -->

Evaluation

Core model results for MODELS are found below.

ModelTraining FLOPsAverageARC/CHSwagWinoGMMLUDROPNQAGIEvalGSM8kMMLUProTriviaQA
Open weights models
Llama-2-13B1.6 · 10^2354.167.383.974.955.745.638.441.528.123.981.3
Mistral-7B-v0.3n/a58.878.383.177.763.551.837.247.340.13079.3
Llama-3.1-8B7.2 · 10^2361.879.581.676.666.956.433.951.356.534.780.3
Mistral-Nemo-12Bn/a66.985.285.681.569.569.239.754.762.136.784.6
Qwen-2.5-7B8.2 · 10^2367.489.589.774.274.455.829.963.781.545.869.4
Gemma-2-9B4.4 · 10^2367.889.587.378.870.6633857.370.14281.8
Mistral-Small-24Bn/a75.293.391.377.880.774.442.369.179.754.288.8
Gemma-2-27B2.1 · 10^2471.390.788.474.575.770.144.761.575.744.787.4
Qwen-2.5-14B1.6 · 10^2472.294.094.080.079.351.537.371.083.452.879.1
Qwen-2.5-32B3.5 · 10^2474.995.696.084.083.153.137.078.083.359.079.9
Partially open models
StableLM-2-12B2.9 · 10^2362.281.984.577.762.455.537.650.96229.379.9
Zamba-2-7Bn/c65.292.289.479.668.551.736.555.567.232.878.8
Fully open models
Amber-7B0.5 · 10^2335.244.974.565.524.726.118.721.84.811.759.3
OLMo-7B1.0 · 10^2338.346.478.168.528.327.324.823.79.212.164.1
MAP-Neo-7B2.1 · 10^2349.678.472.869.25839.428.945.812.525.965.1
OLMo-0424-7B0.9 · 10^2350.766.980.173.654.35029.643.927.722.158.8
DCLM-7B1.0 · 10^2356.979.882.377.364.439.328.847.546.131.372.1
OLMo-2-1124-7B1.8 · 10^2362.979.883.877.263.760.836.950.467.531.078
OLMo-2-1124-13B4.6 · 10^2368.383.586.481.567.570.746.754.275.135.181.9
OLMo-2-0325-32B1.3 · 10^2472.990.489.778.774.974.350.261.078.843.388.0
Olmo-3-1025-7B
Olmo-3-1025-32B

Model Details

Stage 1: Initial Pretraining
  • —Dataset: dolma3-mix-1025 (6T tokens)
  • —Coverage: X%+ of total pretraining budget
  • —MODEL: ~X epoch
Stage 2: Mid-training
Stage 3: Long Context
  • —Dataset: [dolma3-longmino-mix-1025]() (XX tokens)
  • —Mix composition: XYZ
Model Merging
  • —MODEL:

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.

Citation

A technical manuscript is forthcoming!

Model Card Contact

For errors in this model card, contact olmo@allenai.org.