Instructions to use ArmelR/starcoder-gradio-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArmelR/starcoder-gradio-v0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ArmelR/starcoder-gradio-v0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ArmelR/starcoder-gradio-v0") model = AutoModelForCausalLM.from_pretrained("ArmelR/starcoder-gradio-v0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ArmelR/starcoder-gradio-v0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ArmelR/starcoder-gradio-v0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ArmelR/starcoder-gradio-v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ArmelR/starcoder-gradio-v0
- SGLang
How to use ArmelR/starcoder-gradio-v0 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 "ArmelR/starcoder-gradio-v0" \ --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": "ArmelR/starcoder-gradio-v0", "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 "ArmelR/starcoder-gradio-v0" \ --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": "ArmelR/starcoder-gradio-v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ArmelR/starcoder-gradio-v0 with Docker Model Runner:
docker model run hf.co/ArmelR/starcoder-gradio-v0
Commit History
-
backticks 4000
fac7cee
-
old checkpoint 2000
06a67e6
-
new checkpoint 3000
c0cd959 -
old checkpoint 1500
878440f
-
checkpoint-2000
0c7dd48 -
checkpoint-3000
d09374a
-
starcoderplus-4000
7f50a78
-
new guanaco, longer, 1500 steps
86d7703
-
Update README.md
ee5b3a4
-
starcoderplus 2000 steps
cd72499
-
starcoderbase 1350
8c7d249
-
adding files
de51f48 -
adding files checkpoint-900
a2d310f
-
updating to starcoder-gradio-v2.1
137129a
-
Update README.md
81fddac -
Update README.md
0b4f013
-
Update README.md
41b03ed
-
Update README.md
33ee0b5 -
Update README.md
6afdf95 -
Update README.md
ee26113 -
Update README.md
9c1178b -
Update README.md
07cb281 -
Update README.md
b7bd64d -
Update README.md
c16bd6d -
Create README.md
462ebd9
-
adding data
2e96d20 -
initial commit
470eabf