# Infinity Instruct

- **ID:** 319
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/BAAI/Infinity-Instruct
- **Authors:** Beijing Academy of Artificial Intelligence (BAAI)
- **Venue:** Beijing Academy of Artificial Intelligence (BAAI)
- **Published:** 2024
- **Source:** huggingface
- **Language:** en, zh
- **Access:** restricted
- **License:** cc-by-sa-4.0
- **License family:** Copyleft (auto-classified)
- **Topics:** NLP / General instruction following
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/319

## Summary

Infinity Instruct is a large-scale, high-quality instruction fine-tuning dataset (7M instructions) developed by BAAI, featuring data evolution strategies and model ability diagnosis for instruction generation. It includes a 7M Core version (1.4M instructions reaching 95.7% of full 7M performance) and has been used to fine-tune Llama3, Mistral, Qwen2, and Yi models, achieving favorable results on AlpacaEval 2.0 and MT-Bench without RLHF. Accepted to AAAI 2026.

## Attributes

- **Purpose:** Large-scale high-quality instruction fine-tuning dataset for building capable chat models
- **Scale:** 7M instructions (10M-100M size category); 7M Core subset = 1.4M instructions
- **Used for:** Fine-tuning InfInstruct series models (Llama3-8B/70B, Mistral-7B, Qwen2-7B, Yi-1.5-9B); also spawned Infinity-Preference dataset
- **Time period:** 2024-2025
- **Author type:** mixed

## From the source (fetched 2026-10-03)

- **Repository:** BAAI/Infinity-Instruct (Hugging Face)
- **Created:** Jun 13, 2024 (Hugging Face)
- **Last updated:** Dec 4, 2025 (Hugging Face)
- **Downloads (last month):** 2,055 (Hugging Face)
- **Likes:** 765 (Hugging Face)
- **Size:** 10M to 100M rows (Hugging Face)
- **Modalities:** text (Hugging Face)
- **Tasks:** text-generation (Hugging Face)
- **Formats:** parquet (Hugging Face)
- **Gated:** yes (Hugging Face)

## Dataset profile

- **Scale:** Hub datasets-server numRows 4,216,321 across 3 configs (size implied 1M<n<10M). Paper Table 5 Stage1: RealUser-Instruct 0.7M + Large-scale Diverse-Instruct 2.3M + Filtered Infinity-Instruct 1.0M = 4.0M (Hub is ~216k above the paper round numbers). 22 parquet shards: filtered_infinity_instruct 4×~257 MB (~1.03 GB); largescale_diverse_instruct 13×~266 MB (~3.46 GB); realuser_instruct 5×~224 MB (~1.12 GB). Listed LFS ~5.61 GB. Hub 1,380 downloads / 75 likes at check. gated=false.
- **Format:** parquet. Three named configs (no default concat). Card does not publish a column schema; typical instruction/output SFT (exact columns Unknown without parquet inspect). Loading-script typo on the card: filtered_infinity_instryuct vs config filtered_infinity_instruct.
- **Type:** Code instruction SFT corpus / two-stage OpenCoder Stage-1 mix
- **License:** MIT (card). Upstream Infinity-Instruct / ShareGPT / WildChat terms still apply to those slices. Synthetic rows generated by OpenCoder authors.
- **Cost:** Free
- **Languages:** Card has no language: tag. Paper: realuser_instruct is bilingual code-related instructions (English + Chinese) from GPT conversation histories (ShareGPT / WildChat). Filtered Infinity-Instruct and largescale_diverse_instruct are code-first with English-dominant NL; programming languages mixed. No LID table.
- **Modality:** Text-only (NL instructions + source code).
- **Domain:** code instruction tuning; theoretical CS QA; algorithms/data structures; bilingual real-user coding chat; synthetic diverse code instructions
- **Time period:** SFT dump for OpenCoder instruct models. Paper arXiv 2411.04905 (2024-11-07). HF lastModified 2024-11-24T06:40:44Z. Seeds: Infinity-Instruct, ShareGPT/WildChat-style GPT chats, CommonCrawl + source-code. RefineCode GitHub cutoff Nov 2023 is the related pretrain, not this repo. One-shot release.
- **Purpose:** Stage-1 SFT for OpenCoder-1.5B/8B-Instruct: broad code/theory coverage before the smaller high-quality Stage-2 mix
- **Used for:** OpenCoder-1.5B-Instruct (paper HumanEval 72.5 / HumanEval+ 67.7) and OpenCoder-8B-Instruct (HumanEval 83.5 / HumanEval+ 78.7). Hub 1,380 downloads / 75 likes at check. Discord posted the OpenCoder-LLM collection, not this URL.
- **Authors:** OpenCoder-LLM / INF / M-A-P / NJU (Huang, Cheng, Liu, Hao, Song, Xu, Yang, Liu, Zhang, Chai, Yuan, Zhang, Fu, Liu, Zhang, Wang, Qi, Xu, Chu). Mix of public Infinity-Instruct authors, real ShareGPT/WildChat users, and LLM-synthesized QA from CC/source-code seeds. Low-quality original Infinity outputs were regenerated.
- **Bias:** Code/theory-heavy Stage-1 mix, not general chat. Filtered Infinity-Instruct is a code slice of gated BAAI/Infinity-Instruct (skipped as gated; this derived dump is public) and the card says original outputs were often low-quality. Real-user slice inherits ShareGPT/WildChat user mix (EN/ZH, GPT-chat culture). Synthetic largescale_diverse from CC+source-code seeds. 10-gram decontam vs HumanEval/MBPP. Do not add these 4.2M on top of already-cataloged OpenCoder FineWeb Code/Math or Annealing Corpus.
- **Text quality:** Card: Filtered Infinity outputs were often overly concise / inconsistently formatted — authors recommend regenerating with a stronger LLM from the given instructions. Realuser_instruct is described as high-quality practical chat after regenerating low-quality responses. largescale_diverse_instruct is pipeline-synthetic. Paper: Stage-1 is diverse but lower average quality than Stage-2. Not independently re-run here.
- **Sample size:** Three train configs, no val/test. Paper Table 5: realuser 0.7M; largescale_diverse 2.3M; filtered_infinity 1.0M. Hub total 4,216,321 (per-config Hub counts Unknown without aggregating parquet). Sibling opc-sft-stage2 is a different dump (paper 36k+111k+110k+110k; Hub YAML 436,347) — not this row.
- **Long context:** No (single-turn instruction/output pairs; OpenCoder instruct trained after 8K/4K base context). Typical pair length Unknown without parquet inspect.
- **Intermediate steps:** Yes (LLM filter Infinity-Instruct for code-related content; regenerate weak answers; extract bilingual real-user code instructions from ShareGPT/WildChat and regenerate; seed-based synthetic QA from CommonCrawl + source code; 10-gram / entry-point decontam vs HumanEval/MBPP).
- **Idea quality:** High
- **Novelty:** High (public ~4.2M OpenCoder Stage-1 SFT; parent BAAI/Infinity-Instruct remains gated — this is the public code slice)
- **Text conversion:** Ready parquet; load_dataset('OpenCoder-LLM/opc-sft-stage1', '<config>'). ~5.61 GB. No default config — load each of the three. Streaming recommended.
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2024-11-24; one-shot OpenCoder SFT dump)
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage1
- Related: https://arxiv.org/abs/2411.04905
- Related: https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage1
- Related: https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage2
- Related: https://huggingface.co/collections/OpenCoder-LLM/opencoder-datasets-672e6db6a0fed24bd69ef1c2
- Related: https://github.com/OpenCoder-llm/OpenCoder-llm
- Related: https://opencoder-llm.github.io/
- Related: https://huggingface.co/datasets/BAAI/Infinity-Instruct
- Related: https://huggingface.co/infly/OpenCoder-8B-Instruct

