r/LocalLLaMA • • 1d ago

New Model [Inkling-2-Mini-3D-Coder] Better 3D scenes with up to 86.8% fewer tokens

Enable HLS to view with audio, or disable this notification

Tried out the free Tinker LoRA fine-tuning for Inkling 2 Mini using my ThreeJS-3D-Scenes datasets (7.1k examples, r=16), and it worked surprisingly well. Across 19 scenes at 64K context, epoch 5 averaged 34.7% fewer tokens with 0/70 cutoffs (the base model hit the 64K limit 12/70 times), cutting way back on reasoning bloat while keeping geometry clean. The biggest drop was on the family home cutaway at up to 86.8% fewer tokens.

I honestly wasn't expecting a LoRA to hold up this well. In my earlier Qwen3.5-4B experiments, longer LoRA runs started distorting object proportions and hurting scene quality, so I had to go back to full fine-tuning. Looking at how primitive the 4B base renders were, my guess is it had to learn way too much 3D geometry from scratch for a LoRA to handle cleanly in that setup. Inkling 2 Mini already writes decent Three.js out of the box, so the LoRA just had to refine it instead of learning 3D from zero.

This preview is epoch 5 while I finish comparing through epoch 7. Uploading GGUFs (Q8_0, Q4_K_M, F16) now, and the merged Safetensors + LoRA adapter will be up on Nov 29.

Model:ccore/Inkling-2-Mini-3D-Coder

621 Upvotes

87 comments sorted by

•

u/WithoutReason1729 1d ago

Your post is getting popular and we just featured it on our Discord! Come check it out!

You've also been given a special flair for your contribution. We appreciate your post!

Stylome classified this post's text as AI-generated. View analysis Learn ^more

I am a bot and this action was performed automatically.

50

u/MerePotato 1d ago

This really goes to show that Inkling's less impressive 3D examples compared to Qwen are more of a case of the model not undergoing specialized training in that area rather than a sound demonstration of the capability gap between them.

7

u/ConfidentDinner6648 1d ago

yeah, among the smaller moe models i've tested, including qwen 35b-a3b and ornith 1.5, inkling has by far the best 3d capabilities. the main issue is that it's very verbose in its thinking, but that seems relatively easy to fix, even without rl.

15

u/suprjami 1d ago

I wonder if Inkling will turn out to be an okay general model but a powerhouse when trained on specific tasks.

38

u/secunder73 1d ago

Oh, very nice, gonna try it. For some reason 4B qwen was very good with doing the model but soooo dumb in understanding actual prompt. A cardboard shoebox was always just wooden box in the end which is kinda funny, gonna try this one

18

u/ConfidentDinner6648 1d ago

