1@misc{heretic,
2 author = {Weidmann, Philipp Emanuel},
3 title = {Heretic: Fully automatic censorship removal for language models},
4 year = {2025},
5 publisher = {GitHub},
6 journal = {GitHub repository},
7 howpublished = {\url{https://github.com/p-e-w/heretic}}
8}
Original model card:
Model Details
OLMo Logo
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:
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:
python
1from transformers import AutoModelForCausalLM, AutoTokenizer
2olmo = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-Instruct")3tokenizer = AutoTokenizer.from_pretrained("allenai/Olmo-3-7B-Instruct")4message =["Who would win in a fight - a dinosaur or a cow named Moo Moo?"]5inputs = tokenizer(message, return_tensors='pt', return_token_type_ids=False)6# optional verifying cuda7# inputs = {k: v.to('cuda') for k,v in inputs.items()}8# olmo = olmo.to('cuda')9response = olmo.generate(**inputs, max_new_tokens=100, do_sample=True, top_k=50, top_p=0.95)10print(tokenizer.batch_decode(response, skip_special_tokens=True)[0])11>>'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:
python
1from huggingface_hub import list_repo_refs
2out = list_repo_refs("allenai/Olmo-3-7B-Instruct")3branches =[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.
Citation
A technical manuscript is forthcoming!
Model Card Contact
For errors in this model card, contact olmo@allenai.org.