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 "stillerman/santacoder-ruby" \
--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": "stillerman/santacoder-ruby",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Quick Links
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Model
This model is a fine-tuned version of BigCode/SantaCoder on the Ruby portion of The Stack.
Training
This model was trained using character-level FIM with this script invoked like this
train.py --model_path=bigcode/santacoder --dataset_name=bigcode/the-stack-dedup \
--subset=data/ruby --data_column content --split=train \
--seq_length 2048 --max_steps 4000 --batch_size 3 \
--gradient_accumulation_steps 8 --learning_rate 5e-5 \
--num_warmup_steps 500 --eval_freq 1000 --save_freq 1000 \
--log_freq 1 --num_workers=12 --no_fp16 --streaming \
--fim_rate=0.5 --fim_spm_rate=0.5
on a 40GB A100 for 48 hours.
Performance
MultiPL-E HumanEval Ruby
- pass@1 = 0.10
- pass@10 = 0.14
- 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 "stillerman/santacoder-ruby" \ --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": "stillerman/santacoder-ruby", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'