cfahlgren1 HF Staff Mike0021 commited on
Commit
7e035ce
·
0 Parent(s):

Duplicate from townbox/lowpoly-coder-4b-data

Browse files

Co-authored-by: Mike <Mike0021@users.noreply.huggingface.co>

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +60 -0
  2. LICENSE.md +5 -0
  3. README.md +145 -0
  4. data/stage1/train-00000-of-00001.parquet +3 -0
  5. data/stage1/validation-00000-of-00001.parquet +3 -0
  6. data/stage2/train-00000-of-00001.parquet +3 -0
  7. data/stage2/validation-00000-of-00001.parquet +3 -0
  8. glb/stage1-train-00214.glb +0 -0
  9. glb/stage1-train-00473.glb +0 -0
  10. glb/stage1-train-00658.glb +0 -0
  11. glb/stage1-train-00943.glb +0 -0
  12. glb/stage1-train-01156.glb +0 -0
  13. glb/stage1-train-01230.glb +0 -0
  14. glb/stage1-train-01290.glb +0 -0
  15. glb/stage1-train-01671.glb +0 -0
  16. glb/stage1-train-01716.glb +0 -0
  17. glb/stage1-train-01718.glb +0 -0
  18. glb/stage1-train-01809.glb +0 -0
  19. glb/stage1-train-01897.glb +0 -0
  20. glb/stage1-train-02158.glb +0 -0
  21. glb/stage1-train-02827.glb +0 -0
  22. glb/stage1-train-02876.glb +0 -0
  23. glb/stage1-train-02971.glb +0 -0
  24. glb/stage1-train-03305.glb +0 -0
  25. glb/stage1-train-03498.glb +0 -0
  26. glb/stage1-train-03784.glb +0 -0
  27. glb/stage1-train-04067.glb +0 -0
  28. glb/stage1-train-04287.glb +0 -0
  29. glb/stage1-train-04456.glb +0 -0
  30. glb/stage1-train-04482.glb +0 -0
  31. glb/stage1-train-04484.glb +0 -0
  32. glb/stage1-train-04543.glb +0 -0
  33. glb/stage1-train-05062.glb +0 -0
  34. glb/stage1-train-05069.glb +0 -0
  35. glb/stage1-train-05191.glb +0 -0
  36. glb/stage1-train-05311.glb +0 -0
  37. glb/stage1-train-05725.glb +0 -0
  38. glb/stage1-train-05918.glb +0 -0
  39. glb/stage1-train-05984.glb +0 -0
  40. glb/stage1-train-06161.glb +0 -0
  41. glb/stage1-train-06407.glb +0 -0
  42. glb/stage1-train-06467.glb +0 -0
  43. glb/stage1-train-06570.glb +0 -0
  44. glb/stage1-train-06599.glb +0 -0
  45. glb/stage1-train-07373.glb +0 -0
  46. glb/stage1-train-07386.glb +0 -0
  47. glb/stage1-train-07496.glb +0 -0
  48. glb/stage2-train-00147.glb +0 -0
  49. glb/stage2-train-00258.glb +0 -0
  50. glb/stage2-train-00358.glb +0 -0