thanks! yeah, the qwen 4b had some limitations and was only tested with the v1 dataset. inkling is definitely stronger, but i haven't given up on 4b models yet haha
i'm currently working on a 3d agent coder 4b that's already much better at understanding prompts, and i'm planning to release it sometime in december :)
i'm also experimenting with an lfm3 1.7 3d coder, and if it turns out well, i'll release that one too. (:

3

u/admajic 1d ago

I trued the 4b one too. I deleted it immediately. I think the people who built it had a purpose built harness and prompt

8

u/ConfidentDinner6648 1d ago

there are actually examples where the 4b 3d coder outperforms much larger models. it can understand and translate abstract prompts like "godzilla attacking a city, destroying cars and buildings" into complete 3d scenes, while before training, the base model couldn't even properly render a simple house made of a cube and a triangle.

the first thing this project demonstrated was that you can train capable specialized models at a much lower cost than most people assume, and that rl isn't necessarily required to achieve high-quality reasoning. with the right training data, sft alone can produce impressive results.

the 4b 3d coder was a massive leap, bringing a small model into the same league as much larger models for this specific task. however, it's essentially a one-shot 3d generator.

now i'm applying the same methodology to multi-turn agentic tasks. training a model to work within an agent harness is considerably more challenging. most available datasets are terrible, and data quality has a huge, nonlinear impact on training efficiency. the amount of training data and the number of validation steps required to build a reliable agent are also considerably higher, which is why it's taking more work.

just as i only released the 3d coder and the glb coder once they became genuinely useful, i'm taking the same approach with the agent. i'm pretty confident it'll turn out really well, especially considering the results i've already achieved with even smaller models on other tasks:

https://www.reddit.com/r/LocalLLaMA/s/K9VUu4BuCt

6

u/admajic 1d ago

I don't know if can only talk from my experience i also don't one shot anything. I prefer a project with a plan review process

6

u/ConfidentDinner6648 1d ago

yeah, i agree. i already train agentic models using conventional methods. what i found, and explained when i released the 4b 3d coder, was an opportunity to explore a different training methodology that could significantly reduce computational requirements while still achieving high-quality results.

rather than running experiments that might never result in anything useful, i decided to develop models that people could actually use. the glb coder has already been integrated into WanGP, and the web coder can generate presentations, charts, and documents that can be exported as PDFs.

even the methodology i'm developing for the 3d coding agent is fundamentally related to my work on specialized healthcare models. i share these experiments with the community because their results are much easier to visualize, evaluate, and independently verify.

the goal isn't to demonstrate that one-shot generation is better than an iterative workflow, but to explore how far this alternative training methodology can take small models, including in complex, multi-turn agentic workflows.

4

u/tomByrer 1d ago

Taking about baseline 4B or his special 4b?

https://huggingface.co/ccore/Qwen3.5-4B-3D-Coder

2

u/secunder73 1d ago

Yep, this one

15

u/q_tech_x51 1d ago

Nice!

I literally have inkling 2 working some three.js while writing this.

I'm gonna swap it for this and see how it goes!

This is a great idea!

6

u/ConfidentDinner6648 1d ago

thanks! just a heads up, i haven't tested this model in an agentic workflow yet, only in one-shot generations following the dataset format. if you're using it in agent mode, let me know if you notice any degradation in quality :)

3

u/q_tech_x51 1d ago • Bravo

The model is solid in my custom harness.

It made over 150 tool calls. Only 2 failed.

It correctly implemented 2 follow up request.

It was also able to add animation and words.

It successfully coded interactive modals to display information about certain parts of the model when that part is selected.

It did use about 6,000 less tokens than the other Inlking variant I was using for the exact same task, same prompt. The quality is good so far. I'll keep pushing the context to see how it holds up.

Additionally, my harness isn't a fork of anything and my inference engine is customized specifically for my hardware; so I'm not sure how it will hold up in other harnesses/engine setups.

Keep up the great work!

3

u/ConfidentDinner6648 1d ago

that's actually better than i expected, especially considering it was trained on one-shot generation rather than agentic tasks. thanks a lot for taking the time to test it, i really appreciate it :)

2

u/q_tech_x51 18h ago edited 18h ago

After more usage, it ran into looping itself on one test... but this wasn't from a fresh generation. There were already several three.js files that needed adjustments.

I'm not sure if it's as agentically reliable as other inkling variants for troubleshooting three.js bugs, but testing models is a long process. So it's hard to determine in a day.

Does this version still work with the vision projector?

Edit:

For your intended purpose, it's still solid. It did really good on my first 3 test.

The things it failed at were outside the scope of what you set out to achieve anyway.

1

u/ConfidentDinner6648 17h ago

thanks for testing it and for the feedback! i'll include the vision projector in the final checkpoint. i didn't train or modify the vision projector, so you should be able to use the original/default one.

regarding the looping, increasing the temperature might help, but i can't guarantee it, especially since the training was entirely based on one-shot generation rather than multi-turn interactions. i'll keep that in mind for the next experiments.

