Instructions to use NeoDim/starcoderbase-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeoDim/starcoderbase-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NeoDim/starcoderbase-GGML")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NeoDim/starcoderbase-GGML", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NeoDim/starcoderbase-GGML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeoDim/starcoderbase-GGML" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeoDim/starcoderbase-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NeoDim/starcoderbase-GGML
- SGLang
How to use NeoDim/starcoderbase-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 "NeoDim/starcoderbase-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": "NeoDim/starcoderbase-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 "NeoDim/starcoderbase-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": "NeoDim/starcoderbase-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NeoDim/starcoderbase-GGML with Docker Model Runner:
docker model run hf.co/NeoDim/starcoderbase-GGML
Sergey Kostyaev commited on
Commit ·
ef61b10
1
Parent(s): e6ff521
Requantize models
Browse filesRequantize models after last changes in ggml repo
- starcoderbase-ggml-q4_0.bin +2 -2
- starcoderbase-ggml-q4_1.bin +2 -2
- starcoderbase-ggml-q5_0.bin +1 -1
- starcoderbase-ggml-q5_1.bin +1 -1
- starcoderbase-ggml-q8_0.bin +2 -2
starcoderbase-ggml-q4_0.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8befb69d50f4d90c04c936c728a131b9cb688db953111d5bfe17c42e6b93fb7c
|
| 3 |
+
size 10746563472
|
starcoderbase-ggml-q4_1.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcf19baa9c6a104e32e1f59a13376de2b0c2a599bfcbed7fd50f83586f7f958f
|
| 3 |
+
size 11916774288
|
starcoderbase-ggml-q5_0.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 13086985104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:238d3f83e4574956b04ba012105a9e0caa1703f8bfd9e03a3e7fc37496d87fdb
|
| 3 |
size 13086985104
|
starcoderbase-ggml-q5_1.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14257195920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:892237b112d10590620addb39d2fa27f35329736446b58276e69dad6446cd3d5
|
| 3 |
size 14257195920
|
starcoderbase-ggml-q8_0.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d92d17680714b4e9ef197e6af9f4adcbce8ad5f158c027addea0ddacc0d261d7
|
| 3 |
+
size 20108250000
|