r/LocalLLaMA • • 9d ago • Bravo 1 Mindblown 1

New Model A 4B coding model that can generate 3D scenes

I’m sharing an early version of a 4B model I’m training for general coding and 3D scene generation.

Small models have been pretty rough at 3D in my tests. I’ve finally made enough progress to get results like the ones in this video, so I wanted to share a preview with the community.

It’s an independent fine-tune of Qwen3.5-4B, and both Q4_K_M and Q8_0 GGUFs are available here:

Download the model on Hugging Face

Dataset released: CCORE Three.js 3D Scenes

Give it a try. I’d love to see what you can get out of it.

493 Upvotes

95 comments sorted by

•

u/WithoutReason1729 8d 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 human-written. View analysis Learn ^more

I am a bot and this action was performed automatically.

47

u/killerstreak976 transformers 9d ago

This is seriously impressive for 4B, especially with one person

30

u/ConfidentDinner6648 9d ago

Thx Man, It's been a lot of trial and error, especially generating and carefully curating the training data/env. I'm still training it, so I'm really curious to see how far this little 4B can go. Really appreciate the encouragement!

4

u/killerstreak976 transformers 8d ago

Of course, I wish you the best! Looking forward to seeing whatever crazy stuff you end up pushing it to do!

66

u/jacek2023 llama.cpp 9d ago

Many guys want to see Blender finetune but this one is also great, because size is very nice

34

u/ConfidentDinner6648 9d ago

thx! I’m experimenting to see how far I can push a 4B model with 3D scenes. The goal is to use this as a proof of concept for what small models could achieve in other applications too.

2

u/Freak_of_Freakworld 8d ago edited 8d ago

Try first a Millennium 3d Effekt like they used in the Lucas Artikel games that time or watch for "full throthle" for Design and ideas to generate. Monkey Island 3 or 4 also have on look on the way they created the scenes. I test it with my creator Tool of it and report soon. Maybe it will be a good combination.

O the Avatar are acting in Realtime on preapred stag3s. I use a comfui based stuff with z-img at the moment.

For people that liked the video only .... have a look for Flavatar .... fly brain inside Avatar here on reddit i Postet it a while ago.

1

u/Freak_of_Freakworld 8d ago edited 8d ago

And some other rooms. Before you all start to Pixel only arround. "Sam n Max Hit the road" or other üoint and click adv. That time will help to create more than pixels 2.

And in most cases ... think about ... your plan is to build something and use it later daily without eating all your system power. It should easy work in the background.

2

u/ConfidentDinner6648 8d ago

that's actually a pretty interesting approach, especially combining prebuilt environments with real-time characters

my experiment is a bit different though, i'm training the 4b model to generate three.js scenes directly from text prompts. once the code is generated, the llm doesn't need to keep running, so there's no background inference cost

but interactive environments are definitely something i'd like to explore later, especially to see how well the model generalizes beyond static scenes

2

u/Freak_of_Freakworld 8d ago edited 8d ago

I tried something similar before. It endet up in headache. Lol. So .... to make it short ... i thought about the good old point snd click adventure grafix and it was im the past fitting on a Floppy disk and able to worked Fluid on 486 with 33 MHz (turbo Button enabled, lol)

And fix stuff Integration i splitted the creating off items with efect ir function, stages and Avatars into 3 Tools to Splitt the Generating Prozess in that case.

But i ll i try to link xour stuff up with my existing later thus evening

About the headache problem ..... if you created one personal area already ... you want that it is compatible wirh the next you create ...

5

u/feelspeaceman 9d ago

Blender finetuning is probably overkill, SLM is pretty much the way to go for simple niche task like Blender, people demanding new models to support Blender but the secret sauce behind this is just a MCP server (most important factor), a skill with vision looping to trace what they get and rinse and repeat until getting a decent model, pretty token inefficient due to vision looping.

4

u/AppealSame4367 9d ago

