bunnycore commited on
Commit
55ba881
·
verified ·
1 Parent(s): 5616399

Card: single 178-row train split, merged games slice

Browse files
Files changed (1) hide show
  1. README.md +19 -30
README.md CHANGED
@@ -17,18 +17,14 @@ configs:
17
  data_files:
18
  - split: train
19
  path: distillation-150.parquet
20
- - config_name: games
21
- data_files:
22
- - split: train
23
- path: games-28.parquet
24
  ---
25
 
26
  # distillation-150
27
 
28
- Two SFT / distillation sample sets for small language models:
29
 
30
- - `default` — 150 single-turn (user → assistant) reasoning-focused coding samples.
31
- - `games` — 28 multi-turn (user ↔ assistant × 2) browser-game samples.
32
 
33
  Every assistant reply starts with a `<think>` block that derives the solution from first
34
  principles (zero-knowledge style, no template phases), followed by a concise explanation
@@ -43,8 +39,11 @@ schema:
43
  messages: list<struct<role: string, content: string>>
44
  ```
45
 
46
- Each `messages` is `[user, assistant]`. The user turn is a coding task/brief; the
47
- assistant turn is:
 
 
 
48
 
49
  ```
50
  <think>
@@ -78,13 +77,8 @@ everything from the problem statement:
78
 
79
  ## Games: 28 multi-turn game samples
80
 
81
- The repo also ships `games-28.parquet` under the `games` config. Each row is a four-message
82
- conversation (user, assistant, user, assistant) that builds a playable browser game and then
83
- extends or repairs it:
84
-
85
- ```python
86
- ds = load_dataset("bunnycore/distillation-150", "games", split="train")
87
- ```
88
 
89
  ```
90
  user -> build brief for a single-file HTML/CSS/JS game
@@ -106,22 +100,13 @@ All games are vanilla, single-file, dependency-free, and expose a small `window.
106
  API (`state()`, `start()`, `reset()`, `tick(ms)`, plus game actions) so the core rules can be
107
  exercised without a browser driver. Every game was loaded in Chromium with zero console
108
  errors and smoke-tested through the debug API (input, ticks, scoring, lives, persistence).
109
- Think blocks follow the same zero-knowledge style as the default config.
110
-
111
- ## Loading the games config
112
-
113
- ```python
114
- from datasets import load_dataset
115
- ds = load_dataset("bunnycore/distillation-150", "games", split="train")
116
- print(ds) # DatasetDict({train: 28})
117
- print(ds[0]["messages"][1]["content"][:200])
118
- ```
119
 
120
  ## Composition
121
 
122
  | Slice | Count | Language | Delivery |
123
  |---|---|---|---|
124
- | Games | 25 | HTML/JS (single file, vanilla) | canvas games: breakout, lane-dodge, 2048-lite, minesweeper, … |
125
  | Apps | 50 | HTML/JS (single file, vanilla) | timers, calculators, converters, localStorage tools |
126
  | Interactive tools/viz | 25 | HTML/JS + Canvas + Web Audio | sort/pathfinding visualizers, Web Audio synths |
127
  | Algorithms | 50 | Python 3 (stdlib only) | DP, parsing, graphs, heaps, with `if __name__ == "__main__"` demos |
@@ -135,10 +120,13 @@ No external libraries, fonts, images, CDNs, or assets anywhere in the samples.
135
  from datasets import load_dataset
136
 
137
  ds = load_dataset("bunnycore/distillation-150", split="train")
138
- print(ds) # Dataset({features: ['messages'], num_rows: 150})
139
  print(ds[0]["messages"][0]["content"][:200])
140
  ```
141
 
 
 
 
142
  Or directly:
143
 
144
  ```python
@@ -162,10 +150,11 @@ Every row was machine-checked before upload:
162
  ## Honest limitations
163
 
164
  - **Not human-reviewed.** These are machine-generated and machine-checked samples.
165
- No browser/e2e testing was run on the 100 HTML/JS entries; canvas/audio behavior is
 
166
  traced, not observed.
