Instructions to use syaikhipin/Qwen3.8-27B-3D-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use syaikhipin/Qwen3.8-27B-3D-Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="syaikhipin/Qwen3.8-27B-3D-Coder") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("syaikhipin/Qwen3.8-27B-3D-Coder") model = AutoModelForMultimodalLM.from_pretrained("syaikhipin/Qwen3.8-27B-3D-Coder", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use syaikhipin/Qwen3.8-27B-3D-Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "syaikhipin/Qwen3.8-27B-3D-Coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "syaikhipin/Qwen3.8-27B-3D-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/syaikhipin/Qwen3.8-27B-3D-Coder
- SGLang
How to use syaikhipin/Qwen3.8-27B-3D-Coder with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "syaikhipin/Qwen3.8-27B-3D-Coder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "syaikhipin/Qwen3.8-27B-3D-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "syaikhipin/Qwen3.8-27B-3D-Coder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "syaikhipin/Qwen3.8-27B-3D-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use syaikhipin/Qwen3.8-27B-3D-Coder with Docker Model Runner:
docker model run hf.co/syaikhipin/Qwen3.8-27B-3D-Coder
Qwen3.8-27B-3D-Coder
QLoRA fine-tune of Qwen/Qwen3.8-27B for generating complete, self-contained Three.js scenes as single HTML files — the task of ccore/Qwen3.5-4B-3D-Coder, trained on ccore/ThreeJS-3D-Scenes (MIT). Part of an architecture-comparison post-training portfolio (same data, same evaluator across LFM3, Qwen3.8, and planned MoE/RWKV tracks).
This repo contains both the merged bf16 model (model-*.safetensors) and the LoRA
adapter it was merged from (adapter_model.safetensors, r=64).
Evaluation
Same protocol for every model in the portfolio: 60 stratified validation prompts
(6 per difficulty level, seed 42), temperature 0.6 / top-p 0.95 / top-k 20,
max 16,384 new tokens. Metrics: complete HTML document returned; pinned Three.js
0.160.0 module import present; extracted module script passes node --check.
| Model | Complete HTML | Pinned import | JS syntax |
|---|---|---|---|
| Gold (dataset targets) | 60/60 | 59/60 | 59/60 |
| Qwen3.8-27B QLoRA (this model) | 59/60 | 59/60 | 58/60 |
| LFM3-1.7B full SFT | 16/60 | 16/60 | 3/60 |
| LFM3-1.7B-Base (zero-shot) | 40/60 | 7/60 | 16/60 |
Failure analysis of this model's outputs: 59/60 generations finish with a complete
HTML document, and 0 of the 59 checkable scripts fail with a duplicate-declaration
error — the failure mode that dominates the 1.7B model's fine-tune (11 of its 13
finished-but-invalid outputs) does not appear at this scale. Raw generations and
scores are in eval/.
Training
- Method: Unsloth QLoRA — 4-bit NF4 base, LoRA r=64 / alpha=128 / dropout 0 on the
language model (attention + MLP); vision tower frozen. Prompt-completion format
(loss on completions only), NEFTune alpha=5, effective batch 16, bf16,
gradient checkpointing, EOS forced to
<|im_end|>. - Data: HTML-only targets (reasoning traces dropped). At max_len 12,288 the Qwen tokenizer keeps 1,886 of 3,933 training scenes; the rest exceed the cap and were excluded. This is a real limitation of the run, disclosed deliberately.
- Compute: single RTX PRO 6000 (96 GB) on molab, ~$0. Tracked on Weights & Biases
(project
fde-3dcoder-portfolio). - Interruption history (honest record): training ran in two phases because the ephemeral compute sessions terminated mid-run three times. Phase 1 reached step 160 of 236 (lr 1e-4 cosine) before its session died; phase 2 continued from the step-160 adapter — which had been pushed to this repo by the every-20-steps checkpointing — for one further epoch of 118 steps at lr 3e-5 cosine. No optimizer state survived, so phase 2 is a continuation from the adapter weights, not an exact resume. Total optimisation: 278 steps over the kept subset.
Intended use and limits
Research/portfolio artifact for Three.js scene generation in the dataset's format. Outputs are single-file HTML scenes; generated code should be reviewed before use in production. The model inherits the base model's general capabilities and limits outside this task; it was not evaluated on general benchmarks.
Licence
Apache-2.0, following the base model. Dataset: MIT (ccore/ThreeJS-3D-Scenes).
- Downloads last month
- 116