sandeep85's picture
Add five 3D assets written by Qwen3.5-4B-3D-Coder-OptiQ-4bit, as GLB plus source HTML
01f0f49 verified
|
Raw History Blame Contribute Delete
5.2 kB
---
license: apache-2.0
pretty_name: OptiQ 3D Coder assets
tags:
- 3d
- glb
- gltf
- three.js
- game-assets
- mlx
- optiq
- apple-silicon
size_categories:
- n<1K
---
# OptiQ 3D Coder assets
Five game-style 3D assets written by [mlx-community/Qwen3.5-4B-3D-Coder-OptiQ-4bit](https://huggingface.co/mlx-community/Qwen3.5-4B-3D-Coder-OptiQ-4bit), a 4B model running locally on a Mac (M4, 24 GB). The model writes each asset as a single-file Three.js HTML scene. That code is unedited. The `.glb` files in `assets/` were exported from those generated scenes in a headless browser, so they can be viewed in the gallery here or dropped into a game engine.
## Assets
| Asset | GLB | Source | Prompt | Tokens |
|---|---|---|---|---:|
| Stone golem boss | [golem.glb](assets/golem.glb) | [HTML](source/golem.html), [front](source/golem-front.png), [side](source/golem-side.png) | Please create one self-contained HTML file with Three.js from cdnjs showing a stone golem boss with glowing green crystals growing from its shoulders. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 10,771 |
| Pirate deck cannon | [cannon.glb](assets/cannon.glb) | [HTML](source/cannon.html), [PNG](source/cannon.png) | Please create one self-contained HTML file with Three.js from cdnjs showing a pirate deck cannon on a wooden carriage with a stack of cannonballs. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 14,269 |
| Potion set | [potions.glb](assets/potions.glb) | [HTML](source/potions.html), [PNG](source/potions.png) | Please create one self-contained HTML file with Three.js from cdnjs showing a set of three potion bottles, red, blue and green, with corks, on a small wooden tray. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 12,802 |
| Voxel swamp goblin | [voxel-goblin.glb](assets/voxel-goblin.glb) | [HTML](source/voxel-goblin.html), [PNG](source/voxel-goblin.png) | Please create one self-contained HTML file with Three.js from cdnjs showing a swamp goblin enemy with big ears, a leather vest and a spiked wooden club. Render it as a deliberate 3D voxel model built from visible cubic blocks, with clear depth, readable silhouettes, and solid spatial relationships. Make it a single game-ready asset centred on a plain ground plane, slowly turning on a turntable, with mouse orbit controls. | 20,079 |
| Castle guard tower | [tower.glb](assets/tower.glb) | [HTML](source/tower.html), [PNG](source/tower.png) | Please create one self-contained HTML file with Three.js from cdnjs showing a medieval castle guard tower module with battlements, a wooden door and a flag waving at the top. Make it a single game-ready asset: centred on a plain ground plane, a clear readable silhouette, built from separate named meshes, slowly turning on a turntable, with mouse orbit controls. | 14,070 |
Token counts include the model's reasoning. Each run used this system prompt from the base model's author:
```text
Use only the Three.js core ES module from
https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js.
Do not import addons or legacy examples/js paths;
implement any camera controls directly inside the HTML.
```
Settings: temperature 0.6, top_p 0.95, top_k 20, no repetition penalty, `max_tokens` 64000, thinking on, seeded.
## Notes
- **These are picks, not a typical sample.** Of 18 attempts, 11 rendered in the browser, 3 crashed on load and 4 looped in reasoning until the 64k token cap. These five were chosen from the 11 that rendered.
- **They aren't flawless.** The potions have no visible corks, the goblin's ears are flat from the side, and the tower's battlements are oversized.
- **The GLBs are exports of the rendered scenes.** Each was exported with Three.js r160's `GLTFExporter` after the scene had built. The large ground plane, lights, fog, background and the golem's floating dust particles were left out, and animation is not included, so each file is the static asset. Materials are simplified in the conversion: glow, shadows and some non-standard materials won't look exactly as they do in the original page. Open the HTML in `source/` to see the scene as the model wrote it.
## Run the model
```bash
pip install mlx-optiq
optiq serve --model mlx-community/Qwen3.5-4B-3D-Coder-OptiQ-4bit
```
[OptiQ](https://mlx-optiq.com/?utm_source=huggingface&utm_medium=dataset&utm_campaign=3d_assets) is a free MLX toolkit to quantize, fine-tune and serve LLMs locally on Apple Silicon. [OptiQ Code](https://mlx-optiq.com/code?utm_source=huggingface&utm_medium=dataset&utm_campaign=3d_assets) is its coding agent.
## Credits
The base model is [ccore/Qwen3.5-4B-3D-Coder](https://huggingface.co/ccore/Qwen3.5-4B-3D-Coder), a Qwen3.5 4B fine-tune for writing Three.js scenes, released under Apache 2.0. This dataset uses the same license.