qwen3-4b-html-spatial-8bit
This is a fine-tuned version of Qwen3-4B for generating 3D HTML visualizations using Three.js (8-bit).
Model Details
- Base Model: unsloth/Qwen3-4B-Base
- Model Type: 8-bit Quantized
- Training Examples: 5021
- Max Sequence Length: 8192
- LoRA Rank: 64
- Final Loss: 0.2878
Intended Use
Generate complete HTML (CSS + JS) for 3D scenes using Three.js r128 from natural language prompts.
System Prompt
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.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Ashwin999/qwen3-4b-html-spatial-8bit")
tokenizer = AutoTokenizer.from_pretrained("Ashwin999/qwen3-4b-html-spatial-8bit")
prompt = "Create a rotating 3D cube"
# Generate HTML...