Qwen3.5-4B-3D-Coder: generating Three.js scenes with a 4B model

It generates scenes, but the code still needs review: this is a 4B experiment, not an official release.

Qwen3.5-4B-3D-Coder is an independent fine-tune of Qwen3.5-4B aimed at Three.js scene generation. It is Apache-2.0 with 9.08 GB of weights, and the Q4_K_M and Q8_0 GGUFs accept a reference image when paired with a 644 MiB vision projector.

Requirements and key details
  • It is an independent CCORE fine-tune, not an official Qwen release, and an early preview.
  • Q4_K_M and Q8_0 GGUFs accept images with a 644 MiB vision projector.
  • The weights total 9.08 GB under Apache-2.0.

What this model produces

It does not export a 3D file. It writes Three.js code that renders a scene in the browser, so the result is source you can publish as is.

The card describes an experiment into how well a small 4B model handles 3D scenes, so treat it as a work in progress rather than a finished product.

A person at a laptop is surrounded by connected document, spreadsheet, folder, image, settings, and robot panels
A 4B model writes Three.js scene code that runs in the browser.

Why provenance comes first

This is not an official Qwen release. The card states plainly that it is not, and that an independent developer shared training progress.

So even with Qwen in the name, support and update plans follow the card author. Check the repository's current state before using it at work.

Runtime setup

The GGUF1 builds run on llama.cpp: Q4_K_M uses less memory and Q8_0 slightly better quality. At 4B neither is heavy.

For image reference, download the vision projector: about 644 MiB, shared by both quantizations. Without mmproj the model takes text only.

Running the GGUF
# 텍스트만 쓸 때
llama-cli -m Qwen3.5-4B-3D-Coder-Q4_K_M.gguf \
  --temp 0.3 -p "격자 위에 놓인 나무 의자 장면을 Three.js로 만들어 줘"

# 참조 이미지까지 쓸 때 (mmproj 동봉)
llama-cli -m Qwen3.5-4B-3D-Coder-Q8_0.gguf \
  --mmproj mmproj-Qwen3.5-4B-BF16.gguf -p "이 사진과 같은 구도로 만들어 줘"
Open the generated code in a browser to confirm the scene actually runs.
A small computer running a search system beside document stacks
Confirm first that it is an independent preview, not official Qwen.

How to review the output

Check the console first: Three.js code from a 4B model can halt on typos or non-existent APIs, and a black screen usually traces back to that.

Then check lighting and camera: a dark scene or an off-screen object means the composition diverged. Finally confirm resource limits.

An RTX 3090 in a case, colored blocks moving along a conveyor to shelves, and cards printed with network diagrams on the work surface
Review generated code starting from console errors.

Terminology notes

  1. GGUF — A file format for model data, widely used by llama.cpp-based tools.

    Back to the text

Frequently asked questions

What should you check first in this article?
Qwen3.5-4B-3D-Coder is an independent fine-tune of Qwen3.5-4B aimed at Three.js scene generation. It is Apache-2.0 with 9.08 GB of weights, and the Q4_K_M and Q8_0 GGUFs accept a reference image when paired with a 644 MiB vision projector.