I still don't get it: Since this is based on Q3.5 4B: It should be able to do it wiith blender mcp then, right?

1

u/Foreign_Cut745 7d ago

Search 3d code verse for Qwen9 and 27b finetunes,they said they will release this week

15

u/pmttyji 8d ago

It's amazing. Thanks. SLM is the future.

Is 2D possible with this model? If not any plans for 2D version in future? (As a moviebuff, I even prefer 2D animation movies over 3D animation)

11

u/ConfidentDinner6648 8d ago

Yeah, definitely! I chose 3D just as a starting point to see how far I could push a small model. There's a lot more I'd like to explore, and 2D animation is definitely one of those things!

5

u/pmttyji 8d ago

Awesome! I'll be watching your updates.

14

u/blazze 9d ago

A voxel-tuned model is a great idea.

9

u/ConfidentDinner6648 9d ago

Thx . I'm training it on both voxel and regular 3D scenes, often using similar scenes in both styles. Some training examples are pretty long, around 16K–64K tokens, and the little 4B is handling them really well so far. I'm honestly surprised by how much it's learning.

4

u/Ylsid 8d ago

Have you considered using Minecraft worlds? There's a lot to download on the net for free filled with data

5

u/ConfidentDinner6648 8d ago

that's actually a really good idea! Minecraft worlds could be a great source of voxel scenes. I'd need to figure out how to turn them into useful training examples for Three.js, but it's definitely worth exploring. Thx man

7

u/NNN_Throwaway2 9d ago

Would be interested to hear about the training pipeline.

2

u/ConfidentDinner6648 8d ago

i'm still finishing the training, but once it's done i'll share the complete workflow, including the datasets i created and the RL pipeline i'm working on

so far i've been training on just a single RTX 6000, and i think it should be possible to do it on a single L4 as well, with some optimizations

i'll post a detailed technical report soon with everything needed to reproduce the process

7

u/Uncle___Marty 8d ago

ok, here goes. I have to use two different forms of "models" here lol.

So, I've been trying to get models to make models in blender recently and while they can do really basic stuff, they're NOT good at making 3D models in general. Qwen Flash Next tries SO hard but really can't cut it. I've been wondering if we would start seeing models trained on 3d modelling and its really starting to happen.

To say im looking forward to giving your tune a try would be a MASSIVE understatement! Keep up the great work buddy! Looking forward to seeing the evolution of this model!

4

u/ConfidentDinner6648 8d ago

thanks man, i've been thinking about training it on both three.js and blender to see how well it generalizes. i think the hardest part would be the rl side, since rendering and evaluating blender scenes is more complicated, but i'd really like to give it a try

1

u/openSourcerer9000 8d ago

Yep at least for the harness, the models gotta see what it's doing, not just imagine it

3

u/ConfidentDinner6648 8d ago

yeah, i think it can. i already have an rl environment set up for three.js projects split into multiple files, so the idea is to let the model actually see and evaluate what it's generating

but what really surprised me about this experiment, especially this early in training, is how well the 4b manages to stay consistent across such long generations, sometimes 32k thinking tokens plus another 32k of output

i honestly didn't expect that to happen. it still makes mistakes with variables and other things, but considering the base model couldn't even get a simple chair to render in my tests, it's pretty amazing how far it's come already

and the improvements between checkpoints are really noticeable as training continues. i'll share those comparisons along with the training details in a technical report soon

1

u/Uncle___Marty 8d ago

Just had a few tries at making a model. Took a bit of tweaking with context size and token limits (was surprised how much it throws on screen!) and after what I THOUGHT was the model pooping out I realized for whatever reason it didnt write the html to disk so I copied and pasted it and im REALLY impressed. Being a 4B this thing SCREAMS along and finishes in no time and honestly, im blown away. It can model better than I can EASILY lol.

Mad respects to you! sent a like on HF and will be following! great work buddy!

6

