Instructions to use krytonguard/java-starcoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use krytonguard/java-starcoder with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoderbase-1b") model = PeftModel.from_pretrained(base_model, "krytonguard/java-starcoder") - Transformers
How to use krytonguard/java-starcoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="krytonguard/java-starcoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("krytonguard/java-starcoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use krytonguard/java-starcoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "krytonguard/java-starcoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "krytonguard/java-starcoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/krytonguard/java-starcoder
- SGLang
How to use krytonguard/java-starcoder 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 "krytonguard/java-starcoder" \ --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": "krytonguard/java-starcoder", "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 "krytonguard/java-starcoder" \ --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": "krytonguard/java-starcoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use krytonguard/java-starcoder with Docker Model Runner:
docker model run hf.co/krytonguard/java-starcoder
Commit History
-
Training in progress, step 2000
Verified signature7cfce68 -
Training in progress, step 1900
Verified signaturea895fa5 -
Training in progress, step 1800
Verified signature4feb91e -
Training in progress, step 1700
Verified signature6906ac4 -
Training in progress, step 1600
Verified signaturef6c1166 -
Training in progress, step 1500
Verified signatureaacc47d -
Training in progress, step 1400
Verified signaturec552fec
-
Training in progress, step 1300
Verified signature44cf8a7 -
Training in progress, step 1200
Verified signature6290e03 -
Training in progress, step 1100
Verified signature86cb815 -
Training in progress, step 1000
Verified signature6b46324 -
Training in progress, step 900
Verified signaturef24c288 -
Training in progress, step 800
Verified signaturecde4cb8 -
Training in progress, step 700
Verified signature2429f5b -
Training in progress, step 600
Verified signature836e1ff -
Training in progress, step 500
Verified signatureb85a916 -
Training in progress, step 400
Verified signature4fceab8 -
Training in progress, step 300
Verified signaturebeef41b -
Training in progress, step 200
Verified signaturebda6836 -
Training in progress, step 100
Verified signature0afe365 -
Training in progress, step 20
Verified signature76ca5d2 -
Training in progress, step 20
Verified signature2049150 -
Training in progress, step 20
Verified signaturecc00d43 -
End of training
Verified signature56a61a9 -
Training in progress, step 20
Verified signature53e22f7 -
initial commit
Verified signature4025cb3