.gitattributes ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp filter=lfs diff=lfs merge=lfs -text
58
+ # Video files - compressed
59
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
60
+ *.webm filter=lfs diff=lfs merge=lfs -text
LICENSE.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Licence notice
2
+
3
+ This dataset contains synthetic text and JavaScript code. The `stage1` rows were generated by `deepseek/deepseek-v4.1-flash-1017`, accessed through OpenRouter. The `stage2` rows were generated by `townbox/lowpoly-coder-4b`'s stage-1 checkpoint, a fine-tune of `Qwen/Qwen3.5-4B` (Apache-2.0) trained on the `stage1` rows.
4
+
5
+ Use of this data is subject to the licence and terms of those models and of the services through which they were accessed. No separate licence has been chosen for this compilation. Check those terms before redistributing or using the data commercially.
README.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: LowPoly Coder 4B training data
3
+ license: other
4
+ license_name: deepseek-output-terms
5
+ license_link: LICENSE.md
6
+ language:
7
+ - en
8
+ task_categories:
9
+ - text-generation
10
+ tags:
11
+ - code
12
+ - javascript
13
+ - threejs
14
+ - low-poly
15
+ - 3d
16
+ - synthetic
17
+ size_categories:
18
+ - 10K<n<100K
19
+ configs:
20
+ - config_name: stage1
21
+ default: true
22
+ data_files:
23
+ - split: train
24
+ path: data/stage1/train-*.parquet
25
+ - split: validation
26
+ path: data/stage1/validation-*.parquet
27
+ - config_name: stage2
28
+ data_files:
29
+ - split: train
30
+ path: data/stage2/train-*.parquet
31
+ - split: validation
32
+ path: data/stage2/validation-*.parquet
33
+ ---
34
+
35
+ # LowPoly Coder 4B training data
36
+
37
+ This is the complete training data of [`townbox/lowpoly-coder-4b`](https://huggingface.co/townbox/lowpoly-coder-4b), and nothing else. Each row pairs a one-sentence request for a 3D object ("Build a low-poly accent cabinet.") with the answer the model was trained to give: a short spec, then JavaScript that builds the object as a low-poly Three.js (r180) asset.
38
+
39
+ ![Six rendered views (front, back, left, right, front-left, back-right) of the object built by row stage1-train-06570, "I need a low-poly farm ox.": a brown ox with a barrel body, four legs with dark hooves, a dark muzzle, two ivory horns and a thin tail.](images/six-views-stage1-train-06570.png)
40
+
41
+ *The object built by the code in row `stage1-train-06570` ("I need a low-poly farm ox."), seen from six sides. See [Examples](#examples) for more.*
42
+
43
+ ## Contents
44
+
45
+ | Config | What it is | train | validation |
46
+ |---|---|---:|---:|
47
+ | `stage1` (default) | Answers written by DeepSeek V4.1 Flash, kept only when the code ran and passed technical checks | 7,599 | 412 |
48
+ | `stage2` | Answers written by the stage-1 model itself, kept only when they passed all technical checks and a vision model judged the render recognisable | 4,245 | 199 |
49
+
50
+ - **Training order:** the model was fine-tuned from `Qwen/Qwen3.5-4B` on `stage1`, then on `stage2`.
51
+ - **Validation:** `validation` rows were held out to monitor loss and were never trained on. The split is by object: an object's rows are either all in train or all in validation.
52
+ - **Coverage:** 10 categories, roughly balanced: animals; birds, sea creatures and bugs; containers and food; furniture; props; tools and gear; vehicles; architecture; fantasy and game; plants.
53
+
54
+ ## Columns
55
+
56
+ | Column | Meaning |
57
+ |---|---|
58
+ | `id` | Row id, e.g. `stage2-train-00000` |
59
+ | `category` | One of the 10 categories |
60
+ | `prompt` | The user request |
61
+ | `response` | The exact assistant answer used as the training target |
62
+
63
+ Each `response` has the same shape:
64
+
65
+ ~~~text
66
+ Asset: Accent cabinet
67
+ Triangle budget: 500
68
+ Brief: Narrow tall sideboard standing on four short tapered legs, front facing +Z: ...
69
+ Required named parts: carcass, top, door_left, door_right, knob_left, knob_right, leg_1, ...
70
+
71
+ ```javascript
72
+ function buildAsset(THREE) { ... return group; }
73
+ ```
74
+ ~~~
75
+
76
+ ## Examples
77
+
78
+ Every image here is a render of a real row. The row's own `response` code was run unchanged with Three.js r180 in a sandbox, and the meshes it built were drawn with flat shading. Nothing was modelled, edited or retouched by hand. Each tile is labelled with its source row's `id`, and [`images/examples.csv`](images/examples.csv) maps every tile to its row, with the SHA-256 of that row's `response`.
79
+
80
+ ### Stage 1: answers by DeepSeek V4.1 Flash
81
+
82
+ ![Six stage1 rows, front-left view: a farm ox (stage1-train-06570), a breeding barn (stage1-train-01290), a rooster (stage1-train-01716), a carton of waffle fries (stage1-train-07496), a grimoire (stage1-train-02876) and a conga drum (stage1-train-01809).](images/gallery-stage1.png)
83
+
84
+ ### Stage 2: answers by the stage-1 model
85
+
86
+ ![Six stage2 rows, front-left view: a utility vehicle (stage2-train-01374), a bottle jack (stage2-train-01487), an agave plant (stage2-train-01828), a pencil cup holder (stage2-train-02452), a cuttlefish (stage2-train-02913) and a game controller (stage2-train-00768).](images/gallery-stage2.png)
87
+
88
+ These 12 were picked by hand from the sample below because they read clearly, so they are better than a typical row.
89
+
90
+ ### Uncurated sample
91
+
92
+ ![A grid of 60 rendered objects, one category per row of the grid, each labelled with its request and row id: animals, buildings, birds and sea creatures, containers and food, fantasy items, furniture, plants and rocks, props, tools and vehicles.](images/sample-60-rows.png)
93
+
94
+ This is a seeded random sample (seed 20261105) of 60 `train` rows: 4 from `stage1` and 2 from `stage2` in each category. Every sampled row is shown, one category per line.
95
+ - **Checks:** all 60 ran and rendered. 59 passed every technical check: finite geometry within the spec's own triangle budget, every mesh a closed solid, and all parts joined in one piece. `stage2-train-00258` (a straw broom) uses 292 triangles, over the 250 its spec states.
96
+ - **Quality varies:** most are clearly the requested object, and a few only loosely, such as the robe hook (`stage2-train-02537`).
97
+
98
+ ### Finding a row
99
+ The number in an `id` is the row's position in its config and split, so the farm ox is:
100
+
101
+ ```python
102
+ from datasets import load_dataset
103
+
104
+ row = load_dataset("townbox/lowpoly-coder-4b-data", "stage1", split="train")[6570]
105
+ print(row["id"], row["prompt"]) # stage1-train-06570 I need a low-poly farm ox.
106
+ ```
107
+
108
+ ### 3D files (GLB)
109
+ [`glb/`](https://huggingface.co/datasets/townbox/lowpoly-coder-4b-data/tree/main/glb) holds one `.glb` file for each of the 60 sampled rows above. These include every row shown on this card. Each file is named after its source row: `glb/stage1-train-06570.glb` is the farm ox.
110
+ - **How they were made:** each row's `response` code was run unchanged through [`export_glb.mjs`](https://huggingface.co/townbox/lowpoly-coder-4b/blob/main/export_glb.mjs) from the model repo (Three.js r180). The result has one named node per mesh, flat shading and base colours only, with no textures.
111
+ - **Validation:** all 60 pass the Khronos glTF validator with 0 errors and 0 warnings. Their mesh and triangle counts match the renders above.
112
+ - **Source row:** each file also records its row in `asset.extras.source`: dataset, revision, config, split, id, category, prompt and the SHA-256 of the row's `response`.
113
+
114
+ ```python
115
+ from huggingface_hub import hf_hub_download
116
+
117
+ path = hf_hub_download("townbox/lowpoly-coder-4b-data", "glb/stage1-train-06570.glb", repo_type="dataset")
118
+ ```
119
+
120
+ ## How it was used for training
121
+ Every row was trained as one chat:
122
+ - **System:** `system_prompt.md`, included in this repo and identical for every row.
123
+ - **User:** `prompt`.
124
+ - **Assistant:** `response`.
125
+
126
+ The chat template was applied with `enable_thinking=False`, and loss was computed on the assistant answer only.
127
+
128
+ ```python
129
+ from datasets import load_dataset
130
+ from huggingface_hub import hf_hub_download
131
+
132
+ system = open(hf_hub_download("townbox/lowpoly-coder-4b-data", "system_prompt.md", repo_type="dataset")).read()
133
+ ds = load_dataset("townbox/lowpoly-coder-4b-data", "stage1", split="train")
134
+ ds = ds.map(lambda r: {"messages": [
135
+ {"role": "system", "content": system},
136
+ {"role": "user", "content": r["prompt"]},
137
+ {"role": "assistant", "content": r["response"]},
138
+ ]})
139
+ ```
140
+
141
+ ## Notes
142
+ - **Synthetic content:** all text is model-generated. Requests and specs describe everyday objects, creatures, buildings and fantasy props in one fixed low-poly "woodland" style and palette.
143
+ - **Code safety:** the code was run in a sandbox to check it, but it is still untrusted. Run it isolated if you execute it.
144
+ - **Images and 3D files:** `images/` holds the renders on this card and `examples.csv`, and `glb/` holds the 3D files of the same rows. They document the data and are not part of either config.
145
+ - **Licence:** the `stage1` answers are outputs of `deepseek/deepseek-v4.1-flash-1017`, and `stage2` answers come from a model trained on them. Use is subject to that model's licence and terms, and to the terms of the services it was accessed through. No separate licence has been chosen for this compilation; see `LICENSE.md`.
data/stage1/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0be631f82f8d6f7bde4cd25de456aae43bc040ad14b717819a2c77994d4a24d1
3
+ size 9305083
data/stage1/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9afdf5c0bc7548bd3d248152318d2d90408989ab141e00db5c236bf53557726
3
+ size 512100
data/stage2/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:131afa596e7646b585dedff29abf1cc2f213674be18956899f3e3a559de07e3b
3
+ size 3451625
data/stage2/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36ef07ec485c2b07d9098d53c18d95c3ca4a04434c29f532cebf5fe738031fec
3
+ size 176254
glb/stage1-train-00214.glb ADDED
Binary file (9.78 kB). View file
 
glb/stage1-train-00473.glb ADDED
Binary file (10.2 kB). View file
 
glb/stage1-train-00658.glb ADDED
Binary file (15.2 kB). View file
 
glb/stage1-train-00943.glb ADDED
Binary file (10.1 kB). View file
 
glb/stage1-train-01156.glb ADDED
Binary file (30 kB). View file
 
glb/stage1-train-01230.glb ADDED
Binary file (16.3 kB). View file
 
glb/stage1-train-01290.glb ADDED
Binary file (52 kB). View file
 
glb/stage1-train-01671.glb ADDED
Binary file (11.5 kB). View file
 
glb/stage1-train-01716.glb ADDED
Binary file (24.1 kB). View file
 
glb/stage1-train-01718.glb ADDED
Binary file (13.6 kB). View file
 
glb/stage1-train-01809.glb ADDED
Binary file (18 kB). View file
 
glb/stage1-train-01897.glb ADDED
Binary file (11 kB). View file
 
glb/stage1-train-02158.glb ADDED
Binary file (32.1 kB). View file
 
glb/stage1-train-02827.glb ADDED
Binary file (44.3 kB). View file
 
glb/stage1-train-02876.glb ADDED
Binary file (13.1 kB). View file
 
glb/stage1-train-02971.glb ADDED
Binary file (29.4 kB). View file
 
glb/stage1-train-03305.glb ADDED
Binary file (8.41 kB). View file
 
glb/stage1-train-03498.glb ADDED
Binary file (15.2 kB). View file
 
glb/stage1-train-03784.glb ADDED
Binary file (17.8 kB). View file
 
glb/stage1-train-04067.glb ADDED
Binary file (10.2 kB). View file
 
glb/stage1-train-04287.glb ADDED
Binary file (18.6 kB). View file
 
glb/stage1-train-04456.glb ADDED
Binary file (18.5 kB). View file
 
glb/stage1-train-04482.glb ADDED
Binary file (15.3 kB). View file
 
glb/stage1-train-04484.glb ADDED
Binary file (14.5 kB). View file
 
glb/stage1-train-04543.glb ADDED
Binary file (17.5 kB). View file
 
glb/stage1-train-05062.glb ADDED
Binary file (13.6 kB). View file
 
glb/stage1-train-05069.glb ADDED
Binary file (14 kB). View file
 
glb/stage1-train-05191.glb ADDED
Binary file (20.9 kB). View file
 
glb/stage1-train-05311.glb ADDED
Binary file (19.1 kB). View file
 
glb/stage1-train-05725.glb ADDED
Binary file (32.6 kB). View file
 
glb/stage1-train-05918.glb ADDED
Binary file (26.3 kB). View file
 
glb/stage1-train-05984.glb ADDED
Binary file (23.4 kB). View file
 
glb/stage1-train-06161.glb ADDED
Binary file (25.6 kB). View file
 
glb/stage1-train-06407.glb ADDED
Binary file (22.6 kB). View file
 
glb/stage1-train-06467.glb ADDED
Binary file (15.4 kB). View file
 
glb/stage1-train-06570.glb ADDED
Binary file (25.3 kB). View file
 
glb/stage1-train-06599.glb ADDED
Binary file (30.8 kB). View file
 
glb/stage1-train-07373.glb ADDED
Binary file (11.5 kB). View file
 
glb/stage1-train-07386.glb ADDED
Binary file (13 kB). View file
 
glb/stage1-train-07496.glb ADDED
Binary file (17 kB). View file
 
glb/stage2-train-00147.glb ADDED
Binary file (13 kB). View file
 
glb/stage2-train-00258.glb ADDED
Binary file (19.5 kB). View file
 
glb/stage2-train-00358.glb ADDED
Binary file (23.6 kB). View file