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
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
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
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.
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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 59,434 tokens · 64K | 31,987 tokens · 64K |
Voxel sakura bonsai
| Inkling 2 Mini base | Inkling 2 Mini-3D-Coder |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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 |
|---|---|
![]() | ![]() |
| 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.
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.
Training data
The LoRA was trained on Tinker with rank 16 and 7,137 complete conversations. I used 3,889 from ThreeJS 3D Scenes v1 and 3,248 from v2. 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. The merged BF16 Safetensors and standalone LoRA adapter are available for the same checkpoint as the published GGUFs. The merged model can be loaded with Transformers 5.24.1 using AutoModelForMultimodalLM. The adapter uses Tinker’s original Inkling tensor layout.
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, 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 (642 MB) is the original Inkling 2 Mini BF16 vision projector exported by ggml-org/Inkling-2-Mini-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.
llama-server -m gguf/Inkling-2-Mini-3D-Coder-Q4_K_M.gguf --mmproj mmproj-Inkling-2-Mini-BF16.gguf --jinja



