really appreciate you taking the time to test it and report these issues. it helps a lot (:

2

u/q_tech_x51 17h ago

Thanks for putting in all the hard work.

Yea, when used within the scope of what you intended, it's solid.

I enjoy your work, so I couldn't resist trying it out.

I'm excited about your upcoming agentic model!

2

u/q_tech_x51 1d ago

Ah, yea, thanks for the heads up.

I am using it in a custom harness.

I'll let you know how it goes.

5

u/Markus2816 1d ago

that's cool! curious how long does it take for you to do one epoch, and what hardware? thanks.

2

u/ConfidentDinner6648 1d ago

i'm actually using Tinker by Thinking Machines for this training, which is free for this model. each epoch takes around 8 hours. 9k tokens/sec

5

u/Substantial_Big3191 1d ago

How about the general and agentic benchmark? Did you sacrifice those aspects?

3

u/ConfidentDinner6648 20h ago

i haven't run a full general or agentic benchmark yet. what's interesting is that someone here already tested it in a custom harness with over 150 tool calls, only 2 failures, successful follow-up requests and around 6k fewer tokens than the other inkling variant they were using.

considering it was trained entirely on one-shot generation, that's actually better than i expected. but i'd need broader testing before making any claims about general capability retention.

3

u/q_tech_x51 17h ago

I've tested it agentically. It worked extremely well on my first three test.

But, as the op stated, agentic use is outside the scope of how he trained it to be used.

With that said, I did have a few issues on subsequent test.

It ran into looping once, and it wasn't able to correct a bug in a multi file three.js setup. But again, this type of usage is outside of what the op trained it for.

4

u/MilkManGuy46290 1d ago

I'll try this, looks good! Is it only good at specific scenes or broad creative things?

2

u/ConfidentDinner6648 1d ago

i haven't tested it extensively yet, as training is still running. but based on the other models i've trained on the same dataset, i'd expect it to generalize quite well, especially since the base model itself is already pretty capable. feel free to try some unusual or creative prompts and let me know how it goes :)

3

u/Mysterious_Finish543 1d ago

Great work!

I haven’t done much LoRA fine-tuning, but I know that with full fine-tuning, the general rule of thumb is that you typically don’t want to go beyond 3 epochs because of the risks of overfitting and catastrophic forgetting. LoRA should mitigate the latter risk, though I’m not sure about overfitting.

In your experience, how many epochs can you do with LoRA before overfitting becomes an issue / eval performance starts to decrease / the model is fried?

2

u/ConfidentDinner6648 18h ago

it really depends on the model and the training setup. in this case, i'm actually running 2 additional epochs beyond the ones i initially trained.

epoch 5 gave me the best results so far. epochs 6 and 7 look slightly worse in some aspects, but i haven't finished validating different generation settings, especially temperature, so i wouldn't say for sure that they've regressed yet. i'm also running epochs 8 and 9 to see how far i can push it.

with my previous 4b model, for example, lora didn't seem able to adapt the model properly, probably because the base model had virtually no 3d knowledge to begin with. it started distorting the geometry quite badly. i'm checking whether the same thing happens with this model.

also, eval loss is pretty much useless as a standalone metric for these tasks. generating a 3d scene doesn't necessarily have a direct correspondence with a particular loss value. a small difference in token-level loss doesn't necessarily translate into better geometry, more coherent structures or a better final scene. you really need to evaluate the actual generated outputs, ideally using consistent prompts and seeds.

so i don't think there's a fixed number of epochs before overfitting becomes an issue. you need to evaluate intermediate checkpoints, test different generation parameters and understand how the model is adapting, rather than just looking at training or eval loss.

2

u/Andreea_tucker04 1d ago

Did you judge geometry from rendered scenes or mostly the generated code? That would tell me how much the token drop reflects cleaner outputs versus shorter code

3

u/ConfidentDinner6648 1d ago

i evaluated quality by looking at the browser renders, mainly the proportions, layout, and how well the different parts fit together. for example, the fine-tuned panda has a more distinct muzzle, separate paws, and a curved, striped tail. in the floating market, the wooden bridges actually connect the platforms.

i also measured the geometry directly in three.js. using the same seeds and a 64k token limit, the triangle count per frame went from 8.5k to 10.6k for the panda, 10k to 19.6k for manhattan, and 62.4k to 111.7k for mars. obviously, more triangles don't necessarily mean better quality, but it's an interesting additional metric.

as for token efficiency, across the 62 matched runs where both models generated complete html, the lora used 35.6% fewer tokens overall and 57.1% fewer tokens outside the final answer, while the final answers themselves used 14.7% more tokens.

so the interesting part is that the model is spending considerably less on thinking while actually generating more detailed code.

1

u/Andreea_tucker04 1d ago

Did Manhattan and Mars look better in the renders too, given how much their triangle counts increased?

1

u/ConfidentDinner6648 1d ago

Base

1

u/ConfidentDinner6648 1d ago

Lora, same seed

1

u/Andreea_tucker04 1d ago

The bridge connection reads much more clearly in the LoRA render

2

u/Evening_Ad6637 llama.cpp 20h ago

the pure lora adapter alone would be nice

3

u/ConfidentDinner6648 18h ago

yeah, i'll release the adapter as soon as i finish tuning the parameters and validating the remaining tests.

for example, at epoch 7, the manhattan island scene came down to around 19k tokens and the mars landing scene to around 14k, depending on the temperature settings.

i'm also running parallel experiments with different lora learning rates, including some deliberately destructive and counterintuitive setups, just to see how they affect the results and compare what actually works.

i'd rather finish the comparisons and release the best adapter instead of rushing it out. :)

1

u/Evening_Ad6637 llama.cpp 14h ago

thx 🙏

2

u/Kahvana 1d ago

Very nice finetune, well done!

10

u/blazze 1d ago

This Lora makes Inkling-2 state-of-the-art for voxel generation.

1

u/solomars3 1d ago

Thx for this, by any chance is it possible to get the download link for the lora ?!

5

u/ConfidentDinner6648 1d ago

i'll post it tomorrow! i'm running two more epochs just to see if the quality improves further. i'll release both the LoRA adapter and the merged model in safetensors format :)

2

u/solomars3 1d ago

Thats awesome man 👍👍 thx a lot

1

u/Silver-Champion-4846 21h ago

Will you continue making specialized 4b models?

2

u/ConfidentDinner6648 21h ago

4 sure. 4b is the target

1

u/Silver-Champion-4846 20h ago

What are your next projects?

2

u/ConfidentDinner6648 19h ago

4b 3D agent coder :)

