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
O
pen
l
anguage
mo
dels 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:
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-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:
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
.
To load a specific model revision with HuggingFace, simply add the argument
revision
:
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-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
.
reinforcement learning from verifiable rewards on the Dolci-Think-RL-7B dataset. This dataset consits of math, code, instruction-following, and general chat queries.
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
.
Olmo-3-7B-Instruct huggingface.co is an AI model on huggingface.co that provides Olmo-3-7B-Instruct's model effect (), which can be used instantly with this allenai Olmo-3-7B-Instruct model. huggingface.co supports a free trial of the Olmo-3-7B-Instruct model, and also provides paid use of the Olmo-3-7B-Instruct. Support call Olmo-3-7B-Instruct model through api, including Node.js, Python, http.
Olmo-3-7B-Instruct huggingface.co is an online trial and call api platform, which integrates Olmo-3-7B-Instruct's modeling effects, including api services, and provides a free online trial of Olmo-3-7B-Instruct, you can try Olmo-3-7B-Instruct online for free by clicking the link below.
allenai Olmo-3-7B-Instruct online free url in huggingface.co:
Olmo-3-7B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Olmo-3-7B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Olmo-3-7B-Instruct install, users can directly use Olmo-3-7B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.