中文简介
The Stack v2 是 BigCode 发布的大规模代码数据集,固定数据集卡说明覆盖超过 30 亿文件和 600 多种编程及标记语言,来源基于 Software Heritage。Hugging Face 仓库不是一个可忽略来源许可的“统一代码包”,每个文件仍需遵守原始许可证。
上游模型卡 / 数据集卡
数据定位:The Stack v2 是基于 Software Heritage 的大规模代码语料,固定卡片给出 30 亿以上文件和 600 多种语言。Hugging Face 仓库包含索引与元数据,实际源码检索还有独立流程。
许可关键点:它没有一个覆盖所有代码的统一许可证。每个源文件必须遵守原始许可和归属要求,自动检测结果也可能有误;无许可证文件不能被默认解释为自由使用。
访问与安全:仓库为 gated,用户需自行接受条件。数据可能含密钥、邮箱和其他敏感信息,训练前必须扫描、删除并建立来源追踪。本站不代替授权,也不接收客户云凭据。
The Stack v2 Dataset Description Homepage: https://www.bigcode-project.org/ Repository: https://github.com/bigcode-project Paper: Link Point of Contact: contact@bigcode-project.org The dataset consists of 4 versions: bigcode/the-stack-v2: the full "The Stack v2" dataset <-- you are here bigcode/the-stack-v2-dedup: based on the bigcode/the-stack-v2 but further near-deduplicated bigcode/the-stack-v2-train-full-ids: based on the bigcode/the-stack-v2-dedup dataset but further filtered with heuristics and spanning 600+ programming languages. The data is grouped into repositories. bigcode/the-stack-v2-train-smol-ids: based on the bigcode/the-stack-v2-dedup dataset but further filtered with heuristics and spanning 17 programming languages. The data is grouped into repositories. These datasets only contain the SWHIDs to download the code files and not the content of the files itself. See examples below to see how to download content. We are working on making the training datasets available in the coming weeks. The Stack v2 is significantly larger than v1: The Stack v1 The Stack v2 full 6.4TB 67.5TB dedup 2.9TB 32.1TB train (full) ~200B tokens ~900B tokens Changelog Release Description v2.1.0 Removed repositories that opted out before 2024-04-09. Removed unreachable/private repositories (according to SWH) v2.0.1 Removed repositories that opted out before 2023-10-20. StarCoder2 was trained on this version v2.0 Initial release of the Stack v2 Dataset Summary The Stack v2 contains over 3B files in 600+ programming and markup languages. The dataset was created as part of the BigCode Project, an open scientific collaboration working on the responsible development of Large Language Models for Code (Code LLMs). The Stack serves as a pre-training dataset for Code LLMs, i.e., code-generating AI systems which enable the synthesis of programs from natural language descriptions as well as other from code snippets. This dataset is derived from the Software Heritage archive, the largest p
适用场景
适合代码大模型预训练、代码语料治理、许可证检测和去重研究。项目应先选 17 种语言的较小训练集合或特定语言,再评估 600+ 语言全量方案;获取前还需确认 Software Heritage 数据检索、S3 凭据和内部来源追踪能力。
规模与格式
固定版本:7408bfbcfd48e5833d62fd3dba48afd20d109473。数据集卡:3B+ 文件、658 种语言;训练集合分为约 17 种语言的 smol 与 600+ 语言的 full,卡片列出约 200B/900B token 等规模。仓库任务字段为 text-generation,语言字段为 code。
文件说明
Hugging Face API 记录 921 个仓库文件,used_storage 约 2.59 TB,文件清单已截断。数据卡说明完整源码内容经 Software Heritage ID 解析,未压缩源文件体量可达数十 TB;因此 2.59 TB 不能当作最终源码全量交付大小,需求中必须区分 ID/元数据与实际内容。
上游文件元数据
.gitattributes2.25 KBdata/1C_Enterprise/train-00000-of-00001.parquet38.57 MBdata/2-Dimensional_Array/train-00000-of-00001.parquet1.71 MBdata/4D/train-00000-of-00001.parquet1.35 MBdata/ABAP/train-00000-of-00001.parquet12.34 MBdata/ABAP_CDS/train-00000-of-00001.parquet763.18 KBdata/ABNF/train-00000-of-00001.parquet198.05 KBdata/ActionScript/train-00000-of-00001.parquet392.66 MBdata/Ada/train-00000-of-00001.parquet36.40 MBdata/Adobe_Font_Metrics/train-00000-of-00001.parquet3.48 MBdata/Agda/train-00000-of-00001.parquet12.26 MBdata/AGS_Script/train-00000-of-00001.parquet15.78 MB
硬件建议
应使用对象存储、分布式 Parquet 处理和来源/许可证索引,敏感信息扫描结果也需可追溯。获取实际源码可能涉及 Software Heritage 访问和云存储凭据,不能把凭据写入脚本或交付包。建议从单语言分片验证解析、去重和删除流程。
注意事项
该仓库为 gated,必须由用户本人接受条件。固定卡片提示数据可能含邮箱、IP、API/SSH keys 等敏感信息,也提供退出与删除机制;许可证检测依赖自动工具且可能不准确。不得把“permissive 或 no license”误写成所有代码均可自由商用。
获取、校验与交付
先核对上游版本、访问条件和许可证,再根据文件规模选择自行获取或人工协助。橙子AI科技可在合法访问权限、许可证及平台规则允许的前提下,提供版本与文件范围核对、下载协助、完整性校验和国内交付咨询;本官网本身不托管或下载资源文件。
本页面为橙子AI科技基于固定版本上游卡片整理的中文信息与服务说明,不代表资源作者或平台官方页面。实际许可、访问和使用条件以上游原文为准。