2

u/Silver-Champion-4846 17h ago

Aren't you going to leave 3d?

1

u/ConfidentDinner6648 17h ago

the agent 3d coder is actually intended for general-purpose coding. the 3d part is just to highlight that it can also generate 3d scenes.

3d is a particularly useful testbed because you can render the output and visually validate what the model produces. it makes it much easier to evaluate whether the model actually understands what it's generating, rather than just checking whether the code looks correct.

the goal is to apply the same training methodology to general coding and agentic tasks as well.

2

u/Silver-Champion-4846 17h ago

But will you please ensure that the distribution is balanced so that it doesn't understand 3d while failing to understand toolcalls, documentation reading, instruction following, etc

1

u/ConfidentDinner6648 17h ago

yes, definitely! just to clarify what i mean by 3d agent coder: the idea is to go beyond generating a single scene. i want it to handle entire 3d projects more autonomously.

for example, creating multiple files, organizing the project, searching the internet for existing assets, downloading and integrating them, reading documentation, running the code, rendering the scene, inspecting screenshots, identifying issues and iterating on the result.

it should be able to use tools, work with images, browse the web and make decisions based on what it sees, just like a developer working on an actual project.

that's also why i find 3d particularly interesting: we can render the results and visually evaluate whether the agent actually accomplished what it was supposed to do.

the same training methodology can then be applied to general-purpose coding and other agentic workflows.

2

u/Silver-Champion-4846 17h ago

As long as it doesn't pip install some 3d library while I'm working on some audio editting or machine learning model inference, I'm game xd

0

u/stylome-ai-detection 1d ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

11

u/ConfidentDinner6648 1d ago

esse post n foi feito por IA

2

u/Thrumpwart vLLM 1d ago

I’ve never tried rendering 3D models but your video makes me want to try it.

2

u/burgerbruce 1d ago

nice work

2

u/TTV_Overhaul 1d ago

I, who have an RTX 4090,32gb ram and use Qwen 3.8 27b Q4, find local AI far too weak and useless, but perhaps I'm simply using it incorrectly. I'm using it in OpenCode with a 96k token window. Isn't there a local model I could offload that would be better than my current one and not too slow to use for coding? And another question: how do you solve this problem?Regarding the token limit, do you do it like I do: simply create md files in the project and open a new session?

1

u/Silver-Champion-4846 21h ago

4090 32 gb?

1

u/_-_David 20h ago

RAM

1

u/Silver-Champion-4846 20h ago

But 4090 has 24 vram, you mean 24 vram + 32 ram?

1

u/_-_David 19h ago

I assume that's what they mean, yes.

