在 OLMo-2 模型首次发布时,我们发现后期训练模型未采用与基础模型相同的预分词逻辑。因此,我们重新训练了新的后期训练模型。新模型将沿用原模型名称发布,而旧模型则添加后缀“-preview”提供。有关旧版模型集合,请参见 OLMo 2 预览版后期训练模型。
OLMo 2 7B SFT 2024年11月版是 OLMo 2 7B 2024年11月版 模型的后期训练变体,该模型已在针对 OLMo 定制的 Tülu 3 数据集 变体上完成监督微调。 Tülu 3 旨在实现聊天之外多种任务的最先进性能,例如 MATH、GSM8K 和 IFEval。 更多详情,请查阅 OLMo 2 论文 或 Tülu 3 论文!
OLMo 是一系列开源语言模型(Open Language Models),旨在推动语言模型科学研究。 这些模型基于 Dolma 数据集训练。我们将发布所有代码、检查点、日志(即将推出)及相关训练细节。 本批次发布的核心模型包括:
OLMo 2 将在 Transformers 的下一个版本中得到支持,您需要通过以下命令从主分支安装:
pip install --upgrade git+https://github.com/huggingface/transformers.git若要通过 HuggingFace 加载模型,请使用以下代码片段:
from transformers import AutoModelForCausalLM
olmo_model = AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-1124-7B-SFT")我们模型的聊天模板格式如下:
<|endoftext|><|user|>\nHow are you doing?\n<|assistant|>\nI'm just a computer program, so I don't have feelings, but I'm functioning as expected. How can I assist you today?<|endoftext|>或者使用展开的新行:
<|endoftext|><|user|>
How are you doing?
<|assistant|>
I'm just a computer program, so I don't have feelings, but I'm functioning as expected. How can I assist you today?<|endoftext|>它也嵌入在分词器中,用于 tokenizer.apply_chat_template。
在 Ai2 演示中,我们默认使用以下系统提示:
You are OLMo 2, a helpful and harmless AI Assistant built by the Allen Institute for AI.该模型在训练时未考虑特定的系统提示。
OLMo-2 模型的安全训练有限,且不像 ChatGPT 那样在部署时自动进行响应的闭环过滤,因此该模型可能会生成有问题的输出(尤其是在被提示这样做时)。 有关此点的示例,请参见 Falcon 180B 模型卡片。
| 模型 | 平均值 | AlpacaEval | BBH | DROP | GSM8k | IFEval | MATH | MMLU | Safety | PopQA | TruthQA |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 开源权重模型 | |||||||||||
| Gemma-2-9B-it | 51.9 | 43.7 | 2.5 | 58.8 | 79.7 | 69.9 | 29.8 | 69.1 | 75.5 | 28.3 | 61.4 |
| Ministral-8B-Instruct | 52.1 | 31.4 | 56.2 | 56.2 | 80.0 | 56.4 | 40.0 | 68.5 | 56.2 | 20.2 | 55.5 |
| Mistral-Nemo-Instruct-2407 | 50.9 | 45.8 | 54.6 | 23.6 | 81.4 | 64.5 | 31.9 | 70.0 | 52.7 | 26.9 | 57.7 |
| Qwen-2.5-7B-Instruct | 57.1 | 29.7 | 25.3 | 54.4 | 83.8 | 74.7 | 69.9 | 76.6 | 75.0 | 18.1 | 63.1 |
| Llama-3.1-8B-Instruct | 58.9 | 25.8 | 69.7 | 61.7 | 83.4 | 80.6 | 42.5 | 71.3 | 70.2 | 28.4 | 55.1 |
| Tülu 3 8B | 60.4 | 34.0 | 66.0 | 62.6 | 87.6 | 82.4 | 43.7 | 68.2 | 75.4 | 29.1 | 55.0 |
| Qwen-2.5-14B-Instruct | 60.8 | 34.6 | 34.0 | 50.5 | 83.9 | 82.4 | 70.6 | 81.1 | 79.3 | 21.1 | 70.8 |
| 完全开源模型 | |||||||||||
| OLMo-7B-Instruct | 28.2 | 5.2 | 35.3 | 30.7 | 14.3 | 32.2 | 2.1 | 46.3 | 54.0 | 17.1 | 44.5 |
| OLMo-7B-0424-Instruct | 33.1 | 8.5 | 34.4 | 47.9 | 23.2 | 39.2 | 5.2 | 48.9 | 49.3 | 18.9 | 55.2 |
| OLMoE-1B-7B-0924-Instruct | 35.5 | 8.5 | 37.2 | 34.3 | 47.2 | 46.2 | 8.4 | 51.6 | 51.6 | 20.6 | 49.1 |
| MAP-Neo-7B-Instruct | 42.9 | 17.6 | 26.4 | 48.2 | 69.4 | 35.9 | 31.5 | 56.5 | 73.7 | 18.4 | 51.6 |
| OLMo-2-7B-SFT | 50.2 | 10.2 | 49.7 | 59.6 | 74.6 | 66.9 | 25.3 | 61.1 | 82.1 | 23.6 | 48.6 |
| OLMo-2-7B-DPO | 54.2 | 27.9 | 46.7 | 60.2 | 82.6 | 73.0 | 30.3 | 60.8 | 81.0 | 23.5 | 56.0 |
| OLMo-2-13B-SFT | 55.3 | 11.5 | 59.6 | 71.3 | 76.3 | 68.6 | 29.5 | 68.0 | 82.3 | 29.4 | 57.1 |
| OLMo-2-13B-DPO | 60.6 | 38.3 | 57.9 | 71.5 | 82.3 | 80.2 | 35.2 | 67.9 | 79.7 | 29.0 | 63.9 |
| OLMo-2-7B-1124–Instruct | 54.8 | 29.1 | 46.6 | 60.5 | 85.1 | 72.3 | 32.5 | 61.3 | 80.6 | 23.2 | 56.5 |
| OLMo-2-13B-1124-Instruct | 62.0 | 39.5 | 58.8 | 71.5 | 87.4 | 82.6 | 39.2 | 68.5 | 79.1 | 28.8 | 64.3 |
OLMo 2 采用 Apache 2.0 许可协议。 OLMo 2 旨在用于研究和教育用途。 欲了解更多信息,请参阅我们的负责任使用指南。 本模型使用包含第三方模型生成输出的混合数据集进行了微调,因此需遵守附加条款:Gemma 使用条款。
@article{olmo20242olmo2furious,
title={2 OLMo 2 Furious},
author={Team OLMo and Pete Walsh and Luca Soldaini and Dirk Groeneveld and Kyle Lo and Shane Arora and Akshita Bhagia and Yuling Gu and Shengyi Huang and Matt Jordan and Nathan Lambert and Dustin Schwenk and Oyvind Tafjord and Taira Anderson and David Atkinson and Faeze Brahman and Christopher Clark and Pradeep Dasigi and Nouha Dziri and Michal Guerquin and Hamish Ivison and Pang Wei Koh and Jiacheng Liu and Saumya Malik and William Merrill and Lester James V. Miranda and Jacob Morrison and Tyler Murray and Crystal Nam and Valentina Pyatkin and Aman Rangapur and Michael Schmitz and Sam Skjonsberg and David Wadden and Christopher Wilhelm and Michael Wilson and Luke Zettlemoyer and Ali Farhadi and Noah A. Smith and Hannaneh Hajishirzi},
year={2024},
eprint={2501.00656},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2501.00656},
}