Text Generation
GGUF
English
threejs
3d-generation
code
lora
conversational
File size: 12,023 Bytes
77e8169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53a8181
77e8169
 
 
 
 
 
 
 
 
7b099bc
 
 
 
 
 
 
 
 
 
77e8169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a174b31
77e8169
 
 
 
d6c5ba2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
---
license: apache-2.0
base_model: thinkingmachines/Inkling-2-Mini
base_model_relation: finetune
datasets:
- ccore/ThreeJS-3D-Scenes
- ccore/ThreeJS-3D-Scenes-v2
language:
- en
pipeline_tag: text-generation
tags:
- threejs
- 3d-generation
- code
- lora
- gguf
---

# Inkling 2 Mini-3D-Coder

### Early preview · Interactive Three.js scenes from text

Inkling 2 Mini-3D-Coder generates interactive Three.js scenes with **roughly 34–86% fewer output tokens** in my tests. The LoRA used **34.7% fewer tokens on average** across 19 scenes, and the strongest result I saw used **86.8% fewer**. Give it a scene description and it writes a standalone HTML file you can open in a browser and explore. [Base model](https://huggingface.co/thinkingmachines/Inkling-2-Mini)

## Why I ran this experiment

I started this experiment because Thinking Machines Lab offered free LoRA fine-tuning for Inkling 2 Mini on Tinker. It gave me a chance to revisit a question from my earlier 4B experiments. Thanks to the Thinking Machines Lab team for making this possible. [Tinker model tiers](https://tinker-docs.thinkingmachines.ai/tinker/models/models_and_pricing/)

In my earlier Qwen3.5-4B experiments, some of the longer LoRA runs started to exaggerate object sizes and distort their proportions. Scene quality dropped as those runs continued, so I went back to full fine-tuning. [Qwen3.5-4B-3D-Coder technical report](https://huggingface.co/ccore/Qwen3.5-4B-3D-Coder/blob/main/Qwen3.5-4B-3D-Coder_Technical_Report.pdf)

My hunch is that the 4B model had more to learn about building geometry and getting a whole scene to render reliably, which may have required deeper changes to the weights in that setup. Inkling 2 Mini could already generate usable Three.js scenes. The proportions held up in the Inkling LoRA runs I reviewed, and I could see improvements in how it framed the red panda and laid out the rooms and stairs in the house. I also wanted to see how often it could finish the HTML within the same generation budget.

## System prompt

For Three.js scene generation, use this system prompt. It matches the one used in training and evaluation. Put your scene description in the user message.

```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.
```

Save the generated HTML as `index.html` and open it in a browser.

## Scene comparisons

I picked scenes where the differences are easy to see. Each comparison uses the same prompt. The captions mark the larger context windows and the conservatory retry.

### Voxel red panda

The fine-tune makes the panda’s face, paws, and curled tail easier to read in one shot. This external prompt was tested with seed 67 at temperature 0.9 and a 64K context on both sides.

| Inkling 2 Mini base | Epoch 5 |
| :---: | :---: |
| [![Base voxel red panda](examples/panda-base.png)](examples/panda-base.png) | [![Fine-tuned voxel red panda with visible paws and curled tail](examples/panda-epoch5.png)](examples/panda-epoch5.png) |
| 55,761 tokens | **37,898 tokens** |

### Family home cutaway

This held-out scene shows why the token budget matters. The base hit the 64K limit on all five seeds. Epoch 5 finished the HTML on all five seeds, and four passed the browser check. In the seed 67 comparison below, both models rendered after the base was given a larger context. The fine-tune gives a clearer view of how the central stair connects the two levels and keeps the ground-floor rooms visible.

| Inkling 2 Mini base · 256K | Epoch 5 · 64K |
| :---: | :---: |
| [![Base family home cutaway](examples/house-base.png)](examples/house-base.png) | [![Fine-tuned family home cutaway with the central staircase and labeled rooms](examples/house-epoch5.png)](examples/house-epoch5.png) |
| 184,685 tokens | **29,567 tokens · 84.0% fewer** |

Across five shots per model, the shortest epoch 5 run for this house used 24,404 tokens, **86.8% fewer** than the longest base run.

### Manhattan diorama

In the seed 65 pair, the fine-tune fits the whole island in view, with a readable street grid, Central Park, and the Brooklyn Bridge. Epoch 5 used fewer tokens on all five shots for this prompt.

| Inkling 2 Mini base | Epoch 5 |
| :---: | :---: |
| [![Base Manhattan diorama](examples/manhattan-base.png)](examples/manhattan-base.png) | [![Fine-tuned Manhattan diorama with Central Park and the Brooklyn Bridge](examples/manhattan-epoch5.png)](examples/manhattan-epoch5.png) |
| 44,246 tokens · 64K | **29,427 tokens · 64K** |

### Mars cargo landing zone

In seed 66, the fine-tune brings the cargo decks, cranes, and rover route together around the central habitat.

| Inkling 2 Mini base | Epoch 5 |
| :---: | :---: |
| [![Base Mars cargo landing zone](examples/mars-base.png)](examples/mars-base.png) | [![Fine-tuned Mars landing zone with cranes and cargo decks](examples/mars-epoch5.png)](examples/mars-epoch5.png) |
| 61,727 tokens · 64K | **34,264 tokens · 64K** |

### Mounted skeleton hall of terrestrial vertebrates — voxel study

In seed 67, the fine-tuned hall frames the mounts along a shared aisle and adds controls for inspecting each skeleton.

| Inkling 2 Mini base | Epoch 5 |
| :---: | :---: |
| [![Base voxel skeleton hall](examples/skeletons-base.png)](examples/skeletons-base.png) | [![Fine-tuned voxel skeleton hall with a viewing aisle and mount controls](examples/skeletons-epoch5.png)](examples/skeletons-epoch5.png) |
| 61,440 tokens · 64K | **32,162 tokens · 64K** |

### Riverside civic center with floodable terraces

In seed 64, the fine-tuned scene connects the civic center, stepped terraces, and river in one view, with labels and a water-level control.

| Inkling 2 Mini base | Epoch 5 |
| :---: | :---: |
| [![Base riverside civic center and flood level control](examples/riverside-base.png)](examples/riverside-base.png) | [![Fine-tuned riverside civic center with labeled terraces and flood simulation](examples/riverside-epoch5.png)](examples/riverside-epoch5.png) |
| 59,434 tokens · 64K | **31,987 tokens · 64K** |

### Voxel sakura bonsai

| Inkling 2 Mini base | Inkling 2 Mini-3D-Coder |
| :---: | :---: |
| [![Base voxel sakura bonsai](examples/sakura-base.png)](examples/sakura-base.png) | [![3D-Coder voxel sakura bonsai with blossoms across the canopy](examples/sakura-3d-coder.png)](examples/sakura-3d-coder.png) |
| 38,287 tokens · 64K | **19,576 tokens · 64K** |

### Floating village market

The seed 64 fine-tune makes the bridges between the market pontoons easier to follow. The base finished this scene when I raised the context from 64K to 128K.

| Inkling 2 Mini base · 128K | Epoch 5 · 64K |
| :---: | :---: |
| [![Base floating village market](examples/floating-market-base.png)](examples/floating-market-base.png) | [![Fine-tuned floating market with connecting rope bridges](examples/floating-market-epoch5.png)](examples/floating-market-epoch5.png) |
| 74,717 tokens | **37,906 tokens** |

### Victorian conservatory

The seed 67 retry brings the fountain and tropical plants into view through the glass. The first epoch 5 run failed the browser check, so I retried at temperature 0.8.

| Inkling 2 Mini base · temperature 0.9 | Epoch 5 retry · temperature 0.8 |
| :---: | :---: |
| [![Base Victorian conservatory at dusk](examples/conservatory-base.png)](examples/conservatory-base.png) | [![Fine-tuned Victorian conservatory with a visible fountain and plants](examples/conservatory-epoch5.png)](examples/conservatory-epoch5.png) |
| 40,672 tokens · 64K | **23,986 tokens · 64K** |

### Cello rehearsal room

With seed 67, the fine-tune makes the cello the focal point while keeping the music stand, rug, and late-afternoon light in frame.

| Inkling 2 Mini base | Epoch 5 |
| :---: | :---: |
| [![Base cello rehearsal room](examples/cello-base.png)](examples/cello-base.png) | [![Fine-tuned rehearsal room with the cello in the foreground](examples/cello-epoch5.png)](examples/cello-epoch5.png) |
| 59,058 tokens · 64K | **28,843 tokens · 64K** |

## Results so far

Across **75 matched prompt and seed pairs covering 19 scenes**, epoch 5 used **34.7% fewer generated tokens on average** at the same 64K context limit. The count includes both reasoning and the final answer. At that limit, time spent before the final answer starts can mean the difference between getting a scene and never reaching the closing HTML tag. That matters for local generation, where context and runtime are limited.

| Checkpoint | Mean token savings per scene at 64K | Complete HTML on the 70-run panel | Valid browser renders | Hits 64K limit |
| --- | ---: | ---: | ---: | ---: |
| Inkling 2 Mini base | — | 57/70 | 44/70 | 12/70 |
| Epoch 4 | 34.2% | 70/70 | 59/70 | 0/70 |
| Epoch 5 | **34.7%** | 70/70 | **56/70** | 0/70 |

The table includes the failures. I also reran the 12 capped base requests with larger contexts and otherwise matched settings. With those completed base counts, the average savings at epoch 5 was **35.8%**. The size of the improvement varies by scene, and a browser pass checks that the scene runs. Judging how well it follows the prompt still takes a look at the result.

<details>
<summary>Evaluation settings</summary>

The 70-run panel uses 10 held-out validation scenes and four external prompts, each with seeds 64–68 and temperature 1.0. Five additional external prompts use seed 67 and temperature 0.9. All original paired runs use reasoning effort 0.9, top-p 1.0, and the same 65,536-token context. The mean gives each scene equal weight after averaging its seed-level reductions, including cutoffs and browser failures. A successful render makes WebGL draw calls without page or console errors. These results come from the Tinker checkpoints. I'm continuing training through epoch 7 and will compare the last two checkpoints before choosing the release.

</details>

## Training data

The LoRA was trained on [Tinker](https://tinker.thinkingmachines.ai/) with rank 16 and 7,137 complete conversations. I used 3,889 from [ThreeJS 3D Scenes v1](https://huggingface.co/datasets/ccore/ThreeJS-3D-Scenes/tree/57b77a19d38eee8316c8b1f9e71c772046d9f48c) and 3,248 from [v2](https://huggingface.co/datasets/ccore/ThreeJS-3D-Scenes-v2/tree/370b2cf95727666a3ac570f7fdb3f63f4552d382). Each included conversation fits the full system prompt, user request, reasoning, and final scene code into 64K. The intended output is one HTML file using the Three.js r160 core module and its own camera controls.

## Weights and downloads

This preview ships as **Q4_K_M, Q8_0, and F16 GGUFs** from epoch 5 for local text-to-scene generation. All three passed a short CPU generation check. Training is still in progress. I plan to release the **merged Safetensors** and the **standalone LoRA adapter** on **November 29**, after training and export checks are complete.

I may update the GGUF files after comparing the remaining checkpoints.

This is an independent CCORE fine-tune of Thinking Machines Lab’s Inkling 2 Mini. The weights are derived from the base under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0), with a LoRA merge and GGUF conversions for this release. The training datasets are available under MIT.

### Optional image projector

[mmproj-Inkling-2-Mini-BF16.gguf](https://huggingface.co/ccore/Inkling-2-Mini-3D-Coder/blob/main/mmproj-Inkling-2-Mini-BF16.gguf) (642 MB) is the original Inkling 2 Mini BF16 vision projector exported by [ggml-org/Inkling-2-Mini-GGUF](https://huggingface.co/ggml-org/Inkling-2-Mini-GGUF/blob/0bdc580634ceac4c4d921f452777bf44228de9af/mmproj-Inkling-2-Mini-BF16.gguf). It is a separate file for optional image input. The 3D fine-tune used text prompts. Basic image input was verified on CPU with the epoch-5 Q4_K_M GGUF in llama.cpp b12720.

```sh
llama-server -m gguf/Inkling-2-Mini-3D-Coder-Q4_K_M.gguf --mmproj mmproj-Inkling-2-Mini-BF16.gguf --jinja
```