CoolFace
Modelpublic

unsloth/Olmo-3-7B-Instruct-GGUF

sourceHugging Faceapache-2.0updated 10mo agoView on Hugging Face
12likes2.6kdownloads
Model Card

<div> <p style="margin-top: 0;margin-bottom: 0;"> <em><a href="https://docs.unsloth.ai/basics/unsloth-dynamic-v2.0-gguf">Unsloth Dynamic 2.0</a> achieves superior accuracy & outperforms other leading quants.</em> </p> <div style="display: flex; gap: 5px; align-items: center; "> <a href="https://github.com/unslothai/unsloth/"> <img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133"> </a> <a href="https://discord.gg/unsloth"> <img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173"> </a> <a href="https://docs.unsloth.ai/"> <img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143"> </a> </div> </div>

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 7B 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:

Installation

Olmo 3 is supported in transformers 4.57.0 or higher:

bash
pip install transformers>=4.57.0

Inference

You can use OLMo with the standard HuggingFace transformers library:

python
from transformers import AutoModelForCausalLM, AutoTokenizer
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("allenai/Olmo-3-7B-Instruct")
message = ["Who would win in a fight - a dinosaur or a cow named Moo Moo?"]
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])
>> 'This is a fun and imaginative question! Let’s break it down...'

For faster performance, you can quantize the model using the following method:

python
AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Instruct", 
    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 post-training, the naming convention is step_XXXX.

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

bash
olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Instruct", revision="step_300")

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-7B-Instruct")
branches = [b.name for b in out.branches]

Chat template

Default System Message

The default system prompt for this model is:

<|im_start|>system
You are a helpful function-calling AI assistant. 
You do not currently have access to any functions. <functions></functions><|im_end|>

Chat Format

The chat template for this model is formatted as:

<|im_start|>system
You are a helpful function-calling AI assistant. 
You do not currently have access to any functions. <functions></functions><|im_end|>
<|im_start|>user
Who would win in a fight - a dinosaur or a cow named Moo Moo?<|im_end|>
<|im_start|>assistant
This is a fun and imaginative question! Let’s break it down...
Moo Moo the cow would certinaly win.
<|endoftext|>

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: olmo@allenai.org. Press: press@allenai.org
  • 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: [TBD] <!-- - Technical blog post: (URL) --> <!-- - W&B Logs: SFT), DPO), RLVR) -->

Evaluation

**Skill****Benchmark****Olmo 3 Instruct 7B SFT****Olmo 3 Instruct 7B DPO****Olmo3 Instruct 7B****Qwen 3 8B (no reasoning)****Qwen 3 VL 8B Instruct****Qwen 2.5 7B****Olmo 2 7B Instruct****Apertus 8B Instruct****Granite 3.3 8B Instruct**
MathMATH65.179.687.382.391.671.030.121.967.3
AIME 20246.723.544.326.255.111.31.30.57.3
AIME 20257.220.432.521.743.36.30.40.26.3
OMEGA14.422.828.920.532.313.75.25.010.7
ReasoningBigBenchHard51.069.371.273.785.668.843.842.261.2
ZebraLogic18.028.432.925.464.310.75.35.317.6
AGI Eval English59.264.064.476.084.569.856.150.864.0
CodingHumanEvalPlus69.872.977.279.882.974.925.834.464.0
MBPP+56.555.960.264.466.362.640.742.154.0
LiveCodeBench v320.018.829.553.255.934.57.27.811.5
IFIFEval81.782.085.686.387.873.472.271.477.5
IFBench27.429.332.329.334.028.426.722.122.3
KnowledgeMMLU67.169.169.180.483.677.261.662.763.5
QAPopQA16.520.714.120.426.521.525.525.528.9
GPQA30.037.940.444.651.135.631.328.833.0
ChatAlpacaEval 2 LC21.843.340.949.873.523.018.38.128.6
Tool UseSimpleQA74.279.879.379.090.378.0
LitQA238.043.338.239.630.729.8
BFCL48.949.649.860.266.255.8
SafetySafety89.290.287.378.080.273.493.172.273.7

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-7B
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-7B

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 olmo@allenai.org.