Instructions to use TheBloke/starcoder-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/starcoder-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/starcoder-GGML")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/starcoder-GGML", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TheBloke/starcoder-GGML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/starcoder-GGML" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/starcoder-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/starcoder-GGML
- SGLang
How to use TheBloke/starcoder-GGML 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 "TheBloke/starcoder-GGML" \ --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": "TheBloke/starcoder-GGML", "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 "TheBloke/starcoder-GGML" \ --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": "TheBloke/starcoder-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/starcoder-GGML with Docker Model Runner:
docker model run hf.co/TheBloke/starcoder-GGML
Initial GGML model commit
Browse files- starcoder.ggmlv3.q4_0.bin +3 -0
- starcoder.ggmlv3.q4_1.bin +3 -0
- starcoder.ggmlv3.q5_0.bin +3 -0
- starcoder.ggmlv3.q5_1.bin +3 -0
- starcoder.ggmlv3.q8_0.bin +3 -0
starcoder.ggmlv3.q4_0.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1f562b2a3e2c78aca3e40d230da19d1f7734ac0c5542cb40aca31189cfae3f9
|
| 3 |
+
size 10746563472
|
starcoder.ggmlv3.q4_1.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a77e3052394e008a0da23efad40607feb46f20b9bb99fe98bc5b8edf35e634b0
|
| 3 |
+
size 11916774288
|
starcoder.ggmlv3.q5_0.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ef4e24d46f03fffdf2b46a5a154d633957f3b253ea4158dc853298c23d7d5f3
|
| 3 |
+
size 13086985104
|
starcoder.ggmlv3.q5_1.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6add8ea0ce89943d59446deec30d3580a4d21acfbddcbff86dcb5fa0fdbcfbcc
|
| 3 |
+
size 14257195920
|
starcoder.ggmlv3.q8_0.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:298f9db28a9ee0ad5458d036d3e9c255d6fd24971d2d0e99ca6f1ed821b640cc
|
| 3 |
+
size 20108250000
|