Downloads · 30 days
9
19% of all-time downloads
Ashwin999/qwen3-4b-html-spatial
qwen3-4b-html-spatial is a text generation model from Ashwin999. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a fine-tuned version of Qwen3-4B for generating 3D HTML visualizations using Three.js.
Downloads · 30 days
9
19% of all-time downloads
All-time downloads
47
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of Qwen3-4B for generating 3D HTML visualizations using Three.js.
Generate complete HTML (CSS + JS) for 3D scenes using Three.js r128 from natural language prompts.
You are an expert in generating 3D HTML visualizations using Three.js. Given a user prompt describing a 3D scene or spatial concept, generate clean, functional HTML code with embedded JavaScript and CSS. Always use Three.js r128 from cdnjs and include all necessary script imports for GLTFLoader, OrbitControls, and other addons when needed.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Ashwin999/qwen3-4b-html-spatial")
tokenizer = AutoTokenizer.from_pretrained("Ashwin999/qwen3-4b-html-spatial")
prompt = "Create a rotating 3D cube"
# Generate HTML...