| Kind | dataset | dataset |
|---|
| Published | — | 2024 |
|---|
| License | Apache-2.0 | other (permissively licensed Kotlin code, varies per file; Apache 2.0 common) |
|---|
| License family | Permissive | Other |
|---|
| Access | free | free |
|---|
| Language codes | en | code |
|---|
| Modalities | text | text |
|---|
| Size | — | 1M to 10M rows |
|---|
| Downloads (last month) | — | 1,686 |
|---|
| Likes | — | 14 |
|---|
| Last updated | — | 2025-04-22 |
|---|
| Tasks | — | text-generation |
|---|
| Formats | — | parquet |
|---|
| Scale | HF card: 478,229 final rows, size_categories 100K<n<1M, train.jsonl. 843 downloads / 121 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. |
|---|
| Format | JSONL (train.jsonl) | parquet (33 shards). Fields: path, owner, repo_id, is_fork, languages_distribution, content, issues, main_language, forks, stars, commit_sha, size, name, license. |
|---|
| Type | Prompt-only training mixture / ShareGPT-style prompts for loop mining | Pretraining corpus / permissively licensed Kotlin files |
|---|
| Cost | Free | Free |
|---|
| Languages | English | 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. |
|---|
| Modality | Text-only | Text (Kotlin source) |
|---|
| Domain | reasoning-model degeneration; doom-loop elicitation; preference-data pipelines | Kotlin source-code pretraining; permissively licensed GitHub |
|---|
| Time period | HF createdAt 2026-05-02; lastModified 2026-07-28. Blog/tweet 2026-07-07. Discord posted 2026-07-07. | 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. |
|---|
| Purpose | Prompt-only mix to elicit repetitive doom loops, then mine FTPO chosen/rejected tokens | Largest public permissively licensed Kotlin file collection for code LM pretrain/finetune, denser than The Stack v2 Kotlin slice |
|---|
| Used for | None | 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. |
|---|
| Authors | Liquid AI mix of public math/code/chat sources (GSM8K, MATH, MMLU aux, MathQA, CommonsenseQA, PubMedQA artificial, APPS, MetaMathQA, UltraInteract, UltraChat, Evol-CodeAlpaca, AutoIF, LMSYS Arena, LiquidAI/ifstruct_generated). | 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. |
|---|
| Bias | Math/code/instruction-chat heavy (capped ~50k per source). Public eval/test prompts and noncommercial/unclear-redistribution sources excluded. Prompt-only: gold answers and answer cues stripped. | 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 quality | Prompts taken from established public datasets after answer-trace filtering. No gold responses in the release. | 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 size | Single train split 478,229. Per-source caps in README (e.g. MMLU aux 50,000; APPS 5,000; ifstruct 20,000). | 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 context | No (short prompts; loops appear in generated completions, not in this file) | Mixed (per-file; mean ~3.0 KB / file from dataset_size/n). Not repo-level packing. |
|---|
| Intermediate steps | Yes (source subsetting, answer-cue stripping, row filters, ShareGPT conversion) | 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 quality | High | High |
|---|
| Novelty | Medium (repackaged public prompts for a new failure-mode pipeline) | High (public Kotlin dump ~2× Stack v2 Kotlin files/tokens, fully permissive) |
|---|
| Text conversion | Ready JSONL | Ready parquet. load_dataset('JetBrains/KStack'). Full dump is small vs web corpora (~5.9 GB download). |
|---|
| Collection method | Download | Download |
|---|
| Static | Unknown (HF lastModified 2026-07-28) | Unknown (HF lastModified 2025-04-22; Feb 2024 GitHub snapshot) |
|---|
| Processed | Yes | Unknown |
|---|
| Summary | Antidoom mines the first token of a detected loop (≥4 repeats, ≥60 chars), then trains LoRA with Final Token Preference Optimization (FTPO): one rejected token vs up to 20 chosen alternatives, logit-space KL, two-part regularization. Early LFM2.5-2.6B: 10.2%→1.4% doom-loop rate; Qwen3.5-4B greedy: 22.9%→1%, with eval gains attributed to fewer loops. Early-stop at chosen_win≈0.35. Prompt mix LiquidAI/antidoom-mix-v1.0 (478,229 rows) used to elicit loops. Enrichment (2026-11-03 re-share; page updated 2026-10-27): the post's three-mechanism anatomy - (1) overtrained high-prior tokens become fallbacks under uncertainty (loop-starting tokens in the LFM2.5-2.6B checkpoint: ' the' 11.4%, ' So' 4.5%, 'Alternatively' 3.2%, 'Wait' 2.6%, ' But' 2.5%); (2) each repetition self-reinforces toward probability 1, with semantic repetition preceding textual repetition (Duan et al.); (3) low-temperature decoding has no exit, and looping persists even at temp 0.67 once saturation sets in. Recipe detail: LoRA rank 128-256 over all attention/MLP projections plus lm_head, LR 4e-6 to 2e-5, one epoch; about 1 hour on 8x MI325 to generate 20K pairs and 1-2 hours on 1x MI325 to train; overtraining creates NEW loop points, and multiple Antidoom rounds help because each round exposes new loop-starting tokens. Notable secondary finding: after de-looping, the temp=1.0 sampling advantage disappears and near-greedy decoding wins - the authors suggest the 'higher temperature helps reasoning' heuristic was partly a doom-loop artifact. Cross-reference: the same reasoning-loop failure in Qwen3.5-0.8B was fixed without any training in ID 1798 by deleting a weight direction; Antidoom is the training-side counterpart, positioned against inference-time repetition_penalty (degrades performance) and anti-repetition RL (rollout-expensive). | 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. |
|---|