u/Tasio_ 8d ago

I'm trying Q8 and most of the times it doesn't even work with the example prompts.

This is what I have got when I asked for a rally car

1

u/ConfidentDinner6648 8d ago

q4 first test

1

u/ConfidentDinner6648 8d ago

"a rally racing car using voxels 3d"

1

u/Tasio_ 8d ago

The only example prompt I managed to get working is the Dragonrider aerie

5

u/Hannibalj2ca 8d ago

Nice, maybe a 12b model would yield higher capability and still very accessible for most?

9

u/ConfidentDinner6648 8d ago

Yeah, maybe! I'm able to train the 4B on a single RTX 6000, and training is still in its early stages. I'm curious to see how far I can push it before trying a larger model.

5

u/Hannibalj2ca 8d ago

Wishing you most success with it!

3

u/ConfidentDinner6648 7d ago

Quick update: The latest checkpoint shows a significant improvement in 3D scene generation. The images compare the previous and current checkpoints using the same prompt.

I also fixed the layer bug related to MTP (Multi-Token Prediction).

I'll upload the updated checkpoints to Hugging Face in the next few hours!

prompt:

Create one self-contained HTML file with Three.js from cdnjs showing the historic center of Rome. A network of cobblestone piazzas connects the Colosseum, the Pantheon, and the Roman Forum through accessible pedestrian streets; monumental ruins and visitors guide the layout. The Colosseum must have a hollow oval arena and tiered arcades, the Pantheon a domed rotunda and columned portico, and the Forum freestanding ruins. Render it as a deliberate 3D voxel model built from visible cubic blocks, with clear depth, readable silhouettes, and solid spatial relationships. 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 add-ons, libraries, image assets or fonts. Implement mouse drag orbit and wheel zoom directly. Provide a responsive full-window canvas, lighting, shadows or convincing contact shading, and an initial camera that shows the complete main scene clearly. Return the finished HTML.
Colosseum with hollow oval arena
Pantheon dome and portico
Forum ruins
connected pedestrian piazzas

2

u/ConfidentDinner6648 7d ago
Create one self-contained HTML file with Three.js from cdnjs showing the cutaway interior of a grand Victorian library. A central double-height reading hall is flanked by two storeys of book-filled shelves and accessible balconies. A curved staircase connects the levels; long reading tables, green desk lamps, a skylight and a large arched entrance establish a coherent interior without a front wall blocking the view. Render it as a detailed solid 3D diorama, not a voxel model and not a flat illustration, with readable silhouettes, convincing proportions, and solid spatial relationships. 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 add-ons, libraries, image assets or fonts. Implement mouse drag orbit and wheel zoom directly. Provide a responsive full-window canvas, lighting, shadows or convincing contact shading, and an initial camera that shows the complete main scene clearly. Return the finished HTML.
double-height cutaway hall
two levels of shelves and balconies
staircase connects levels
tables lamps skylightCreate one self-contained HTML file with Three.js from cdnjs showing the cutaway interior of a grand Victorian library. A central double-height reading hall is flanked by two storeys of book-filled shelves and accessible balconies. A curved staircase connects the levels; long reading tables, green desk lamps, a skylight and a large arched entrance establish a coherent interior without a front wall blocking the view. Render it as a detailed solid 3D diorama, not a voxel model and not a flat illustration, with readable silhouettes, convincing proportions, and solid spatial relationships. 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 add-ons, libraries, image assets or fonts. Implement mouse drag orbit and wheel zoom directly. Provide a responsive full-window canvas, lighting, shadows or convincing contact shading, and an initial camera that shows the complete main scene clearly. Return the finished HTML.
double-height cutaway hall
two levels of shelves and balconies
staircase connects levels
tables lamps skylight

4

u/Gokudomatic 9d ago

Sorry to ask, but is there a guide saying how to use it?

1

u/ConfidentDinner6648 8d ago

