Ashwin999's picture
Upload folder using huggingface_hub
49af52e verified
metadata
language:
  - en
license: apache-2.0
tags:
  - qwen
  - html
  - threejs
  - code-generation
  - fine-tuned
pipeline_tag: text-generation

qwen3-4b-html-spatial

This is a fine-tuned version of Qwen3-4B for generating 3D HTML visualizations using Three.js.

Model Details

  • Base Model: unsloth/Qwen3-4B-Base
  • Model Type: Merged 16-bit (Original)
  • 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")
tokenizer = AutoTokenizer.from_pretrained("Ashwin999/qwen3-4b-html-spatial")

prompt = "Create a rotating 3D cube"
# Generate HTML...