How to Run Inkling 2 Mini-3D-Coder Locally with llama.cpp
Download the Inkling 2 Mini-3D-Coder GGUF and generate standalone Three.js HTML scenes locally with llama.cpp, using the exact system prompt required.

What is Inkling 2 Mini-3D-Coder?
Inkling 2 Mini-3D-Coder is a fine-tune of Thinking Machines Lab’s Inkling 2 Mini, trained to generate interactive Three.js scenes from a single text prompt. The output is one self-contained HTML file: open it in a browser and you get a working 3D scene with camera controls, no build step and no external dependencies beyond the Three.js module it’s told to use. It ships as GGUF files, which means it runs locally through llama.cpp on a laptop or workstation GPU, or even CPU, instead of requiring a hosted inference API.
The project comes from CCORE, built on top of a LoRA trained via Thinking Machines Lab’s Tinker platform, then merged and converted to GGUF for local use.
TL;DR
- Inkling 2 Mini-3D-Coder turns a text description into a standalone HTML file containing a working Three.js scene, runnable offline once downloaded.
- The release ships as Q4_K_M, Q8_0, and F16 GGUF quantizations from the epoch 5 checkpoint, all verified to run a short CPU generation check.
- A specific system prompt is required: it restricts the model to the Three.js r160 core ES module and forbids addon imports, since camera controls must be written directly into the HTML.
- Across 75 matched prompt-and-seed comparisons spanning 19 scenes, the fine-tune used 34.7% fewer generated tokens on average than the base model at the same 64K context limit, and as much as 86.8% fewer on the hardest held-out scene.
- The base model hit its 64K token ceiling on 12 of 70 evaluation runs without finishing the HTML, while the fine-tuned epoch 5 checkpoint completed the HTML on all 70.
- A separate 642 MB BF16 image projector (mmproj) file exists for optional image input, but it’s unrelated to the 3D fine-tuning, which was text-only.
- Community-quantized variants, including NVFP4 and MXFP4_MOE formats targeting newer Nvidia Blackwell hardware, are also available from a secondary GGUF repository.
Workers wait
for instructions.
Contractors deliver
the outcome.
Describe what you need. Remy builds it, secures it and hands it over running.
How do you set up llama.cpp to run it?
You need a working llama.cpp build (the model card references testing against b12720, so a recent build is safest) and one of the GGUF files. Pick a quantization based on available memory: Q4_K_M is the smallest and fastest, Q8_0 trades size for fidelity, and F16 is the largest and closest to the original merged weights. All three passed a CPU generation check, so none require a GPU, though a GPU will speed things up considerably for longer scenes.
Download the GGUF, then launch it with llama-server or llama-cli pointed at the file. If you also want image input (unrelated to 3D generation but bundled as an option), add the separate mmproj-Inkling-2-Mini-BF16.gguf projector file with the --mmproj flag and the --jinja flag for chat templating:
llama-server -m gguf/Inkling-2-Mini-3D-Coder-Q4_K_M.gguf --mmproj mmproj-Inkling-2-Mini-BF16.gguf --jinja
For pure text-to-scene generation, you can drop the --mmproj flag entirely and just load the GGUF.
What system prompt does it need?
The model was trained and evaluated with one specific system prompt, and skipping it will likely produce broken or inconsistent output. The prompt restricts the model to the official Three.js r160 core module hosted on cdnjs, and explicitly bans addon or legacy examples/js imports:
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.
This matters because Three.js addons (like OrbitControls) are often imported from separate example paths that may not resolve correctly in a sandboxed or offline HTML file. Forcing the model to write its own camera controls inline keeps the output as a single, portable file with no broken import paths.
Put your scene description in the user message after this system prompt, generate, then save the model’s output as index.html and open it directly in a browser.
How much better is it than the base model?
The core comparison in the model’s own evaluation is token efficiency and completion rate, not just visual polish. Across 75 matched prompt and seed pairs covering 19 scenes, the epoch 5 checkpoint used 34.7% fewer generated tokens on average than the base Inkling 2 Mini, measured at the same 64K context limit and counting both the reasoning trace and the final HTML output.
That efficiency gap shows up most clearly in failure rates. On a 70-run evaluation panel, the base model hit the 64K context ceiling on 12 runs, meaning it ran out of budget before finishing the closing HTML tag. It produced complete HTML on 57 of 70 runs and passed a browser render check on 44. The epoch 5 fine-tune completed HTML on all 70 runs and passed the browser check on 56. When the 12 capped base runs were rerun with larger context windows so they could actually finish, the fine-tune’s average savings rose to 35.8%, since the uncapped base comparisons revealed just how many tokens those scenes actually needed.
Build a purchaseapproval app for2,000 storemanagers
One prompt. Role-based access, audit trail and SSO come built in.
Individual scene comparisons back this up. A family home cutaway scene took the base model 184,685 tokens at a 256K context just to complete, while the fine-tune finished the same scene in 29,567 tokens at 64K, an 84% reduction. A voxel sakura bonsai scene dropped from 38,287 tokens to 19,576. These aren’t just smaller files: shorter generations mean less time spent reasoning before the model commits to code, which directly affects whether a local run finishes before hitting context or time limits.
Is it worth running locally?
For anyone experimenting with local text-to-3D generation, the practical case is straightforward: context and generation time are the real constraints on consumer hardware, and this fine-tune directly targets that bottleneck. A model that reliably finishes within a 64K context window is far more usable on a single GPU than one that needs 128K or 256K to complete the same scene.
The tradeoff is that this is explicitly an early preview. The developer notes they’re continuing training through epoch 7 and comparing checkpoints before a final release, so the published Q4_K_M, Q8_0, and F16 GGUFs reflect epoch 5 specifically and may be superseded. Browser-render pass rates (56 of 70 for epoch 5) also show it’s not perfect: some generated scenes will still fail to render cleanly, and judging whether a scene actually matches the prompt still requires a human look. If you need guaranteed output quality for production use, budget time for retries. For prototyping, exploration, or just generating quick 3D visualizations from a laptop, the token savings make it meaningfully more practical than running the unmodified base model.
Frequently Asked Questions
What quantizations are available for Inkling 2 Mini-3D-Coder?
The official release includes Q4_K_M, Q8_0, and F16 GGUF files from the epoch 5 checkpoint. A separate community repository also lists Q3_K_L, Q3_K_M, Q5_K_M, Q5_K_S, and specialized formats like NVFP4 and MXFP4_MOE aimed at newer Nvidia Blackwell GPUs.
Do I need the image projector file to generate 3D scenes?
No. The mmproj BF16 projector file enables optional image input, but the 3D scene fine-tuning was done entirely with text prompts. You can run text-to-scene generation without downloading it.
Why does the system prompt matter so much?
The model was trained specifically to use the Three.js r160 core ES module and to write camera controls directly into the HTML rather than importing addon modules. Using a different prompt risks broken import paths or inconsistent output, since that’s not the pattern it learned during training.
How was this model trained?
It’s a rank-16 LoRA trained on Tinker using 7,137 complete conversations drawn from two Three.js scene datasets (ThreeJS-3D-Scenes v1 and v2), each formatted to fit a system prompt, user request, reasoning, and final HTML code within a 64K token window.
Can I use the merged weights instead of GGUF?
Yes. A merged BF16 Safetensors version is available and loadable with Transformers 5.24.1 using AutoModelForMultimodalLM, along with a standalone LoRA adapter in Tinker’s original tensor layout, for anyone who wants to run it outside llama.cpp.