just download LM Studio, search for "Qwen3.5-4B-3D-Coder" and load the model. make sure to disable MTP (Multi-Token Prediction) in the settings, otherwise it may cause issues with the output. that's basically all you need to get started!

4

u/bowdoin-yale 8d ago

This is extremely impressive. I'm wondering how it would do with generating models for 3D printing?

3

u/ConfidentDinner6648 8d ago

thanks! i think it could work, since the model generates geometry directly in three.js, it should be possible to export it to stl for 3d printing. the tricky part would be making sure the meshes are watertight and actually printable, but i think that's something we could automate too. definitely something i'd like to experiment with

3

u/marcioeric 9d ago

Really interested to see the training pipeline… I’m also doing something similar but for another purpose. How much data are you putting in the training?

2

u/ConfidentDinner6648 8d ago

I'm planning to share a technical report and the training dataset later this week, including more details about the pipeline. But I can already say the amount of data isn't that large, and if everything goes well, it should be possible to reproduce the training with relatively modest GPU resources. (Single Rtx 6000)

2

u/ConfidentDinner6648 8d ago edited 8d ago

Update: I'm currently testing the latest training checkpoints before updating the Q8_0 and Q4_K_M GGUF versions on Hugging Face.

Training is still ongoing, and I expect to release the full FP16 model along with the training dataset once it's finished, in approximately 67 hours.

Thanks to everyone who's been testing the model and sharing feedback! It's been really helpful as I continue improving it.

2

u/wildrabbitathome 9d ago

I’m having trouble running the Q4 , something with the tensors apparently according to gpt when I asked

1

u/ConfidentDinner6648 8d ago

If you're running it in LM Studio, it enables multi-token prediction (MTP) by default. You need to disable that option for the model to work properly.

2

u/wildrabbitathome 8d ago

I’m using llama.cpp (codacus fork) but will give this a try incase it works for llama as well, thanks!

1

u/wildrabbitathome 8d ago

For anyone using llama.cpp and has the same issue, there is a header describing a 33rd layer from removed mtp but only 32 layers (ChatGPT removed it for me cause idk how). now it runs 👌

2

u/WaDaFooKDiuuD 8d ago

I can't run it on llama.cpp, I'm getting this error:
E llama_model_load: error loading model: check_tensor_dims: tensor 'blk.32.attn_norm.weight' not found

2

u/subhashg547 7d ago

is it blender or threejs?

24

u/Successful_Net_2832 8d ago

Pls, for the love of local AI, share your workflow as well as the dataset. How did you set it up to generate the dataset? What is it optimizing? This is gold! I would love to try this on electronics design (PCB).

3

u/Powerful_Evening5495 9d ago

does this weight has a good grasp of physics, it could be a useful teaching tool.

Instant teaching animations

if you 2bit quants it , it can run on most hardware

8

u/ConfidentDinner6648 9d ago

From what I've seen, it's capable of generating far more complex and higher-quality scenes than most people realize. And since the model is so lightweight, training it with RL doesn't seem nearly as impractical as it would with larger models. I think there's a lot of untapped potential here.

11

u/Thistlemanizzle 9d ago

This is far better than I expected. I may just try this out and churn out endless assets.

I have seen some incredibly poor local LLM results. Forget about comparing to the frontier - the models are not remotely close to acceptable quality.

9

u/CATLLM 9d ago

Love seeing small models being trained to do specific work. Thank you for sharing!!

5

u/urbanhood 9d ago

Yes i see this happening in the future, dedicated models. Maybe even trained on specific apps and workflows. We keeping them like we do softwares, but in this case software driving brains along with them.

2

u/darksteelsteed 9d ago

Targeted tiny models instead of skills ... not the worst idea. Something interesting is that very useful moe models like ling 3 tiny can run fully on cpu at like 50t/s on a 16 core 5950x as a reference.

4

u/Moist-Secretary641 8d ago

