Instructions to use dranger003/starcoder2-15b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use dranger003/starcoder2-15b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="dranger003/starcoder2-15b-GGUF", filename="ggml-starcoder2-15b-f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use dranger003/starcoder2-15b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf dranger003/starcoder2-15b-GGUF:F16 # Run inference directly in the terminal: llama cli -hf dranger003/starcoder2-15b-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dranger003/starcoder2-15b-GGUF:F16 # Run inference directly in the terminal: llama cli -hf dranger003/starcoder2-15b-GGUF:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf dranger003/starcoder2-15b-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf dranger003/starcoder2-15b-GGUF:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf dranger003/starcoder2-15b-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf dranger003/starcoder2-15b-GGUF:F16
Use Docker
docker model run hf.co/dranger003/starcoder2-15b-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use dranger003/starcoder2-15b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dranger003/starcoder2-15b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dranger003/starcoder2-15b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dranger003/starcoder2-15b-GGUF:F16
- Ollama
How to use dranger003/starcoder2-15b-GGUF with Ollama:
ollama run hf.co/dranger003/starcoder2-15b-GGUF:F16
- Unsloth Studio
How to use dranger003/starcoder2-15b-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for dranger003/starcoder2-15b-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for dranger003/starcoder2-15b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for dranger003/starcoder2-15b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use dranger003/starcoder2-15b-GGUF with Docker Model Runner:
docker model run hf.co/dranger003/starcoder2-15b-GGUF:F16
- Lemonade
How to use dranger003/starcoder2-15b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dranger003/starcoder2-15b-GGUF:F16
Run and chat with the model
lemonade run user.starcoder2-15b-GGUF-F16
List all available models
lemonade list
Upload 4 files
Browse files- .gitattributes +4 -0
- ggml-starcoder2-15b-q4_k.gguf +3 -0
- ggml-starcoder2-15b-q5_k.gguf +3 -0
- ggml-starcoder2-15b-q6_k.gguf +3 -0
- ggml-starcoder2-15b-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
ggml-starcoder2-15b-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
ggml-starcoder2-15b-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
ggml-starcoder2-15b-q4_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
ggml-starcoder2-15b-q5_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
ggml-starcoder2-15b-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
ggml-starcoder2-15b-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
ggml-starcoder2-15b-q4_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8f1f53fd8888116f8710cf51ca246f993fafc584f80ec6a7f4d673ddd289c0c
|
| 3 |
+
size 9860188000
|
ggml-starcoder2-15b-q5_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4f4658ff6a474d0a3a17ac7c17b6e2862f3028e729d7cfea6f8f4d72eff3ca1
|
| 3 |
+
size 11431479136
|
ggml-starcoder2-15b-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94c671960701cea99e141056f772388a7f454feaf0c953977cc5684bf68b8b0a
|
| 3 |
+
size 13100975968
|
ggml-starcoder2-15b-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cfe972755f7924cf8c176cb8607027f105196b8abb7614a2f680e84171cb418
|
| 3 |
+
size 16965109600
|