/ Модель

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

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

OLMo-2-1124-7B-RM-Preview

Классификация текстаТекст → label3 профессии

Англоязычная reward-модель OLMo 2 на 6,9 млрд параметров оценивает текстовые ответы и служит для ранжирования предпочтений и обучения RLVR.

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

Бенчмарки

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

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

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

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

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

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

OLMo-2-1124-7B-RM-Preview — англоязычная reward-модель Allen Institute for AI (Ai2), созданная на основе диалоговой OLMo 2 7B SFT и обученная на варианте набора Tülu 3 и данных предпочтений. Это плотная модель семейства OLMo 2 с 6,9 млрд параметров, контекстом до 4096 токенов и архитектурой классификации последовательностей; она принимает текст и оценивает ответы для задач ранжирования предпочтений и обучения с подкреплением.

Модель использовалась для инициализации value-моделей в обучении RLVR. Карточка не приводит отдельного бенчмарка reward-модели, поэтому её качество как самостоятельного оценщика не подтверждено. OLMo 2 имеет ограниченное обучение безопасности и может выдавать проблемные ответы при соответствующих запросах. Веса распространяются по лицензии Apache 2.0.

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

  • оценка предпочтительности ответа чат-модели
  • ранжирование нескольких ответов по качеству
  • подготовка сигналов вознаграждения для RLVR
  • инициализация value-моделей при обучении с подкреплением

Ограничения

Reward-модель отдельно не оценивалась в бенчмарках, поэтому её качество как самостоятельного оценщика не подтверждено. У модели ограниченное обучение безопасности, и она может выдавать проблемные ответы.

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

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

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

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

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

Открыть на Hugging Face

OLMo-2-1124-7B-RM

OLMo 2 7B RM November 2024 is reward model trained on top of the OLMo 2 7B SFT November 2024 model. It has been trained using an OLMo-specific variant of the Tülu 3 dataset and this preference 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 the OLMo 2 paper (forthcoming) or Tülu 3 paper for more details!

This reward model was used to initialize value models during RLVR training for both 7B and 13B RLVR training. Note we used a slightly different mix to the final mixture used for DPO training for this RM.

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/OLMo2-7B-1124-SFT

Model Sources

Using the model

Loading with HuggingFace

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

# please install from our custom branch
# pip install git+https://github.com/vwxyzjn/transformers.git@olmo1124_classification
from transformers.models.olmo_1124.modeling_olmo_1124 import Olmo1124ForSequenceClassification, Olmo1124Config
AutoModelForSequenceClassification.register(Olmo1124Config, Olmo1124ForSequenceClassification)
from transformers import AutoModelForSequenceClassification

olmo_model = AutoModelForSequenceClassification.from_pretrained("allenai/OLMo-2-1124-7B-RM")

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

Note we did not benchmark the RM since it is just used for initialization during RLVR training. We provide the results of the OLMo-2 models below:

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

RM training:

  • Learning Rate: 3E-6
  • Effective Batch Size: 256
  • Max. Sequence Length: 4096
  • Learning Rate Schedule: None
  • 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.

Citation

A technical manuscript is forthcoming!

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

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

GPU в ailist

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

Нельзя запустить

Архитектура olmo_1124 неизвестна transformers в образе рантайма.

Класс архитектуры
Olmo1124ForSequenceClassification
Ревизия весов
cf8577b

0 моделей