Datasets:
Add dataset card (format, composition, verification, limitations)
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111---license: cc-by-4.0language:- entask_categories:- text-generationtags:- code- distillation- synthetic- reasoning- sftsize_categories:- n<1Kconfigs:- config_name: default data_files: - split: train path: distillation-150.parquet---
# distillation-150
150 single-turn (user → assistant) reasoning-focused coding samples for supervisedfine-tuning (SFT) / distillation of small language models. Every assistant replystarts with a structured `<think>` block that derives the solution from firstprinciples instead of pattern-completing a memorized template, followed by a conciseexplanation and a complete, runnable program.
## Format
Single Parquet file (`distillation-150.parquet`, zstd compression), one row per sample,schema:
```messages: list<struct<role: string, content: string>>```
Each `messages` is `[user, assistant]`. The user turn is a coding task/brief; theassistant turn is:
```<think>1. DECONSTRUCTION & INVARIANTS: ...2. ARCHITECTURE & BINDING CONTRACT: ... (INTERFACE & STRUCTURE for Python)3. DRAFTING CORE LOGIC & SELF-CORRECTION: ...4. CONCRETE DRY-RUN TRACE: ...5. COMPLETENESS VERIFICATION: ...</think>
<2–4 sentence explanation>
<complete runnable code in one fenced block>```
## Composition
| Slice | Count | Language | Delivery ||---|---|---|---|| Games | 25 | HTML/JS (single file, vanilla) | canvas games: breakout, lane-dodge, 2048-lite, minesweeper, … || Apps | 50 | HTML/JS (single file, vanilla) | timers, calculators, converters, localStorage tools || Interactive tools/viz | 25 | HTML/JS + Canvas + Web Audio | sort/pathfinding visualizers, Web Audio synths || Algorithms | 50 | Python 3 (stdlib only) | DP, parsing, graphs, heaps, with `if __name__ == "__main__"` demos |
No external libraries, fonts, images, CDNs, or assets anywhere in the samples.`localStorage` access is wrapped in `try/catch`; `preventDefault` on game keys.
## Loading
```pythonfrom datasets import load_dataset
ds = load_dataset("bunnycore/distillation-150", split="train")print(ds) # Dataset({features: ['messages'], num_rows: 150})print(ds[0]["messages"][0]["content"][:200])```
Or directly:
```pythonimport pandas as pddf = pd.read_parquet("distillation-150.parquet")```
## Verification performed
Every row was machine-checked before upload:
- `<think>…</think>` tags present; exactly one fenced code block per assistant turn; no `TODO`/`FIXME` markers in code.- HTML entries: all `<script>` blocks pass `node --check`; every `getElementById('x')` resolves to an `id="x"` in the same entry's markup.- Python entries: code blocks pass `ast.parse`; every embedded `if __name__ == "__main__":` demo **executes** and prints the annotated expected output.- No duplicate topics or duplicate user prompts; think blocks ≈ 280–630 words.
## Honest limitations
- **Not human-reviewed.** These are machine-generated and machine-checked samples. No browser/e2e testing was run on the 100 HTML/JS entries; canvas/audio behavior is traced, not observed.- Two near-duplicate mechanics (`stroop-test`, `color-reaction`) slipped through review.- Think-block length deviates from the ~350–550 word target in both directions.- Small sample (n=150) — a seed set to iterate on, not a training-ready corpus. Expect several percent of entries to need manual repair before training.- Assistant code follows the stated constraints (single file, stdlib-only) and encodes one reference style; style diversity is low by construction.
## License
CC-BY-4.0.README.mdAdded+111