/ Модель

Характеристики

Контекст
4 096 токенов
Параметры
6,9 млрд
Размер весов
14,6 ГБ
Лицензия
Apache 2.0
Архитектура
olmo2 · dense
Базовая модель
OLMo-2-1124-7B-SFT
Библиотека
transformers
Опубликована
25 ноя 2024

OLMo-2-1124-7B-DPO-Preview

Генерация текстаТекст → текст13 профессий

Англоязычная диалоговая модель OLMo 2 на 6,9 млрд параметров, дообученная методом DPO для следования инструкциям, ответов на вопросы и решения разнообразных задач.

234скачиваний за 30 дней2лайкавеса обновлены6 янв 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

OLMo-2-1124-7B-DPO-Preview — диалоговая языковая модель Allen Institute for AI (AI2), основанная на плотной архитектуре OLMo 2 и содержащая 6,9 млрд параметров. Она дообучена методом DPO на варианте набора Tülu 3 после supervised fine-tuning; базовая модель в метаданных указана как allenai/OLMo-2-1124-7B-SFT. Модель принимает текст и генерирует текст, поддерживает диалоговый шаблон и контекст до 4096 токенов.

Модель предназначена для диалога, выполнения инструкций, ответов на вопросы и решения разнообразных задач, включая математические задачи и следование формату. В первую очередь она рассчитана на английский язык. Веса доступны в формате PyTorch и распространяются по лицензии Apache 2.0.

Карточка предупреждает, что обучение безопасности ограничено: без дополнительной фильтрации модель может выдавать проблемные ответы, особенно при соответствующих запросах. Перед использованием в пользовательских сценариях следует самостоятельно оценить качество и организовать необходимые меры контроля.

Сценарии применения

  • диалоговый помощник на английском языке
  • ответы на вопросы и выполнение текстовых инструкций
  • решение математических задач и задач на рассуждение
  • генерация текстов в заданном формате
  • оценка и исследование поведения языковых моделей

Ограничения

Модель прошла ограниченное обучение безопасности и может выдавать проблемные ответы; карточка также не заявляет об автоматической фильтрации таких ответов. Основная целевая область — английский язык.

Для каких профессий подходит13

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

OLMo-2-1124-7B-DPO

OLMo 2 7B DPO November 2024 is post-trained variant of the OLMo 2 7B November 2024 model, which has undergone supervised finetuning on an OLMo-specific variant of the Tülu 3 dataset and further DPO training on this dataset. Tülu 3 is designed for state-of-the-art performance on a diversity of tasks in addition to chat, such as MATH, GSM8K, and IFEval. Check out OLMo 2 paper (forthcoming) or Tülu 3 paper for more details!

OLMo is a series of Open Language Models designed to enable the science of language models. These models are trained on the Dolma dataset. We are releasing all code, checkpoints, logs (coming soon), and associated training details. The core models released in this batch include the following:

StageOLMo 2 7BOLMo 2 13B
Base Modelallenai/OLMo2-7B-1124allenai/OLMo-2-13B-1124
SFTallenai/OLMo-2-1124-7B-SFTallenai/OLMo-2-1124-13B-SFT
DPOallenai/OLMo-2-1124-7B-DPOallenai/OLMo-2-1124-13B-DPO
Final Models (RLVR)allenai/OLMo-2-1124-7B-Instructallenai/OLMo-2-1124-13B-Instruct
Reward Model (RM)allenai/OLMo-2-1124-7B-RM(Same as 7B)

Model description

  • Model type: A model trained on a mix of publicly available, synthetic and human-created datasets.
  • Language(s) (NLP): Primarily English
  • License: Apache 2.0
  • Finetuned from model: allenai/OLMo-2-7B-1124-SFT

Model Sources

Installation

OLMo 2 will be supported in the next version of Transformers, and you need to install it from the main branch using:

pip install --upgrade git+https://github.com/huggingface/transformers.git

Using the model

Loading with HuggingFace

To load the model with HuggingFace, use the following snippet:

from transformers import AutoModelForCausalLM

olmo_model = AutoModelForCausalLM.from_pretrained("allenai/OLMo-2-1124-7B-DPO")

Chat template

The chat template for our models is formatted as:

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

Or with new lines expanded:

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

It is embedded within the tokenizer as well, for tokenizer.apply_chat_template.

System prompt

In Ai2 demos, we use this system prompt by default:

You are OLMo 2, a helpful and harmless AI Assistant built by the Allen Institute for AI.

The model has not been trained with a specific system prompt in mind.

Bias, Risks, and Limitations

The OLMo 2 models have limited safety training, but are not deployed automatically with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so). See the Falcon 180B model card for an example of this.

Performance

ModelAverageAlpacaEvalBBHDROPGSM8kIFEvalMATHMMLUSafetyPopQATruthQA
Open weights models
Gemma-2-9B-it51.943.72.558.879.769.929.869.175.528.361.4
Ministral-8B-Instruct52.131.456.256.280.056.440.068.556.220.255.5
Mistral-Nemo-Instruct-240750.945.854.623.681.464.531.970.052.726.957.7
Qwen-2.5-7B-Instruct57.129.725.354.483.874.769.976.675.018.163.1
Llama-3.1-8B-Instruct58.925.869.761.783.480.642.571.370.228.455.1
Tülu 3 8B60.434.066.062.687.682.443.768.275.429.155.0
Qwen-2.5-14B-Instruct60.834.634.050.583.982.470.681.179.321.170.8
Fully open models
OLMo-7B-Instruct28.25.235.330.714.332.22.146.354.017.144.5
OLMo-7B-0424-Instruct33.18.534.447.923.239.25.248.949.318.955.2
OLMoE-1B-7B-0924-Instruct35.58.537.234.347.246.28.451.651.620.649.1
MAP-Neo-7B-Instruct42.917.626.448.269.435.931.556.573.718.451.6
OLMo-2-7B-SFT50.09.350.758.271.268.025.162.082.425.047.8
OLMo-2-7B-DPO55.029.947.058.882.474.531.263.481.524.557.2
OLMo-2-13B-SFT55.712.058.871.875.771.531.167.382.829.356.2
OLMo-2-13B-DPO61.038.358.571.984.280.635.068.580.628.963.9
OLMo-2-7B-1124–Instruct55.731.048.558.985.275.631.363.981.224.656.3
OLMo-2-13B-1124-Instruct61.437.558.472.187.480.439.768.677.528.863.9

Hyperparameters

Note we use a length-normalized variant of DPO for training.

DPO:

  • Learning Rate: 8E-7 (7B, 13B)
  • Beta: 5
  • Effective Batch Size: 128 (7B, 13B)
  • Max. Sequence Length: 2048
  • Learning Rate Schedule: Linear
  • LR Warmup Ratio: 0.1
  • Num. Epochs: 1

License and use

OLMo 2 is licensed under the Apache 2.0 license. OLMo 2 is intended for research and educational use. For more information, please see our Responsible Use Guidelines. This model has been fine-tuned using a dataset mix with outputs generated from third party models and are subject to additional terms: Gemma Terms of Use.

Citation

@misc{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}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Olmo2ForCausalLM
Ревизия весов
374a7e6

0 моделей