unnatural_instructions
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
論文で説明されているデータセット: Unnatural Instructions: Tuning Language Models with (Almost) No Human Labor (2022)。オプションの制約 / LLM によって生成された再定式化を含む、自然言語命令のセットが含まれています。
FeaturesDict({
'id': Text(shape=(), dtype=string),
'instances': Sequence({
'constraints': Text(shape=(), dtype=string),
'input': Text(shape=(), dtype=string),
'instruction_with_input': Text(shape=(), dtype=string),
'output': Text(shape=(), dtype=string),
}),
'instruction': Text(shape=(), dtype=string),
'reformulations': Sequence({
'input': Text(shape=(), dtype=string),
'instruction': Text(shape=(), dtype=string),
'instruction_with_input': Text(shape=(), dtype=string),
'output': Text(shape=(), dtype=string),
}),
})
特徴 | クラス | 形 | Dtype | 説明 |
---|
| 特徴辞書 | | | |
ID | 文章 | | ストリング | たとえば、一意の識別子。 |
インスタンス | 順序 | | | |
インスタンス/制約 | 文章 | | ストリング | タスク固有の制約。 |
インスタンス/入力 | 文章 | | ストリング | 指定された命令のプレースホルダーに入力される入力。 |
インスタンス/instruction_with_input | 文章 | | ストリング | プレースホルダーに提供される入力を含む命令。 |
インスタンス/出力 | 文章 | | ストリング | 特定のタスクのターゲット出力。 |
命令 | 文章 | | ストリング | 入力用のプレースホルダー付きの命令。 |
再定式化 | 順序 | | | |
再定式化/入力 | 文章 | | ストリング | 指定された命令のプレースホルダーに入力される入力。 |
再定式化/指示 | 文章 | | ストリング | 入力用のプレースホルダー付きの命令。 |
再定式化/instruction_with_input | 文章 | | ストリング | プレースホルダーに提供される入力を含む命令。 |
再定式化/出力 | 文章 | | ストリング | 特定のタスクのターゲット出力。 |
@misc{honovich2022unnatural,
title = {Unnatural Instructions: Tuning Language Models with (Almost) No Human Labor},
author = {Honovich, Or and Scialom, Thomas and Levy, Omer and Schick, Timo},
url = {https://arxiv.org/abs/2212.09689},
publisher = {arXiv},
year={2022}
}
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-01-19 UTC。
[null,null,["最終更新日 2023-01-19 UTC。"],[],[],null,["# unnatural_instructions\n\n\u003cbr /\u003e\n\n- **Description**:\n\nDataset described in the paper: Unnatural Instructions: Tuning Language Models\nwith (Almost) No Human Labor (2022). Contains sets of natural-language\ninstructions, with optional constraints / LLM-generated reformulations.\n\n- **Homepage** :\n \u003chttps://github.com/orhonovich/unnatural-instructions\u003e\n\n- **Source code** :\n [`tfds.text.unnatural_instructions.UnnaturalInstructions`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/text/unnatural_instructions/unnatural_instructions.py)\n\n- **Versions**:\n\n - **`0.0.1`** (default): Initial release. Omit instructions / inputs, as they require additional processing to be used. Instruction_with_inputs and reformulations contain instructions and contexts.\n- **Download size** : `17.48 MiB`\n\n- **Dataset size** : `154.71 MiB`\n\n- **Auto-cached**\n ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):\n Only when `shuffle_files=False` (train)\n\n- **Splits**:\n\n| Split | Examples |\n|-----------|----------|\n| `'train'` | 66,010 |\n\n- **Feature structure**:\n\n FeaturesDict({\n 'id': Text(shape=(), dtype=string),\n 'instances': Sequence({\n 'constraints': Text(shape=(), dtype=string),\n 'input': Text(shape=(), dtype=string),\n 'instruction_with_input': Text(shape=(), dtype=string),\n 'output': Text(shape=(), dtype=string),\n }),\n 'instruction': Text(shape=(), dtype=string),\n 'reformulations': Sequence({\n 'input': Text(shape=(), dtype=string),\n 'instruction': Text(shape=(), dtype=string),\n 'instruction_with_input': Text(shape=(), dtype=string),\n 'output': Text(shape=(), dtype=string),\n }),\n })\n\n- **Feature documentation**:\n\n| Feature | Class | Shape | Dtype | Description |\n|---------------------------------------|--------------|-------|--------|----------------------------------------------------------|\n| | FeaturesDict | | | |\n| id | Text | | string | Unique identifier for example. |\n| instances | Sequence | | | |\n| instances/constraints | Text | | string | Task-specific constraints. |\n| instances/input | Text | | string | Input to be fed into placeholders for given instruction. |\n| instances/instruction_with_input | Text | | string | Instructions with inputs supplied to placeholders. |\n| instances/output | Text | | string | Target output for given task. |\n| instruction | Text | | string | Instruction with placeholder for inputs. |\n| reformulations | Sequence | | | |\n| reformulations/input | Text | | string | Input to be fed into placeholders for given instruction. |\n| reformulations/instruction | Text | | string | Instruction with placeholder for inputs. |\n| reformulations/instruction_with_input | Text | | string | Instructions with inputs supplied to placeholders. |\n| reformulations/output | Text | | string | Target output for given task. |\n\n- **Supervised keys** (See\n [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)):\n `None`\n\n- **Figure**\n ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)):\n Not supported.\n\n- **Examples**\n ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):\n\nDisplay examples... \n\n- **Citation**:\n\n @misc{honovich2022unnatural,\n title = {Unnatural Instructions: Tuning Language Models with (Almost) No Human Labor},\n author = {Honovich, Or and Scialom, Thomas and Levy, Omer and Schick, Timo},\n url = {https://arxiv.org/abs/2212.09689},\n publisher = {arXiv},\n year={2022}\n }"]]