Infinity Instruct
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.
- Venue
- Beijing Academy of Artificial Intelligence (BAAI)
- Source
- huggingface
- Access
- restricted
- License
- cc-by-sa-4.0
- License family
- Copyleft
- Language
- en, zh
- Hugging Face
- BAAI/Infinity-Instruct
- Author type
- mixed
- Added
- Jul 17, 2026
- Verified
- Jul 17, 2026
- Research status
- done
From the source
- Repository
- BAAI/Infinity-Instruct
- Created
- Jun 13, 2024
- Last updated
- Dec 4, 2025
- Downloads (last month)
- 2,055
- Likes
- 765
- Size
- 10M to 100M rows
- Modalities
- text
- Tasks
- text-generation
- Formats
- parquet
- Gated
- yes
Topics
NLP / General instruction following
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
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
- Collection
OpenCoder Datasets
The OpenCoder Datasets collection comprises the full reproducible training data pipeline for the OpenCoder code LLM family, including RefineCode (960B tokens of high-quality code across 607 programming languages with 130+ language-specific filtering rules), FineWeb-code-corpus (148GB), FineWeb-math-corpus (10GB), an annealing corpus (24GB, 15.6M examples), and two-stage SFT datasets (4.21M + 436K examples). Released alongside the OpenCoder paper (ACL 2025), it provides complete transparency into the data curation process for training top-tier code LLMs.
- Dataset
OpenCoder SFT Stage 2
Stage-2 SFT for OpenCoder-1.5B/8B-Instruct: smaller higher-quality code mix after the ~4.2M Stage-1 dump, including test-case triples usable as code-RL signal
- Dataset
Infinity-Instruct
Scale instruction selection + synthesis so open models match proprietary instruction-following without sacrificing foundational skills
Similar entries
- Dataset LLaVA-OneVision-1.5-Instruct (Instruct-Data)
- Paper Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers
- Paper Tokenization: A Survey for Modern NLP
- Model GPC-1 — multimodal general-purpose classifier (categorical + Numeric101 + joint records)
- Paper A Theoretical Analysis of Generalization Dynamics in Neural Networks under Gradient Descent with Weight Decay
- Paper Generalization Dynamics of LM Pre-training ("Discovering Mode-Hopping")