← Datasets

Compare

CodeFIM-Data
#35 · remove
FineWeb
#23 · remove
Kinddatasetdataset
Published20252024
LicenseHF card YAML has no license field. Treat as Unknown; per-file upstream OSS licenses still apply to the source text.ODC-By v1.0 (Open Data Commons Attribution); also subject to CommonCrawl Terms of Use
License familyOtherPermissive
Accessfreefree
Language codescode, goen
Modalitiescode, texttext
Size100K to 1M rows10B to 100B rows
Downloads (last month)27301,935
Likes33,579
Last updated2025-04-112025-07-11
Tasks—text-generation
Formatsparquet—
ScaleHF: 237,681 train rows; size_categories 100K<n<1M. YAML dataset_size 1,195,185,254 bytes (~1.20 GB); download_size 335,796,156 (~335.8 MB); usedStorage 487,535,044 (~487.5 MB); 3 parquet shards (149.6 + 94.0 + 92.1 MB). Hub 724 downloads / 2 likes at check (API last-month downloads 25). Character stats on full split: prefix mean 2,686 / median 1,372 (max 38,973); suffix mean 2,381 / median 1,097 (max 36,070); middle mean 202 / median 50 (max 29,398); file_name mean 14 chars.Card dump table: 18,527B gpt2 tokens (~18.5T; originally 15T in the NeurIPS 2024 paper) and 50,446.9 GB (~50.4 TB) on disk. size_categories n>1T. Samples: sample-10BT ~10B gpt2 / 27.6 GB; sample-100BT ~100B / 277.4 GB; sample-350BT ~350B / 388 GB. HF 424,171 downloads / 3,188 likes at check. DOI 10.57967/hf/2493.
Formatparquet (file_name, prefix, suffix, middle, fim_type)parquet (text, id, dump, url, date, file_path, language, language_score, token_count)
TypeCode FIM / infill training corpus (prefix, suffix, middle, fim_type, file_name)Pretraining corpus / cleaned English web crawl
CostFreeFree
LanguagesProgramming languages (natural-language comments mixed in). 800-row offset sample of file_name (n=800): .py 40.6% (325); .rs 24.0% (192); .js 16.9% (135); .ts 10.8% (86); .go 6.5% (52); .tsx 1.3% (10). Full-corpus extension mix not tabulated on the card.English 100% (fastText en score >= 0.65). Non-English WARC text was the starting point for FineWeb 2.
ModalityText + source codeText-only
Domaincode fill-in-the-middle; infilling SFT; Rust/Python/JS/TS/Go sourceEnglish web crawl; general pretraining; Common Crawl HTML
Time periodHF createdAt 2025-04-11T08:41:12Z; lastModified 2025-04-11T11:47:02Z. Source files older than the FIM packaging (unverified per-file dates).Common Crawl dumps Summer 2013–June 2025 (card v1.4.0). gpt2-token share by crawl year from the dump table (18,527B listed total; year rows sum ~18,306B): 2013 1.6%; 2014 6.1%; 2015 7.0%; 2016 6.4%; 2017 11.6%; 2018 10.8%; 2019 9.9%; 2020 7.8%; 2021 9.1%; 2022 6.9%; 2023 6.5%; 2024 9.3%; 2025 5.7%. Paper original release used 96 dumps through April 2024.
PurposePrefix–suffix–middle FIM examples (four span types) for training code infill modelsOpen English LLM pretraining corpus; documented ablation of extraction, per-dump MinHash, and heuristic filters vs RefinedWeb/C4/Dolma/The Pile
Used forNone listed on this repo (0 Hub models with dataset:Etherll/CodeFIM-Data). Sibling CodeFIM-Rust-Mellum (56,920 rows) trains Etherll/Mellum-4b-sft-rust. Earlier Etherll/code-fim-v2 (63,968) has Hub models.HuggingFace FineWeb 1.8B ablation models; SmolLM and SmolLM2 (via FineWeb-Edu in SmolLM-Corpus); Apertus 8B/70B (with FineWeb-2); many Hub models (424k downloads / 3,188 likes at check). Discord also cited Tiny-LLM + many more.
AuthorsEtherll packaged FIM spans from existing source files (viewer includes OSS-style Rust crates and Python scripts). Per-file original authors unverified. No human annotation of spans.Diverse public-web authors across Common Crawl. Hugging Face FineWeb team curated. Residual AI-generated web text possible; not quantified on the card.
BiasFIM-span types are not uniform. 800-row sample is Python+Rust heavy vs other languages. Multiple FIM views of the same file (e.g. repeated main.rs) over-weight long files. Source mix and license of upstream files not documented.English-only public web; URL blocklist for NSFW/malware but toxic/harmful pages remain. Authors avoided Wikipedia-likeness and toxicity classifiers because those disproportionately drop dialects and identity-related text. Code and site-specific curated sources (Wikipedia formatting) are underrepresented vs general web.
Text qualityReal source files split into prefix/suffix/middle; comments and tests included. Residual local paths (e.g. /home/hom/alfred) and duplicated whole-file contexts across span types. No card quality filter.Trafilatura WARC extraction + Gopher/C4/FineWeb heuristics + per-dump MinHash; ablation 1.8B models beat RefinedWeb, C4, Dolma-v1.6-CC, The Pile, SlimPajama, RedPajama2 on the card aggregate. Still web-boilerplate residual. Educational subset is FineWeb-Edu (1.3T gpt2), not this repo.
Sample sizeSingle default train split 237,681. Full-split fim_type: random_line_split 77,693 (32.7%); identifier_name 60,419 (25.4%); identifier_body 54,679 (23.0%); conditional_block 44,890 (18.9%). Companion CodeFIM-Data-trim and CodeFIM-Rust-Mellum are separate repos, not configs here.default = all dumps; one config per CC-MAIN dump; sample-10BT / sample-100BT / sample-350BT nested random samples. Recent dumps recommended for <550B-token trainings (CC-MAIN-2023-50, 2024-10, 2024-18).
Long contextMixed (median prefix+suffix ~2.5k chars; tails to ~39k prefix / ~36k suffix).Mixed (full web documents; typical pages short-to-medium, some long). Ablations used seq 2048.
Intermediate stepsYes (span extraction into four fim_type classes). Pipeline code and source-repo list are not on the card.Yes (URL filter, trafilatura, fastText LID, Gopher repetition/quality, C4 filters minus terminal_punct, FineWeb custom filters, per-dump MinHash 5-grams 14x8, email/IP PII rewrite). Pipeline: github.com/huggingface/datatrove/blob/main/examples/fineweb.py
Idea qualityMediumHigh
NoveltyMedium (standard PSM FIM packaging; undocumented scrape)High
Text conversionReady parquet; load_dataset("Etherll/CodeFIM-Data")Ready parquet; HF streaming / datatrove ParquetReader recommended. Full dump is tens of TB.
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2025-04-11; one-shot upload)Unknown (HF lastModified 2025-07-11; v1.4.0 added six 2025 dumps; card plans further CC updates)
ProcessedUnknownUnknown
SummaryCodeFIM-Data is a HuggingFace dataset of 238,000 rows formatted for fill-in-the-middle (FIM) code completion training. Each row contains a file name, a code prefix, a code suffix, the missing middle segment, and a FIM type label. The data is drawn from multiple programming languages (primarily Rust, but also TypeScript, Python, and Go) and is used to fine-tune code completion models such as Etherll's Qwen2.5-CodeFIM series for IDE-style autocomplete via Continue.FineWeb is a 15-trillion-token (now 18.5T+) dataset of cleaned and deduplicated English web text derived from 96 CommonCrawl snapshots spanning summer 2013 to April 2024. Created by Hugging Face using the datatrove library, its processing pipeline includes URL filtering, Trafilatura text extraction, language filtering, MassiveText quality filters, C4 filters, custom FineWeb filters, MinHash deduplication, and PII reformatting, producing better-performing LLMs than other open pretraining datasets. Published at NeurIPS 2024, it also includes FineWeb-Edu (1.3T tokens of educational content) as a companion dataset.