← Datasets

Compare

FineFineWeb: A Comprehensive Study on Fine-Grained Domain Web Corpus
#302 · remove
KStack
#280 · remove
Kinddatasetdataset
Published20242024
Licenseapache-2.0other (permissively licensed Kotlin code, varies per file; Apache 2.0 common)
License familyPermissiveOther
Accessfreefree
Language codesencode
Modalitiestexttext
Size1B to 10B rows1M to 10M rows
Downloads (last month)4,379,2611,686
Likes19414
Last updated2024-12-192025-04-22
Taskstext-classification, text-generationtext-generation
Formats—parquet
ScaleCard grand total: 4,425.30B tokens / 6,536,072,879 samples (~6.54B docs; ~677 tok/doc). Recall iterations: iter1 4,010.76B / 5.782B docs (90.6% of tokens); iter2 206.51B / 442M; iter3 208.02B / 312M. usedStorage 23,159,296,534,795 bytes (~23.16 TB / 21.06 TiB). 66,103 JSONL shards across 67 domain dirs. YAML size_categories n>1T (tokens); Hub tags also 1B<n<10B (docs). gated=false. HF 1,164,919 downloads / 167 likes at check.Card comparison table: 4M files / 168,902 repos / 292M lines / 3.1B tokens vs Stack v2 Kotlin 2M / 109,457 / 162M / 1.7B. dataset_info train: 5,517,601 examples; 16,332,255,331 bytes (~16.33 GB) uncompressed / download_size 5,891,399,337 (~5.89 GB parquet). usedStorage 14,463,919,198 bytes (~14.46 GB). 33 parquet shards (~176–182 MB). YAML size_categories 100M<n<1B conflicts with Hub tags 1M<n<10M and the 5.52M-row split — tags/split used here. gated=false. HF 326 downloads / 14 likes at check.
Formatjsonl per domain (fields url, date, file_path, language_score, token_count, dump, global_id, lang, text, domain, round). ~66k LFS jsonl shards; CS shards ~365–370 MB each.parquet (33 shards). Fields: path, owner, repo_id, is_fork, languages_distribution, content, issues, main_language, forks, stars, commit_sha, size, name, license.
TypePretraining corpus / FineWeb domain recutPretraining corpus / permissively licensed Kotlin files
CostFreeFree
LanguagesEnglish 100% (card language:en). Sample fields language_score / lang=en inherited from FineWeb (FineWeb LID threshold 0.65).Kotlin source (card language:code). Files .kt / .kts / .gradle.kts via go-enry. Comments mixed-language; repos may list other languages in languages_distribution. Not natural-language English text.
ModalityText-onlyText (Kotlin source)
Domainfine-grained domain English web pretraining; FineWeb-derived topical slices (67 domains)Kotlin source-code pretraining; permissively licensed GitHub
Time periodDerived from FineWeb Common Crawl (card inherits FineWeb dumps). Sample JSONL dates/dumps include CC-MAIN-2017-47 (2017-11-21) and later FineWeb crawls. HF createdAt 2024-12-14; lastModified 2024-12-19. Card bibtex v0.1.0 December 2024. Discord posted 2026-04-06. ArXiv/project/blog still listed as Coming Soon.GitHub Kotlin snapshot as of February 2024 plus The Stack v1.2 Kotlin files. HF createdAt 2024-05-13; lastModified 2025-04-22. Paper Kotlin ML Pack arXiv 2405.19250 (2024-05-29). Discord posted 2026-03-23.
PurposeOpen FineWeb recut into 67 DoI domains via iterative FastText+BERT recall, for domain-aware pretraining and domain–benchmark correlation studyLargest public permissively licensed Kotlin file collection for code LM pretrain/finetune, denser than The Stack v2 Kotlin slice
Used forM-A-P domain-web study (card: 28-model BPC–Acc Spearman vs ARC/MMLU/GSM8K/HumanEval/MBPP/TriviaQA). Hub 1,164,919 downloads / 167 likes at check. Siblings: FineFineWeb-sample/test/validation/fasttext-seeddata. Downstream Hub uses Unknown beyond the card analyses.Kotlin ML Pack (arXiv 2405.19250): CodeLlama/DeepSeek Kotlin finetunes; KStack-clean (25k) and KExercises are the high-quality/synth siblings (paper: up to +16 HumanEval-Kotlin pass). Hub 326 downloads / 14 likes at check. JetBrains Kotlin ML collection.
AuthorsPublic-web authors via FineWeb/Common Crawl. Curators M-A-P (Ge Zhang, Xinrun Du, Zhimiao Yu, Zili Wang, Zekun Wang, Wenhu Chen, Qian Liu, Taifeng Wang, Wenhao Huang et al.). URL seeds labeled GPT-4; page labels Qwen2-7B-Instruct then Qwen2-72B-Instruct.GitHub Kotlin repo owners (main-language Kotlin, or any Kotlin file with ≥10 stars as of Feb 2024, plus Stack v1.2). JetBrains Research (Sergey Titov, Mikhail Evtikhiev, Anton Shapkin et al.). PII stripped with star-pii.
BiasEnglish FineWeb web only. Token mass is media/hobby-heavy: journalism_and_media_communication 463.53B (10.5%); news 352.18B (8.0%); hobby 237.06B (5.4%); health 210.06B; economics 208.87B; computer_science_and_technology 203.16B. Mathematics only 6.18B / 11.0M docs (0.14%). Gamble is distant from all listed benches. Domain URL overlap highest for topicality, pet, atmospheric_science. Classifier-recalled DoI slices inherit FineWeb English-web and GPT/Qwen label priors.Open GitHub only (paper: private Kotlin unseen). Permissive-license filter (MIT/Apache-2.0/BSD/CC-BY/Unlicense/…; full list licenses.json). Star≥10 auxiliary crawl plus main-language-Kotlin repos; popularity skew. Near-dedup keeps the highest-star file per cluster. Forks flagged via is_fork. YAML pretty_name is wrongly KExercises (copy-paste); this repo is the large file dump, not the 25k clean set.
Text qualityStarts from FineWeb (Trafilatura + heuristics + MinHash) then extra exact+MinHash dedup. Per-domain FastText coarse recall + frozen BERT fine recall over 3 iterations. Residual FineWeb boilerplate and domain-classifier false positives remain. Card: code benches (MBPP/HumanEval) sit far from almost all domains (math closer). Gamble poorly aligned with standard benches.Exact hash dedup + Stack v1.2-style near-dedup; star-pii PII rewrite. Permissive-license detector (GitHub then go-license-detector). Residual noisy/generated Kotlin, build scripts (.kts/.gradle.kts), and incomplete files remain. Paper treats KStack as the broad corpus and KStack-clean as the algorithmic-quality subset.
Sample size67 domain directories (not HF configs). Largest shard counts: journalism 7,014; news 5,818; hobby 4,295; artistic 3,404; CS 2,974. Smallest: topicality 2 shards / 151k docs. No official train/val/test split on this repo (val/test are separate HF datasets). round field marks recall iteration 1–3.Single train split (5,517,601 rows / 33 parquet parts). No val/test. Sister JetBrains/KStack-clean is 25,000 rows (~23M CodeLlama-7B tokens), not a config here.
Long contextMixed (full FineWeb pages; mean ~677 tokens/doc). Not a long-document corpus.Mixed (per-file; mean ~3.0 KB / file from dataset_size/n). Not repo-level packing.
Intermediate stepsYes (FineWeb dedup; GPT-4 top-1M root-URL DoI/DoNI labels; Qwen2-7B 500k pos/neg FastText coarse recall; Qwen2-72B 100k/50k BERT fine recall; 3 coarse–fine iterations with FastText retrained and BERT frozen).Yes (GitHub + Stack v1.2 Kotlin harvest → exact/near dedup → permissive license filter → star-pii). Paper also builds KStack-clean (Mistral pairwise edu rank → CodeT5p classifier) and KExercises; those are separate repos.
Idea qualityHighHigh
NoveltyHigh (public 4.4T FineWeb recut into 67 labeled domains with iterative dual-stage recall)High (public Kotlin dump ~2× Stack v2 Kotlin files/tokens, fully permissive)
Text conversionReady JSONL. Streaming required (~23.2 TB). load by domain directory. Companion FineFineWeb-sample is a smaller sibling, not an official 10BT nested sample on this repo.Ready parquet. load_dataset('JetBrains/KStack'). Full dump is small vs web corpora (~5.9 GB download).
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2024-12-19; one-shot v0.1.0; arXiv still Coming Soon)Unknown (HF lastModified 2025-04-22; Feb 2024 GitHub snapshot)
ProcessedUnknownUnknown
SummaryFineFineWeb is a large-scale web corpus that classifies FineWeb data into fine-grained domains (e.g., aerospace, etc.) using a multi-iteration pipeline involving GPT-4 URL labeling, FastText coarse recall, and BERT fine recall. It contains ~4.89B rows across multiple domains with billions of tokens each, enabling researchers to build domain-specific pretraining mixtures with explicit control over domain composition.KStack is the largest collection of permissively licensed Kotlin source code, containing 5.52 million files scraped from GitHub repositories with metadata like owner, repo ID, language distribution, license, and commit SHA. It is part of JetBrains' Kotlin ML Pack (alongside the curated KStack-clean and KExercises datasets) and is intended for pretraining and fine-tuning code generation models for Kotlin, demonstrating that even small high-quality subsets can yield up to a 16-point increase in HumanEval pass rate.