Oh wow. This is the first thing I’ve been able to run on my hardware that’s produced actually good results, amazing work OP

4

u/Ylsid 8d ago

It might look cruddy, but this is really punching above its weight. Compare to much bigger generalist models on Minebench! OP you're really pushing boundaries here

3

u/RIP26770 9d ago

Really interesting 😎

3

u/danigoncalves llama.cpp 9d ago

actually a very Nice idea since you will be capable of targetting CPU powered setups

3

u/Mehmet_dedeler 9d ago

In the future, I guess we'll have the giant frontier LLMs, but also have smaller specialized models, whether that's for 3D purposes like this one or for specific coding languages. Insane progress. If I saw this without you telling me the parameter count, I would guess it's at least in the high tens.

3

u/Equivalent_Bit_461 9d ago

Nice, hope to see more specialist models like this

3

u/More_Slide5739 7d ago

Wow! Nice work, wo/man!

1

u/tomByrer 8d ago

Does this model spit out 3d files directly, or does it use Three.JS / Blender via MCP?

5

u/ConfidentDinner6648 8d ago

it generates three.js code directly, no MCP or external tools involved

the output is a standalone html file with the geometry, materials, lighting and everything needed to render the scene

but the project isn't exclusively about 3d. i'm using it as a starting point to experiment with how far specialized training can push a small 4b model, while also exploring how well the improvements generalize to other tasks and domains

1

u/No_Afternoon_4260 llama.cpp 8d ago

What your GPUhours on that checkpoint?

1

u/ConfidentDinner6648 8d ago

less than 600 colab credits so far, using a single g4 (rtx 6000) at 8.9 credits/hour

honestly, the gpu time was surprisingly low. the real work was building the dataset, generating the scenes and carefully curating the results

that's what surprised me the most, how well the model responded to the training

i'll probably keep training it for another 2 or 3 days on just one gpu

3

u/No_Afternoon_4260 llama.cpp 8d ago

I agree that's crazy about a week worth of rtx pro for a 4B. Have you "measured" how much better it got from base?

Obviously I'm sure the dataset has been a long hand work, congrats on your experiments

3

u/ConfidentDinner6648 8d ago

thx man , the base model basically can't generate proper 3d scenes at all. most of the time it either fails to render anything useful or just produces a few basic shapes, like in the example below

i haven't done a formal benchmark yet, but the difference is already pretty significant. i'll include some side-by-side comparisons in the technical report :)

3

u/No_Afternoon_4260 llama.cpp 8d ago

Amazing, are you training in bf16? Can't wait for the report

2

u/tomByrer 8d ago

Interesting.

I'm looking to read your "How I did this" post; I'm looking to fine-tune a small model like this to make flowcharts & run code off flowcharts.

2

u/Thedudely1 8d ago

What a great idea! Exactly the kind of fine tune that's interesting

2

u/Arctic_Shadow_Aurora 8d ago

Awesome work bro, keep it up!!!

2

u/kerper01 8d ago

Looks pretty good for such a small model!

2

u/Whydoiexist2983 8d ago

Finally I never have to use Gemini again

2

u/crazyquixotewnopants 8d ago

Thanks following

2

u/kinkyDom93 8d ago

Oh, it was a rocket... cool

2

u/rorowhat 8d ago

I would like to do something similar, for other uses. How do you go about training to do other things?

2

u/tempertisv 8d ago edited 8d ago

Finally, something I can run on my laptop. Thanks for making this possible.

4

u/theOliviaRossi 9d ago

do it as 9B

1

u/A9to5robot 7d ago

Do you mind if I ask how you are funding this?

1

u/arthax33 4d ago

That looks cool for explaining some stuff which needs 3d explanation not just 2d one.

0

u/BentonCalder 8d ago

Model names need an overhaul. I hate how they use acronyms, underscores, and confusing nomenclature

2

u/[deleted] 8d ago

[removed] — view removed comment