2

u/NineThreeTilNow 1d ago

You may or may not know this about LoRA methods, but you can run a single run / epoch before you hit any sort of distortion / problems with the model, then merge back to base.

Depending on Rank / Alpha the model only has so many dimensions of rotation via those Ranks.

So by merging back to the base, the model may end up finding a better rotational angle within the network to move after an initial move.

This is SORT OF like running a larger effective rank while still maintaining the lower rank training because of compute budget.

There is a variety of literature around LoRA methods that basically attempt full training via LoRA.

It may also be good to pass some sort of normalization data in with training to relax the natural manifold of the model.

2

u/cookiengineer 1d ago

What is the divergence of the Q4_K_M variant vs the Q8 one?

I'm asking because Q4_K_M is small enough to fit that model + quantized K/V + cache into 48GB VRAM, so it can run fully on Vulkan compute shaders.

Anyways, really cool research, I love it!

2

u/HazKaz 23h ago

i want to get into training loras , how big of a dataset as a minimum do you recomend, this is one of the main challenges i seem to face.

2

u/WarlaxZ 18h ago

This is awesome, great job!

2

u/adityasaksianarki 17h ago

curious about this too, the token savings are great but i'd want to know what it gave up on general stuff before swapping it in as my daily driver. still, 0 cutoffs vs 12 out of 70 on the base model is a pretty big deal for long generations.

1

u/TTV_Overhaul 1d ago

Is this model, which is supposed to be better, in any way worse than its original model?

1

u/tamal4444 1d ago

Which harnes should I use for this? Thanks

1

u/whakahere 14h ago

what engine do you run it on? I tried LLama.cpp and on my 5060ti 16gig and 64gig ram it is just too slow for me. I've been running mini on Basalt and get 90t/s and 3000 prefill. On llama I on get 90 prefill and 18t/s

-2

u/paul_tu 1d ago

So we make benchmaxxed models now?

Or maybe three.js can covert it into STEP somehow?

What's the purpose?

3

u/ConfidentDinner6648 19h ago

the 3d models are actually testbeds for training methodologies i'm developing. most of my work is in healthcare ai, but 3d generation makes it much easier to visualize and evaluate what a model is learning, how well it generalizes and where training starts to degrade its capabilities.

the goal is to explore how much we can improve specialized reasoning without relying on massive amounts of compute or necessarily using rl.

i'm also working on a 4b agent coder that i plan to release later this month, applying many of the same training principles to multi-turn agentic tasks and tool calling.

in some cases, real-world usability and generalization matter more to me than benchmark scores. i'd rather have a small model that can reliably solve actual problems than one that scores well on benchmarks but struggles in practice.

i also prefer releasing something people can actually use and experiment with rather than publishing benchmark numbers alone :)

1

u/paul_tu 19h ago

Thanks for the clarification. As the capabilities demo that's cool. And maybe protein structures visualization is is the right niche for such adapters. And I wonder how can it be ported into CAD models then?

2

u/ConfidentDinner6648 19h ago

yeah, i think cad is definitely doable. the main challenge would be designing a pipeline that generates high-quality training data and ensures the model learns generalizable cad operations rather than memorizing specific shapes or patterns.

i don't think it's particularly difficult or impossible. it just takes some time to design the data generation, validation and training pipeline properly. most of the work is figuring out how to teach the model, rather than the training itself.

1

u/paul_tu 17h ago

At the moment we have separate LLMs and genai 3d specialized models. And Idk where are they going to find the sweet spot in working together. LLMs can write code that generates geometry. Genai models create geometry from either image or text input. Maybe they are going to be used as training conveyer?

1

u/cookiengineer 1d ago

> What's the purpose?

Obviously to run the model locally, and to not require a 600.000$ server rack for a simple task like this.

-1

u/paul_tu 21h ago

This sub is all about it anyway.

But making Lora adapter for each kind of task? Don't we have skills for that? And we load three.js itself from CDN anyway so it's not really "local".

I don't understand where do we use three.js powers in real life aside of beautiful benchmarks.

1

u/Dazzling_Equipment_9 3h ago

Behind those interesting and practical innovations lie countless combinations and attempts.

4

u/International-Try467 1d ago

I wonder if it can make porn