How to use from
SGLangUse 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 "CLMBR/binding-c-command-transformer-2" \
--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": "CLMBR/binding-c-command-transformer-2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Quick Links
binding-c-command-transformer-2
This model is a fine-tuned version of on the None dataset. It achieves the following results on the evaluation set:
- Loss: 3.8612
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 32
- eval_batch_size: 32
- seed: 2
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- training_steps: 3052726
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 4.2236 | 0.03 | 76320 | 4.1937 |
| 4.0183 | 1.03 | 152640 | 4.0245 |
| 3.9082 | 0.03 | 228960 | 3.9500 |
| 3.8443 | 1.03 | 305280 | 3.9103 |
| 3.7908 | 0.03 | 381600 | 3.8840 |
| 3.7508 | 1.03 | 457920 | 3.8685 |
| 3.7217 | 0.03 | 534240 | 3.8586 |
| 3.6907 | 1.03 | 610560 | 3.8519 |
| 3.6607 | 0.03 | 686880 | 3.8475 |
| 3.6343 | 1.03 | 763200 | 3.8452 |
| 3.611 | 0.03 | 839520 | 3.8432 |
| 3.5893 | 1.03 | 915840 | 3.8427 |
| 3.5719 | 0.03 | 992160 | 3.8424 |
| 3.5509 | 0.03 | 1068480 | 3.8427 |
| 3.5351 | 1.03 | 1144800 | 3.8427 |
| 3.5269 | 0.03 | 1221120 | 3.8441 |
| 3.5066 | 1.03 | 1297440 | 3.8453 |
| 3.4967 | 0.03 | 1373760 | 3.8458 |
| 3.4799 | 1.03 | 1450080 | 3.8476 |
| 3.4756 | 0.03 | 1526400 | 3.8500 |
| 3.4629 | 1.03 | 1602720 | 3.8510 |
| 3.4559 | 0.03 | 1679040 | 3.8536 |
| 3.4494 | 1.03 | 1755360 | 3.8534 |
| 3.4387 | 0.03 | 1831680 | 3.8558 |
| 3.4247 | 0.03 | 1908000 | 3.8572 |
| 3.4118 | 1.03 | 1984320 | 3.8582 |
| 3.3992 | 0.03 | 2060640 | 3.8598 |
| 3.3894 | 1.03 | 2136960 | 3.8608 |
| 3.3803 | 0.03 | 2213280 | 3.8610 |
| 3.3632 | 1.03 | 2289600 | 3.8625 |
| 3.3574 | 0.03 | 2365920 | 3.8635 |
| 3.3492 | 0.03 | 2442240 | 3.8634 |
| 3.3364 | 0.03 | 2518560 | 3.8649 |
| 3.3296 | 1.03 | 2594880 | 3.8642 |
| 3.317 | 0.03 | 2671200 | 3.8647 |
| 3.3139 | 1.03 | 2747520 | 3.8653 |
| 3.308 | 0.03 | 2823840 | 3.8642 |
| 3.3023 | 1.03 | 2900160 | 3.8635 |
| 3.3002 | 0.03 | 2976480 | 3.8623 |
| 3.2921 | 1.02 | 3052726 | 3.8612 |
Framework versions
- Transformers 4.33.3
- Pytorch 2.0.1
- Datasets 2.12.0
- Tokenizers 0.13.3
- Downloads last month
- 12
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "CLMBR/binding-c-command-transformer-2" \ --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": "CLMBR/binding-c-command-transformer-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'