Downloads · 30 days
0
Ashwin999/qwen3-4b-html-spatial-4bit-lora
qwen3-4b-html-spatial-4bit-lora 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 (4-bit LoRA).
Downloads · 30 days
0
Access
Public
Updated Dec 31, 2025
Repo size
11.4 MB
Likes
0
Public
Click a slice to open those files.
.json14.2 MB · 89%
From the Hugging Face model README
This is a fine-tuned version of Qwen3-4B for generating 3D HTML visualizations using Three.js (4-bit LoRA).
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-4bit-lora")
tokenizer = AutoTokenizer.from_pretrained("Ashwin999/qwen3-4b-html-spatial-4bit-lora")
prompt = "Create a rotating 3D cube"
# Generate HTML...