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")# 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 eval artifacts: summary, per-case scores, significance tests, rubric stats, HTML report
Browse files- eval/rubric_stats.json +30 -0
eval/rubric_stats.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n_prompts": 200,
|
| 3 |
+
"checks_total": 4983,
|
| 4 |
+
"checks_per_prompt": {
|
| 5 |
+
"min": 23,
|
| 6 |
+
"max": 25,
|
| 7 |
+
"mean": 24.92
|
| 8 |
+
},
|
| 9 |
+
"distribution": {
|
| 10 |
+
"23": 1,
|
| 11 |
+
"24": 15,
|
| 12 |
+
"25": 184
|
| 13 |
+
},
|
| 14 |
+
"by_dimension": {
|
| 15 |
+
"Alignment": 616,
|
| 16 |
+
"Layout": 842,
|
| 17 |
+
"Typography": 642,
|
| 18 |
+
"Components": 1517,
|
| 19 |
+
"Assets": 584,
|
| 20 |
+
"Aesthetics": 782
|
| 21 |
+
},
|
| 22 |
+
"by_track_surface": {
|
| 23 |
+
"A/dashboard": 1000,
|
| 24 |
+
"A/landing": 2486,
|
| 25 |
+
"B/dashboard": 748,
|
| 26 |
+
"B/landing": 749
|
| 27 |
+
},
|
| 28 |
+
"all_check_with_screenshot": true,
|
| 29 |
+
"note": "Additionally every prompt carries 5 judge-side Prompt-Fit rubrics scored 0-2 (surface-specific), not part of the 23-25 frozen screenshot checks."
|
| 30 |
+
}
|