## Research notes

- Requires agreeing not to conduct harmful experiments. Associated with arXiv:2506.11116, arXiv:2507.06968, arXiv:2402.00530. Includes reward scores and instruction labeling types from Skywork-Reward-Llama-3.1-8B.
- Discord posted the OpenCoder-LLM collection (message 1362451409097855268), not this dataset URL. gated=false; public; CuratorBote listed 22 parquet files under data/. Completes the already-cataloged OpenCoder FineWeb Code/Math + Annealing Corpus with the missing Stage-1 SFT dump. Parent BAAI/Infinity-Instruct remains gated and was skipped; this filtered code slice is the public derivative. Card usage snippet misspells the Infinity config. Cite Huang et al. 2024 arXiv 2411.04905. Sibling opc-sft-stage2 left for a later row (smaller, higher-quality Stage-2 mix with compiler-checked educational triples). Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.

## Related entries

- Related: [OpenCoder Datasets](https://papers.projxon.ai/entries/29) (collection, #29)
- Related: [OpenCoder SFT Stage 2](https://papers.projxon.ai/entries/1153) (dataset, #1153)
- Related: [Infinity-Instruct](https://papers.projxon.ai/entries/1180) (dataset, #1180)

## Similar entries

- [LLaVA-OneVision-1.5-Instruct (Instruct-Data)](https://papers.projxon.ai/entries/1123) (dataset, #1123)
- [Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers](https://papers.projxon.ai/entries/1271) (paper, #1271)
- [Tokenization: A Survey for Modern NLP](https://papers.projxon.ai/entries/818) (paper, #818)
- [GPC-1 — multimodal general-purpose classifier (categorical + Numeric101 + joint records)](https://papers.projxon.ai/entries/1032) (model, #1032)
- [A Theoretical Analysis of Generalization Dynamics in Neural Networks under Gradient Descent with Weight Decay](https://papers.projxon.ai/entries/811) (paper, #811)
- [Generalization Dynamics of LM Pre-training ("Discovering Mode-Hopping")](https://papers.projxon.ai/entries/820) (paper, #820)
