cfahlgren1 HF Staff commited on
Commit
7d63503
·
verified ·
1 Parent(s): e77bc0e

add parquet files with a glb mesh column and a glb file for every row

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. README.md +20 -5
  3. data/stage1/train-00000-of-00001.parquet +3 -0
  4. data/stage1/validation-00000-of-00001.parquet +3 -0
  5. data/stage2/train-00000-of-00001.parquet +3 -0
  6. data/stage2/validation-00000-of-00001.parquet +3 -0
  7. glb/stage1-train-00000.glb +0 -0
  8. glb/stage1-train-00001.glb +0 -0
  9. glb/stage1-train-00002.glb +0 -0
  10. glb/stage1-train-00003.glb +0 -0
  11. glb/stage1-train-00004.glb +0 -0
  12. glb/stage1-train-00005.glb +0 -0
  13. glb/stage1-train-00006.glb +0 -0
  14. glb/stage1-train-00007.glb +0 -0
  15. glb/stage1-train-00008.glb +0 -0
  16. glb/stage1-train-00009.glb +0 -0
  17. glb/stage1-train-00010.glb +0 -0
  18. glb/stage1-train-00011.glb +0 -0
  19. glb/stage1-train-00012.glb +0 -0
  20. glb/stage1-train-00013.glb +0 -0
  21. glb/stage1-train-00014.glb +0 -0
  22. glb/stage1-train-00015.glb +0 -0
  23. glb/stage1-train-00016.glb +0 -0
  24. glb/stage1-train-00017.glb +0 -0
  25. glb/stage1-train-00018.glb +0 -0
  26. glb/stage1-train-00019.glb +0 -0
  27. glb/stage1-train-00020.glb +0 -0
  28. glb/stage1-train-00021.glb +0 -0
  29. glb/stage1-train-00022.glb +0 -0
  30. glb/stage1-train-00023.glb +0 -0
  31. glb/stage1-train-00024.glb +0 -0
  32. glb/stage1-train-00025.glb +0 -0
  33. glb/stage1-train-00026.glb +0 -0
  34. glb/stage1-train-00027.glb +0 -0
  35. glb/stage1-train-00028.glb +0 -0
  36. glb/stage1-train-00029.glb +0 -0
  37. glb/stage1-train-00030.glb +0 -0
  38. glb/stage1-train-00031.glb +0 -0
  39. glb/stage1-train-00032.glb +0 -0
  40. glb/stage1-train-00033.glb +0 -0
  41. glb/stage1-train-00034.glb +0 -0
  42. glb/stage1-train-00035.glb +0 -0
  43. glb/stage1-train-00036.glb +0 -0
  44. glb/stage1-train-00037.glb +0 -0
  45. glb/stage1-train-00038.glb +0 -0
  46. glb/stage1-train-00039.glb +0 -0
  47. glb/stage1-train-00040.glb +0 -0
  48. glb/stage1-train-00041.glb +0 -0
  49. glb/stage1-train-00042.glb +0 -0
  50. glb/stage1-train-00043.glb +0 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* 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
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ *.glb filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -15,12 +15,26 @@ tags:
15
  - 3d
16
  - synthetic
17
  size_categories:
18
- - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
  # LowPoly Coder 4B training data
22
 