167
  - Two near-duplicate mechanics (`stroop-test`, `color-reaction`) slipped through review.
168
- - Small sample (n=150) — a seed set to iterate on, not a training-ready corpus.
169
  Expect several percent of entries to need manual repair before training.
170
  - Assistant code follows the stated constraints (single file, stdlib-only) and encodes
171
  one reference style; style diversity is low by construction.
 
17
  data_files:
18
  - split: train
19
  path: distillation-150.parquet
 
 
 
 
20
  ---
21
 
22
  # distillation-150
23
 
24
+ 178 SFT / distillation coding samples for small language models, in one train split:
25
 
26
+ - 150 single-turn (user → assistant) reasoning-focused coding samples
27
+ - 28 multi-turn (user ↔ assistant × 2) browser-game samples
28
 
29
  Every assistant reply starts with a `<think>` block that derives the solution from first
30
  principles (zero-knowledge style, no template phases), followed by a concise explanation
 
39
  messages: list<struct<role: string, content: string>>
40
  ```
41
 
42
+ Each `messages` is `[user, assistant]` for the 150 single-turn samples and
43
+ `[user, assistant, user, assistant]` for the 28 multi-turn games. Single-turn rows: the
44
+ user turn is a coding task/brief and the assistant turn is one complete program. Multi-turn
45
+ rows: the first pair builds a complete browser game, the second pair adds a feature or
46
+ fixes a bug and returns the full updated file.
47
 
48
  ```
49
  <think>
 
77
 
78
  ## Games: 28 multi-turn game samples
79
 
80
+ Every row in the `games` slice is a four-message conversation that builds a playable
81
+ browser game and then extends or repairs it:
 
 
 
 
 
82
 
83
  ```
84
  user -> build brief for a single-file HTML/CSS/JS game
 
100
  API (`state()`, `start()`, `reset()`, `tick(ms)`, plus game actions) so the core rules can be
101
  exercised without a browser driver. Every game was loaded in Chromium with zero console
102
  errors and smoke-tested through the debug API (input, ticks, scoring, lives, persistence).
103
+ Think blocks follow the same zero-knowledge style as the single-turn samples.
 
 
 
 
 
 
 
 
 
104
 
105
  ## Composition
106
 
107
  | Slice | Count | Language | Delivery |
108
  |---|---|---|---|
109
+ | Games | 53 | HTML/JS + 3D/canvas | 25 single-turn games + 28 multi-turn browser games |
110
  | Apps | 50 | HTML/JS (single file, vanilla) | timers, calculators, converters, localStorage tools |
111
  | Interactive tools/viz | 25 | HTML/JS + Canvas + Web Audio | sort/pathfinding visualizers, Web Audio synths |
112
  | Algorithms | 50 | Python 3 (stdlib only) | DP, parsing, graphs, heaps, with `if __name__ == "__main__"` demos |
 
120
  from datasets import load_dataset
121
 
122
  ds = load_dataset("bunnycore/distillation-150", split="train")
123
+ print(ds) # Dataset({features: ['messages'], num_rows: 178})
124
  print(ds[0]["messages"][0]["content"][:200])
125
  ```
126
 
127
+ Rows with exactly 2 messages are the single-turn coding tasks; rows with exactly 4 are the
128
+ multi-turn browser games. Filter with `ds.filter(lambda r: len(r["messages"]) == 4)`.
129
+
130
  Or directly:
131
 
132
  ```python
 
150
  ## Honest limitations
151
 
152
  - **Not human-reviewed.** These are machine-generated and machine-checked samples.
153
+ The 28 browser games were smoke-tested in Chromium through a `window.__game` debug
154
+ API; the other 150 entries have no browser testing — canvas/audio behavior there is
155
  traced, not observed.
156
  - Two near-duplicate mechanics (`stroop-test`, `color-reaction`) slipped through review.
157
+ - Small sample (n=178) — a seed set to iterate on, not a training-ready corpus.
158
  Expect several percent of entries to need manual repair before training.
159
  - Assistant code follows the stated constraints (single file, stdlib-only) and encodes
160
  one reference style; style diversity is low by construction.