WADA-DEV(7) $ /en/blog/ollama-llama-mesh-3d/

NAME

ollama-llama-mesh-3d — I Tried a 3D Generation Model on Ollama, and Neither the Car nor the Chair Came Out as One

SYNOPSIS

I had LLaMA-Mesh, an 8B 3D generation model that runs on Ollama, make a car, a chair, a mug and a house. The OBJ files were valid, but none of the four shapes was usable. RTX 5090, Q4_K_M, 13 to 28 seconds each.

DESCRIPTION

I had LLaMA-Mesh, a 3D generation model that runs on Ollama, make a car, a chair, a coffee mug and a house. This is what came out.

Four meshes generated by LLaMA-Mesh. From left: car, chair, mug, house. The car is a spiky lump with one thin rod sticking out. The chair's back and legs float apart. The mug is a cylinder with no handle. The house is a pile of boxes with no roof

The moment I saw it, I laughed.

Setup: RTX 5090, Ollama 0.35.0, model hf.co/bartowski/LLaMA-Mesh-GGUF:Q4_K_M (4.9 GB). Tried in November 2026.

I expected at least a case

I have wanted a 3D printer for a long time and still don’t own one. Along those lines I was playing with a 3D CAD tool, and went looking for a model that could generate 3D locally. LLaMA-Mesh was about the only one that runs on Ollama as is.

LLaMA-Mesh is NVIDIA research: Llama 3.1 8B Instruct, trained to write a mesh’s vertices and faces as plain text. It prints line after line like v 9 25 49, and that is already an OBJ file.

It sounded fun. Surely it could do a case, I thought.

At first it only said “safe”

After pulling it and asking normally, all four answers were a single word, “safe” or “unsafe”. Ollama had given this GGUF the chat template for Llama Guard, a safety classifier.

With raw: true on /api/generate and the Llama 3 chat format built by hand, it started writing meshes.

prompt = ("<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\n"
"Create a 3D model of a simple toy car.<|eot_id|>"
"<|start_header_id|>assistant<|end_header_id|>\n\n")
body = {"model": "hf.co/bartowski/LLaMA-Mesh-GGUF:Q4_K_M", "prompt": prompt,
"raw": True, "stream": False,
"options": {"temperature": 0.7, "num_predict": 8192, "num_ctx": 10240}}

I had Claude Code find that cause and run the four generations.

None of the four came out as a shape

PromptTimeOutput tokensVerticesFaces
Car12.9 s2,996135238
Chair21.7 s4,868207400
Mug27.6 s6,092233527
House13.9 s3,180152244

It ran at about 230 tokens a second, and all four finished without being cut off. The OBJ files are valid too: every face points at an existing vertex, and they load as is. The coordinates were integers from 0 to 63 only.

The shapes were the problem. The car is a lump of something with one thin rod sticking out. The chair’s back and legs float apart and there is no clear seat. The house is stacked boxes with no roof. Only the mug looks like a cylinder, and its handle is a fragment.

All four were like this.

The same car, made in CAD

The same day, I had Claude Code write a CAD script for a car. The tool was SolidCraft, an open-source CAD written in Rust, whose CLI runs the same operations as the UI from a JSON list of commands. Sketch the side profile, extrude it, cut out the windows and wheel arches, place four wheels: 19 commands.

solidcraft-cli run car.json --out car.stl --out car.step --save car.sc
solidcraft-cli render car.sc --out car.png

A red toy car made in SolidCraft: a boxy body with windows cut out and four black wheels

This one looks like a car. But the script was written by Claude, not by an 8B local model, so this says nothing about which approach is better.

So this is what 8B gets you

My take: at 8B, this is still about as far as it goes. I plan to try other 3D generation models too.

SEE ALSO

AUTHOR

Kohei Wada, software engineer. I build things to try out ideas and write up the results here. wada-dev · about

sponsor: If this helped, you can support me on GitHub Sponsors

COMMENTS