23
- > **GLB-only copy.** This is a copy of [`townbox/lowpoly-coder-4b-data`](https://huggingface.co/datasets/townbox/lowpoly-coder-4b-data) with the parquet files removed, so that the 60 `.glb` files in `glb/` are what the dataset viewer shows. The `stage1` and `stage2` configs and the code snippets below refer to the original repo, which still has the full training data.
24
 
25
  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.
26
 
@@ -47,6 +61,7 @@ This is the complete training data of [`townbox/lowpoly-coder-4b`](https://huggi
47
  | `category` | One of the 10 categories |
48
  | `prompt` | The user request |
49
  | `response` | The exact assistant answer used as the training target |
 
50
 
51
  Each `response` has the same shape:
52
 
@@ -94,10 +109,10 @@ print(row["id"], row["prompt"]) # stage1-train-06570 I need a low-poly farm ox.
94
  ```
95
 
96
  ### 3D files (GLB)
97
- [`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.
98
  - **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.
99
- - **Validation:** all 60 pass the Khronos glTF validator with 0 errors and 0 warnings. Their mesh and triangle counts match the renders above.
100
- - **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`.
101
 
102
  ```python
103
  from huggingface_hub import hf_hub_download
 
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
+ > **Copy with a 3D column.** This is a copy of [`townbox/lowpoly-coder-4b-data`](https://huggingface.co/datasets/townbox/lowpoly-coder-4b-data) that keeps the same parquet files and rows, and adds a `glb` column so the dataset viewer shows a 3D preview for each row. The code snippets below refer to the original repo.
38
 
39
  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.
40
 
 
61
  | `category` | One of the 10 categories |
62
  | `prompt` | The user request |
63
  | `response` | The exact assistant answer used as the training target |
64
+ | `glb` | The 3D object built by the row's `response` code, as a reference to its file in `glb/` |
65
 
66
  Each `response` has the same shape:
67
 
 
109
  ```
110
 
111
  ### 3D files (GLB)
112
+ [`glb/`](https://huggingface.co/datasets/cfahlgren1/lowpoly-coder-4b-data/tree/main/glb) holds one `.glb` file for every row, except `stage1-valid-00036`, whose code throws an error when run, so its `glb` value is null. Each file is named after its source row: `glb/stage1-train-06570.glb` is the farm ox.
113
  - **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.
114
+ - **Validation:** the 60 sampled rows' files, copied from the original repo, pass the Khronos glTF validator with 0 errors and 0 warnings. Their mesh and triangle counts match the renders above.
115
+ - **Source row:** those 60 files also record its row in `asset.extras.source`: dataset, revision, config, split, id, category, prompt and the SHA-256 of the row's `response`.
116
 
117
  ```python
118
  from huggingface_hub import hf_hub_download
data/stage1/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1d72804b18da7fae74ef07fa58a1847b489373b5018746efdf1502aa432dccd
3
+ size 9326814
data/stage1/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f6ea67954d09daa48e1745d3c594fecaef1dec730749da993c104fc0d33af1b
3
+ size 514585
data/stage2/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b8be4d2cfc581ee044f110758181ef69841d428d478c093da4e509c8f2fc575
3
+ size 3464435
data/stage2/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf37b936d835506792197d865025269cec323ea053dab4d208bb680a78eb8a40
3
+ size 178261
glb/stage1-train-00000.glb ADDED
Binary file (10.5 kB). View file
 
glb/stage1-train-00001.glb ADDED
Binary file (28.3 kB). View file
 
glb/stage1-train-00002.glb ADDED
Binary file (30.5 kB). View file
 
glb/stage1-train-00003.glb ADDED
Binary file (22.7 kB). View file
 
glb/stage1-train-00004.glb ADDED
Binary file (19.1 kB). View file
 
glb/stage1-train-00005.glb ADDED
Binary file (24.3 kB). View file
 
glb/stage1-train-00006.glb ADDED
Binary file (33.6 kB). View file
 
glb/stage1-train-00007.glb ADDED
Binary file (33.3 kB). View file
 
glb/stage1-train-00008.glb ADDED
Binary file (33.5 kB). View file
 
glb/stage1-train-00009.glb ADDED
Binary file (14.2 kB). View file
 
glb/stage1-train-00010.glb ADDED
Binary file (17.4 kB). View file
 
glb/stage1-train-00011.glb ADDED
Binary file (24.2 kB). View file
 
glb/stage1-train-00012.glb ADDED
Binary file (24.9 kB). View file
 
glb/stage1-train-00013.glb ADDED
Binary file (47 kB). View file
 
glb/stage1-train-00014.glb ADDED
Binary file (18.1 kB). View file
 
glb/stage1-train-00015.glb ADDED
Binary file (16.9 kB). View file
 
glb/stage1-train-00016.glb ADDED
Binary file (21.2 kB). View file
 
glb/stage1-train-00017.glb ADDED
Binary file (23.5 kB). View file
 
glb/stage1-train-00018.glb ADDED
Binary file (22.8 kB). View file
 
glb/stage1-train-00019.glb ADDED
Binary file (21.5 kB). View file
 
glb/stage1-train-00020.glb ADDED
Binary file (22.3 kB). View file
 
glb/stage1-train-00021.glb ADDED
Binary file (17.1 kB). View file
 
glb/stage1-train-00022.glb ADDED
Binary file (15.4 kB). View file
 
glb/stage1-train-00023.glb ADDED
Binary file (22.1 kB). View file
 
glb/stage1-train-00024.glb ADDED
Binary file (17.8 kB). View file
 
glb/stage1-train-00025.glb ADDED
Binary file (22.5 kB). View file
 
glb/stage1-train-00026.glb ADDED
Binary file (44.4 kB). View file
 
glb/stage1-train-00027.glb ADDED
Binary file (39.3 kB). View file
 
glb/stage1-train-00028.glb ADDED
Binary file (19.4 kB). View file
 
glb/stage1-train-00029.glb ADDED
Binary file (22.8 kB). View file
 
glb/stage1-train-00030.glb ADDED
Binary file (35 kB). View file
 
glb/stage1-train-00031.glb ADDED
Binary file (22.9 kB). View file
 
glb/stage1-train-00032.glb ADDED
Binary file (21.7 kB). View file
 
glb/stage1-train-00033.glb ADDED
Binary file (28.4 kB). View file
 
glb/stage1-train-00034.glb ADDED
Binary file (19.2 kB). View file
 
glb/stage1-train-00035.glb ADDED
Binary file (14.1 kB). View file
 
glb/stage1-train-00036.glb ADDED
Binary file (22.8 kB). View file
 
glb/stage1-train-00037.glb ADDED
Binary file (29 kB). View file
 
glb/stage1-train-00038.glb ADDED
Binary file (26.2 kB). View file
 
glb/stage1-train-00039.glb ADDED
Binary file (15.3 kB). View file
 
glb/stage1-train-00040.glb ADDED
Binary file (15.9 kB). View file
 
glb/stage1-train-00041.glb ADDED
Binary file (16.1 kB). View file
 
glb/stage1-train-00042.glb ADDED
Binary file (30.4 kB). View file
 
glb/stage1-train-00043.glb ADDED
Binary file (30.7 kB). View file