Datasets:
chosen listlengths 2 52 | rejected listlengths 2 52 | source stringclasses 7
values |
|---|---|---|
[
{
"content": "Python code to break down contigs from a megascaffold fasta file into individual fasta files. \n\nHere is the format of the fasta file:\n\n```\n>megascaffold_1\nACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT\nACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT\n>megascaffold... | [
{
"content": "Python code to break down contigs from a megascaffold fasta file into individual fasta files. \n\nHere is the format of the fasta file:\n\n```\n>megascaffold_1\nACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT\nACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT\n>megascaffold... | magpie_ultra |
[
{
"content": "Write a Python program to find the factorial of a given integer.\nHere are the details:\n- Check for invalid input (negative number and non-integer) and provide a meaningful error message.\n- Using recursion method\n- Using iteration method\n- Follow best practices (add docstrings to each function... | [
{
"content": "Write a Python program to find the factorial of a given integer.\nHere are the details:\n- Check for invalid input (negative number and non-integer) and provide a meaningful error message.\n- Using recursion method\n- Using iteration method\n- Follow best practices (add docstrings to each function... | magpie_ultra |
[
{
"content": "A Student class is used to encapsulate data and functionality for a person taking courses at a school. Every student has a student number, a name, and a TRANSCRIPT, which is a record of all courses taken. Create a Student class and demonstrate its usage.\n\n## Step 1: Define the Student class... | [
{
"content": "A Student class is used to encapsulate data and functionality for a person taking courses at a school. Every student has a student number, a name, and a TRANSCRIPT, which is a record of all courses taken. Create a Student class and demonstrate its usage.\n\n## Step 1: Define the Student class... | magpie_ultra |
[
{
"content": "Count the number of lines in the following code snippet:\n\n\n```javascript\nif (count > 0) {\n for (var i = 0; i < count; i++) {\n // do something\n }\n}\n```\n\n\n```javascript\nif (count > 0) {\n for (let i = 0; i < count; i++) {\n // do something\n }\n}\n```\n\n\n```j... | [
{
"content": "Count the number of lines in the following code snippet:\n\n\n```javascript\nif (count > 0) {\n for (var i = 0; i < count; i++) {\n // do something\n }\n}\n```\n\n\n```javascript\nif (count > 0) {\n for (let i = 0; i < count; i++) {\n // do something\n }\n}\n```\n\n\n```j... | magpie_ultra |
[
{
"content": "Given two strings $s$ and $t$, determine if they are isomorphic: two strings are isomorphic if the characters in $s$ can be replaced to get $t$. For example, \"egg\" and \"add\" are isomorphic, as we can replace 'e' with 'a' and 'g' with 'd' to get from \"egg\" to \"add\".\n\nHowever, \"foo\" and ... | [
{
"content": "Given two strings $s$ and $t$, determine if they are isomorphic: two strings are isomorphic if the characters in $s$ can be replaced to get $t$. For example, \"egg\" and \"add\" are isomorphic, as we can replace 'e' with 'a' and 'g' with 'd' to get from \"egg\" to \"add\".\n\nHowever, \"foo\" and ... | magpie_ultra |
[
{
"content": "Applet hangs when dual screen. \nI have an applet that hangs in both IE6 and Firefox 1.5 when it is moved from the primary monitor to the secondary monitor. The applet is signed, and it has a requirement of jre 1.4.2 or later. \nIt does not hang if it is running while not being moved. It does ... | [
{
"content": "Applet hangs when dual screen. \nI have an applet that hangs in both IE6 and Firefox 1.5 when it is moved from the primary monitor to the secondary monitor. The applet is signed, and it has a requirement of jre 1.4.2 or later. \nIt does not hang if it is running while not being moved. It does ... | magpie_ultra |
[
{
"content": "Let's say I need a Python function that can take in an old password and a new password. The new password should be checked to ensure it meets the following criteria:\n- It should be more than 8 characters long\n- It should have at least one lowercase character\n- It should have at least one upperc... | [
{
"content": "Let's say I need a Python function that can take in an old password and a new password. The new password should be checked to ensure it meets the following criteria:\n- It should be more than 8 characters long\n- It should have at least one lowercase character\n- It should have at least one upperc... | magpie_ultra |
[
{
"content": "# Problem\nGiven an array of arbitrary size with positive integers, find the index of a given target value in the array. If the target value does not exist in the array, return -1.\n\n## Step 1: Define the problem and the expected outcome\nThe problem is to find the index of a given target value i... | [
{
"content": "# Problem\nGiven an array of arbitrary size with positive integers, find the index of a given target value in the array. If the target value does not exist in the array, return -1.\n\n## Step 1: Define the problem and the expected outcome\nThe problem is to find the index of a given target value i... | magpie_ultra |
[
{
"content": "A taking value representing a time in AM/PM format. The task is to convert it into a 24-hour format. Using Python. \n\nExample:\n12:01 PM -> 12:01\n12:01 AM -> 00:01\n11:13 PM -> 23:13\n05:30 AM -> 05:30 \n\nNote that the input is a string. There are no seconds, just hours and minutes. Input is no... | [
{
"content": "A taking value representing a time in AM/PM format. The task is to convert it into a 24-hour format. Using Python. \n\nExample:\n12:01 PM -> 12:01\n12:01 AM -> 00:01\n11:13 PM -> 23:13\n05:30 AM -> 05:30 \n\nNote that the input is a string. There are no seconds, just hours and minutes. Input is no... | magpie_ultra |
[
{
"content": "Cryptic Integer Showdown\n\nCreate a program that will take a list of integers in the range 1-1000 as input and output the frequency of each integer in the list. You can use any well-known sorting or input methodology.\n\nInput:\n```\n1 1 2 3 4 5 5 6\n```\nOutput:\n```\n1 appears 2 times\n2 appear... | [
{
"content": "Cryptic Integer Showdown\n\nCreate a program that will take a list of integers in the range 1-1000 as input and output the frequency of each integer in the list. You can use any well-known sorting or input methodology.\n\nInput:\n```\n1 1 2 3 4 5 5 6\n```\nOutput:\n```\n1 appears 2 times\n2 appear... | magpie_ultra |
[
{
"content": "You are given an array of two integers, [x, y], and a square grid of size (x * 2 by y * 2) which is initialized with 0's. You must return the minimum number of changes that need to be made to the grid in order to form a chessboard-like pattern where each (1x1) cell has the form 10, 01, 10, 01, 10,... | [
{
"content": "You are given an array of two integers, [x, y], and a square grid of size (x * 2 by y * 2) which is initialized with 0's. You must return the minimum number of changes that need to be made to the grid in order to form a chessboard-like pattern where each (1x1) cell has the form 10, 01, 10, 01, 10,... | magpie_ultra |
[
{
"content": "A magic square is an array of numbers in which the sum of the numbers in each row, in each column, and along the two main diagonals are all the same. In this problem, only 3 by 3 magic squares will be used. A magic square can be represented as a two dimensional array of nine distinct whole numbers... | [
{
"content": "A magic square is an array of numbers in which the sum of the numbers in each row, in each column, and along the two main diagonals are all the same. In this problem, only 3 by 3 magic squares will be used. A magic square can be represented as a two dimensional array of nine distinct whole numbers... | magpie_ultra |
[
{
"content": "Given a positive integer n, find the smallest integer which has exactly n divisors.\n\nExample 1:\nInput: n = 3\nOutput: 2^2\nExplanation: 4 has 3 divisors (1, 2, 4).\n\nExample 2:\nInput: n = 5\nOutput: 2^4\nExplanation: 16 has 5 divisors (1, 2, 4, 8, 16).\n\nExample 3:\nInput: n = 6\nOutput: 2^2... | [
{
"content": "Given a positive integer n, find the smallest integer which has exactly n divisors.\n\nExample 1:\nInput: n = 3\nOutput: 2^2\nExplanation: 4 has 3 divisors (1, 2, 4).\n\nExample 2:\nInput: n = 5\nOutput: 2^4\nExplanation: 16 has 5 divisors (1, 2, 4, 8, 16).\n\nExample 3:\nInput: n = 6\nOutput: 2^2... | magpie_ultra |
[
{
"content": "Find all distinct paths in a rooted tree in which the vertices have unique labels.\n\n## Step 1: Understand the Problem\nWe are tasked with finding all distinct paths in a rooted tree where each vertex has a unique label. This means that each path from the root to any other vertex must be unique.\... | [
{
"content": "Find all distinct paths in a rooted tree in which the vertices have unique labels.\n\n## Step 1: Understand the Problem\nWe are tasked with finding all distinct paths in a rooted tree where each vertex has a unique label. This means that each path from the root to any other vertex must be unique.\... | magpie_ultra |
[
{
"content": "-avoid any controller keywords like add remove etc. the job of this function is to change the state of the string which is passed as parameter and post url detail to backend. \n\navoid - controller action keywords as we dont know what the backend is built on.\n\nHere's a toggle_event function:\n\n... | [
{
"content": "-avoid any controller keywords like add remove etc. the job of this function is to change the state of the string which is passed as parameter and post url detail to backend. \n\navoid - controller action keywords as we dont know what the backend is built on.\n\nHere's a toggle_event function:\n\n... | magpie_ultra |
Skywork/Skywork-Reward-Preference-80K-v0.2(複製)
データの内容
報酬モデルの学習用に、公開データから集めた約 8 万組の選好ペアのデータ。1 行が 1 組で、chosen と rejected に、role と content を持つ会話の列が入り、出典を source に記している。元は HelpSteer2、OffsetBias、WildGuard、Magpie の DPO 系データで、v0.2 は RewardBench の評価プロンプトと重なる組を除いた版であり、RewardBench で評価する場合はこちらを使うよう、カードは推奨している。
データの概要
| 項目 | 値 |
|---|---|
| 行数 | 77,016(1 構成・1 分割の合計) |
| 列数 | 3 |
| 容量 | 209.18 MB(ファイル 3 本) |
| ファイルの形式 | parquet 1 |
| 公開 | public |
構成と分割
| 構成(config) | 分割(split)ごとの行数 | 列数 |
|---|---|---|
default |
train 77,016 |
3 |
列(構成 default・分割 train)
| 列 | 型 | 先頭の行の値 |
|---|---|---|
chosen |
list<struct{content: string, role: string}> |
[2 件] |
rejected |
list<struct{content: string, role: string}> |
[2 件] |
source |
string |
magpie_ultra |
行数と列は HF のデータセットビューアの集計(元のデータセットの現在の版で数えたもの)。全データセットの一覧は HYUKI5/dataset-catalog にある。
複製について
Skywork/Skywork-Reward-Preference-80K-v0.2 をリビジョン 9757870d81894c90216e92536bad48f41475d5d0 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。
出典
- 元のデータセット: https://huggingface.co/datasets/Skywork/Skywork-Reward-Preference-80K-v0.2
- 複製したリビジョン:
9757870d81894c90216e92536bad48f41475d5d0(2024-10-25 01:58:25+00:00) - 元のライセンス表記:
other
論文
アノテーションの方法
元のカードにアノテーションの節が無かった。下の「調査メモの記述」と「元のカード」を参照。
微調整に使うときの注意
- 調査メモの台帳での区分: D(記載なし・other・unknown・資料間の食い違い)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。
調査メモの記述
| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|---|---|---|---|---|
safety_judge_scoring.md |
2. LLM-as-judge / 報酬モデル / 品質スコア系 (L116) | なし | 確認済 | 原文注記: - Skywork/Skywork-Reward-Preference-80K-v0.2 (arXiv 2410.18451) — license タグなし、77,016 行(chosen, rejected, sour |
元のカード(日本語訳)
以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。
Skywork Reward Preference 80K
重要: 本データセットは、Skywork-Reward-Preference-80K-v0.1 から評価データの混入(汚染)を除去した版である。magpie-ultra-v0.1 のサブセットから、RewardBench の評価プロンプトと n-gram の重なりが大きい 4,957 組のペアを除いた。除いたペアの集合はこちらで確認できる。詳細はこの GitHub gist を参照。
タスクが RewardBench での評価を含む場合は、本データセットの v0.1 ではなく v0.2 を使うことを強く推奨する。
報酬モデルの新しいバージョンを近日中に公開する予定である。
Skywork Reward Preference 80K は、公開されているデータから集めた 8 万組の選好ペアのサブセットである。このサブセットは、Skywork-Reward-Gemma-2-27B-v0.2 と Skywork-Reward-Llama-3.1-8B-v0.2 の学習に使われている。
データの構成
Skywork Reward Data Collection を慎重にキュレーションし、(1) 高品質な選好ペアを含めること、(2) 特定の能力と知識の分野を対象とすることを行った。キュレーションした学習データは約 8 万サンプルで、次を含む複数の公開データソースからサブサンプリングされている:
- HelpSteer2
- OffsetBias
- WildGuard (adversarial)
- Magpie DPO シリーズ: Ultra, Pro (Llama-3.1), Pro, Air。
免責事項: 上に挙げた元のデータセットには、Skywork Reward Data Collection を作るためのサブサンプリング以外の変更を加えていない。
データセットのキュレーションでは、全体の性能を損なわずに性能向上と分野間のバランスを両立させるため、いくつかの工夫を採用した:
- 結合した Magpie データセットの中から、数学、コード、その他のカテゴリごとに、データセットに付属する ArmoRM の平均スコアに基づいて上位のサンプルを独立に選んだ。Magpie-Ultra と Magpie-Pro-Llama-3.1 のサンプルを優先するため、Magpie-Air サブセットと Magpie-Pro サブセットの ArmoRM 平均スコアからそれぞれ 0.1 と 0.05 を引いた。
- WildGuard のすべての選好ペアを含める代わりに、まず他の 3 つのデータソースで報酬モデル(RM)を学習した。次に、(1) この RM を使って WildGuard の全サンプルの chosen 応答と rejected 応答を採点し、(2) chosen 応答の RM スコアが rejected 応答の RM スコアより高いサンプルだけを選んだ。この方法では、Chat、Char hard、Reasoning の元の性能をほぼ保ちつつ、Safety が向上することが確認された。両モデルとも、WildGuard のサンプルの採点には 27B モデルを使った。
技術報告
Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs
連絡先
ご質問があれば、yuhao.liuu@kunlun-inc.com または liang.zeng@kunlun-inc.com まで遠慮なく連絡すること。
引用
本研究が役立つと感じた場合は、次の BibTeX を使って引用すること:
@article{liu2024skywork,
title={Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs},
author={Liu, Chris Yuhao and Zeng, Liang and Liu, Jiacai and Yan, Rui and He, Jujie and Wang, Chaojie and Yan, Shuicheng and Liu, Yang and Zhou, Yahui},
journal={arXiv preprint arXiv:2410.18451},
year={2024}
}
原文(英語)
Skywork Reward Preference 80K
IMPORTANT: This dataset is the decontaminated version of Skywork-Reward-Preference-80K-v0.1. We removed 4,957 pairs from the magpie-ultra-v0.1 subset that have a significant n-gram overlap with the evaluation prompts in RewardBench. You can find the set of removed pairs here. For more information, see this GitHub gist.
If your task involves evaluation on RewardBench, we strongly encourage you to use v0.2 instead of v0.1 of the dataset.
We will soon release our new version of the reward models!
Skywork Reward Preference 80K is a subset of 80K preference pairs, sourced from publicly available data. This subset is used to train Skywork-Reward-Gemma-2-27B-v0.2 and Skywork-Reward-Llama-3.1-8B-v0.2.
Data Mixture
We carefully curate the Skywork Reward Data Collection (1) to include high-quality preference pairs and (2) to target specific capability and knowledge domains. The curated training dataset consists of approximately 80K samples, subsampled from multiple publicly available data sources, including
- HelpSteer2
- OffsetBias
- WildGuard (adversarial)
- Magpie DPO series: Ultra, Pro (Llama-3.1), Pro, Air.
Disclaimer: We made no modifications to the original datasets listed above, other than subsampling the datasets to create the Skywork Reward Data Collection.
During dataset curation, we adopt several tricks to achieve both performance improvement and a balance between each domain, without compromising the overall performance:
- We select top samples from math, code, and other categories in the combined Magpie dataset independently, based on the average ArmoRM score provided with the dataset. We subtract the ArmoRM average scores in the Magpie-Air subset and the Magpie-Pro subset by 0.1 and 0.05, respectively, to prioritize Magpie-Ultra and Magpie-Pro-Llama-3.1 samples.
- Instead of including all preference pairs in WildGuard, we first train a reward model (RM) on three other data sources. We then (1) use this RM to score the chosen and rejected responses for all samples in WildGuard and (2) select only samples where the chosen response's RM score is greater than the rejected response's RM score. We observe that this approach largely preserves the original performance of Chat, Char hard, and Reasoning while improving Safety. For both models, we use the 27B model to score the WildGuard samples.
Technical Report
Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs
Contact
If you have any questions, please feel free to reach us at yuhao.liuu@kunlun-inc.com or liang.zeng@kunlun-inc.com.
Citation
If you find our work helpful, please feel free to cite us using the following BibTeX entry:
@article{liu2024skywork,
title={Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs},
author={Liu, Chris Yuhao and Zeng, Liang and Liu, Jiacai and Yan, Rui and He, Jujie and Wang, Chaojie and Yan, Shuicheng and Liu, Yang and Zhou, Yahui},
journal={arXiv preprint arXiv:2410.18451},
year={2024}
}
- Downloads last month
- 48