SuperAPI AI Directory

OIG

OIG (Open Instruction Generalist Dataset) is a large-scale instruction dataset built by the LAION community, hosted on Hugging Face, containing approximately 52.6 million rows of text data. The dataset is designed to support continued pretraining and instruction fine-tuning of language models, and includes a relatively large-scale medium-quality instruction dataset and a smaller-scale high-quality instruction dataset (OIG-small-chip2). The data is provided in JSONL format, and each record contains at least a text field, with some containing a metadata field. The text field uses the format <human>: instruction\n<bot>: response. The large dataset is used for continued pretraining, followed by fine-tuning on the small high-quality dataset, to convert a pretrained language model into an instruction-following model. The dataset covers a variety of task types, such as mathematical reasoning, code generation, dialogue, summarization, question answering, etc., and includes uniformly formatted data from multiple public datasets. OIG is released under the Apache 2.0 license, but contains some content under other licenses (such as CC-BY-SA Wikipedia data).

Open website

About this tool

OIG (Open Instruction Generalist Dataset) is a large-scale instruction dataset created by the LAION volunteer community, aimed at promoting the development of open, helpful, and harmless instruction fine-tuned language models. The dataset is hosted on the Hugging Face platform, and the current version contains approximately 52.6 million rows of text data, organized in JSONL format.

Purpose: OIG is mainly used for instruction fine-tuning of language models. It contains two main parts: a relatively large-scale medium-quality instruction dataset (for continued pretraining), and a smaller-scale high-quality instruction dataset OIG-small-chip2 (for final fine-tuning or soft prompt tuning). Through this combination, researchers can convert a language model pretrained on a large amount of text into a model capable of following instructions, with relatively little additional computational resources required.

Main capabilities: The dataset covers a variety of task types, including but not limited to: mathematical problem solving (such as GSM8K), code generation (Python code examples), natural instruction question answering, dialogue generation, text summarization, SQL query generation, reading comprehension (such as SQuAD v2), safety and prosocial dialogue, character and scene description, joke explanation, poetry generation, etc. The data is uniformly formatted as <human>: instruction\n<bot>: response dialogue form, making it easy for models to learn the mapping between instructions and responses. Some data also contains a metadata field to provide additional information.

Usage: The official recommendation is to directly download the required individual JSONL files rather than using Hugging Face's load_datasets to load the entire dataset. The dataset page provides a list of multiple JSONL files, such as unified_abstract_infill.jsonl, unified_basic.jsonl, unified_conv_finqa.jsonl, etc., each corresponding to different data or task types. Users can choose to download as needed. In addition, the OIG-small-chip2 dataset (unified-chip2.jsonl) contains approximately 210,000 high-quality instruction-response pairs, suitable for final fine-tuning.

Applicable scenarios: OIG is suitable for academic research, open-source model development, and various natural language processing tasks that require instruction fine-tuning data. It is particularly suitable for researchers or developers who wish to adapt pretrained models into instruction-following models at low cost.. The dataset also includes safety-related data (such as examples of harmless instructions and adversarial questions), which helps train safer models.

Limitations: The dataset contains synthetic data as well as some data from humans attempting to induce the model to produce toxic/offensive content; users should check and filter it carefully. Data quality varies: the large dataset is of medium quality, while the small dataset is of higher quality but limited in scale. Regarding licensing, the portion created by LAION volunteers is under the Apache 2.0 license, but the dataset also contains other licensed content (such as CC-BY-SA Wikipedia data) and web-crawled data based on the fair use principle; users must comply with the corresponding license terms. The official source does not provide specific fee or pricing information; the dataset is a free and open resource.