Text Generation
Transformers
PyTorch
gpt2
code_generation
R programming
sas
santacoder
custom_code
text-generation-inference
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 "infinitylogesh/statscoder" \
--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": "infinitylogesh/statscoder",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Quick Links
Statscoder
This model is a fine-tuned version of bigcode/santacoder on R and SAS language repositories in the stack dataset.
Training procedure
The model was finetuned using the code adapted from loubnabnl/santacoder-finetuning. Adapted to handle multiple subsets of datasets and it is here.
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- optimizer: adafactor
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 100
- training_steps: 1600
- seq_length: 1024
- no_fp16
- Downloads last month
- 11
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "infinitylogesh/statscoder" \ --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": "infinitylogesh/statscoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'