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
Download eval/significance_tests_v592.json from xingxm/DesignCoder: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/xingxm/DesignCoder/resolve/main/eval/significance_tests_v592.json
- Command line
-
hf download hf://xingxm/DesignCoder/eval/significance_tests_v592.json
-
curl -L -o significance_tests_v592.json https://huggingface.co/xingxm/DesignCoder/resolve/main/eval/significance_tests_v592.json
1.37 kB
| { | |
| "27B_AdamW_step400_vs_9B_AdamW_step200": { | |
| "mean_diff": 4.896, | |
| "bootstrap_ci95": [ | |
| 2.867, | |
| 6.789 | |
| ], | |
| "wilcoxon_W": 5719.5, | |
| "wilcoxon_p": 4.847597288453082e-07, | |
| "significant_at_0.05": true | |
| }, | |
| "27B_AdamW_step400_vs_4B_AdamW_step200": { | |
| "mean_diff": 6.978, | |
| "bootstrap_ci95": [ | |
| 4.814, | |
| 9.154 | |
| ], | |
| "wilcoxon_W": 4877.0, | |
| "wilcoxon_p": 4.47399700563063e-10, | |
| "significant_at_0.05": true | |
| }, | |
| "27B_AdamW_step400_vs_4B_Muon_step200": { | |
| "mean_diff": 15.704, | |
| "bootstrap_ci95": [ | |
| 13.551, | |
| 17.92 | |
| ], | |
| "wilcoxon_W": 1574.5, | |
| "wilcoxon_p": 4.570449701547677e-25, | |
| "significant_at_0.05": true | |
| }, | |
| "9B_AdamW_step200_vs_4B_AdamW_step200": { | |
| "mean_diff": 2.082, | |
| "bootstrap_ci95": [ | |
| -0.034, | |
| 4.176 | |
| ], | |
| "wilcoxon_W": 8359.5, | |
| "wilcoxon_p": 0.0647704989672306, | |
| "significant_at_0.05": false | |
| }, | |
| "9B_AdamW_step200_vs_4B_Muon_step200": { | |
| "mean_diff": 10.808, | |
| "bootstrap_ci95": [ | |
| 8.818, | |
| 12.804 | |
| ], | |
| "wilcoxon_W": 2929.0, | |
| "wilcoxon_p": 3.661798966685315e-18, | |
| "significant_at_0.05": true | |
| }, | |
| "4B_AdamW_step200_vs_4B_Muon_step200": { | |
| "mean_diff": 8.726, | |
| "bootstrap_ci95": [ | |
| 6.512, | |
| 10.939 | |
| ], | |
| "wilcoxon_W": 4134.5, | |
| "wilcoxon_p": 5.27884641909125e-13, | |
| "significant_at_0.05": true | |
| } | |
| } |