Text Generation
Transformers
Safetensors
designcoder
ui-generation
front-end
html
css
javascript
code-generation
full-sft
Instructions to use xingxm/DesignCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xingxm/DesignCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xingxm/DesignCoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("xingxm/DesignCoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use xingxm/DesignCoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xingxm/DesignCoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingxm/DesignCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/xingxm/DesignCoder
- SGLang
How to use xingxm/DesignCoder 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 "xingxm/DesignCoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingxm/DesignCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "xingxm/DesignCoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xingxm/DesignCoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use xingxm/DesignCoder with Docker Model Runner:
docker model run hf.co/xingxm/DesignCoder
Add model card: naming convention and checkpoint index
Browse files123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---license: mitlibrary_name: transformerspipeline_tag: text-generationtags:- designcoder- ui-generation- front-end- html- css- javascript- code-generation- full-sft---# DesignCoderCheckpoint collection for **DesignCoder**, a family of full-parameter SFT models for UI designresearch and end-to-end HTML/CSS/JavaScript implementation.Each subfolder in this repository is a self-contained, directly loadable checkpoint.## Naming convention```designcoder_{basemodel}_{size}_{optimizer}_bs{global_batch}[_ep{epochs}]_step{global_step}[_r{rerun}]```- `basemodel` / `size`: base model family and parameter scale- `optimizer`: `muon` or `adamw`- `bs`: global batch size (`per_device × grad_accum × world_size`)- `ep`: only present when epochs differ from the default 2- `step`: trainer `global_step` of the exported weights- `r`: rerun index, only present for repeated runs of an identical configuration## Checkpoints| Subfolder | Base model | Optimizer | LR | Global batch | Epochs | Step | Notes ||---|---|---|---|---|---|---|---|| `designcoder_qwen3.5_4b_muon_bs32_step1900` | Qwen3.5-4B | Muon | 1e-5 | 32 | 2 | 1900 | smallest release || `designcoder_qwen3.5_9b_muon_bs16_step3800` | Qwen3.5-9B | Muon | 1e-5 | 16 | 2 | 3800 | optimizer ablation (Muon arm) || `designcoder_qwen3.5_9b_adamw_bs16_step3800` | Qwen3.5-9B | AdamW | 2e-5 | 16 | 2 | 3800 | optimizer ablation (AdamW arm) || `designcoder_qwen3.5_9b_adamw_bs16_ep20_step38000` | Qwen3.5-9B | AdamW | 2e-5 | 16 | 20 | 38000 | epoch-scaling ablation || `designcoder_qwen3.6_27b_adamw_bs32_step1900` | Qwen3.6-27B | AdamW | 1e-5 | 32 | 2 | 1900 | largest release || `designcoder_qwen3.6_27b_adamw_bs32_step1900_r2` | Qwen3.6-27B | AdamW | 1e-5 | 32 | 2 | 1900 | rerun of the 27B configuration |## Shared training setup- Objective: full-parameter supervised fine-tuning (no LoRA / adapters)- Dataset: `designcoder_sft_v2_train`, 41,287 ShareGPT-format records- Chat template: `qwen3_5` with thinking enabled- Context length: 32,768- Sequence packing: enabled, with neat packing (no cross-sample attention)- LR schedule: cosine, warmup ratio 0.1## Usage```pythonfrom transformers import AutoModelForCausalLM, AutoProcessorrepo = "xingxm/DesignCoder"subfolder = "designcoder_qwen3.5_4b_muon_bs32_step1900"model = AutoModelForCausalLM.from_pretrained(repo, subfolder=subfolder, dtype="auto", device_map="auto")processor = AutoProcessor.from_pretrained(repo, subfolder=subfolder)```To download a single checkpoint only:```bashhf download xingxm/DesignCoder --include "designcoder_qwen3.5_4b_muon_bs32_step1900/*" --local-dir ./DesignCoder```## ProvenanceEach subfolder additionally ships `trainer_state.json` / `trainer_log.jsonl` (and`training_loss.png` where available) so that the loss curve and exact step schedule of the runcan be recovered from the checkpoint itself.
README.md+75