Instructions to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/StarCoder2-15B-Instruct-v0.1-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/StarCoder2-15B-Instruct-v0.1-GGUF") model = AutoModelForCausalLM.from_pretrained("second-state/StarCoder2-15B-Instruct-v0.1-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use second-state/StarCoder2-15B-Instruct-v0.1-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 second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
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 second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
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 second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/StarCoder2-15B-Instruct-v0.1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/StarCoder2-15B-Instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
- SGLang
How to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF 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 "second-state/StarCoder2-15B-Instruct-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/StarCoder2-15B-Instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "second-state/StarCoder2-15B-Instruct-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/StarCoder2-15B-Instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF with Ollama:
ollama run hf.co/second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
- Lemonade
How to use second-state/StarCoder2-15B-Instruct-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/StarCoder2-15B-Instruct-v0.1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.StarCoder2-15B-Instruct-v0.1-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload models
Browse files- .gitattributes +12 -0
- starcoder2-15b-instruct-v0.1-Q2_K.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q3_K_L.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q3_K_M.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q3_K_S.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q4_0.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q4_K_M.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q4_K_S.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q5_0.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q5_K_S.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q6_K.gguf +3 -0
- starcoder2-15b-instruct-v0.1-Q8_0.gguf +3 -0
- starcoder2-15b-instruct-v0.1-f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip 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 |
+
starcoder2-15b-instruct-v0.1-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
starcoder2-15b-instruct-v0.1-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
starcoder2-15b-instruct-v0.1-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
starcoder2-15b-instruct-v0.1-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
starcoder2-15b-instruct-v0.1-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
starcoder2-15b-instruct-v0.1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
starcoder2-15b-instruct-v0.1-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
starcoder2-15b-instruct-v0.1-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
starcoder2-15b-instruct-v0.1-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
starcoder2-15b-instruct-v0.1-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
starcoder2-15b-instruct-v0.1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
starcoder2-15b-instruct-v0.1-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
starcoder2-15b-instruct-v0.1-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8583f56378c0509d32d485935edc97434cd82f916af420b12efe094ccef85a0
|
| 3 |
+
size 6192957920
|
starcoder2-15b-instruct-v0.1-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfbe89ba57ce5b59f6af162a934d075504062f5a7d5b0cdcaf9a00c8e7290cc8
|
| 3 |
+
size 8965327328
|
starcoder2-15b-instruct-v0.1-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ff686ca88f929938aecf4eb4a26e4e77a85a87967f7131a92a1e5d969f68821
|
| 3 |
+
size 8044415456
|
starcoder2-15b-instruct-v0.1-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:270be480f0acfa91d99d9eb34e60d11eb56cd2baf47360fbcd0122c1fda71b6e
|
| 3 |
+
size 6986467808
|
starcoder2-15b-instruct-v0.1-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e63040b2a63d9ae71641eb2ccde3bacfd89898eb0ea00238d8ac22216f47f118
|
| 3 |
+
size 9065400800
|
starcoder2-15b-instruct-v0.1-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a22890f7e153ec65af3c6fc0b73a544f46f6a20b3fec5c709e4811a45d38895
|
| 3 |
+
size 9860188640
|
starcoder2-15b-instruct-v0.1-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b11378e1414ce711afbb042b4afb25c5e20fe6172d41f24b7ba5e38365bbbbf
|
| 3 |
+
size 9161345504
|
starcoder2-15b-instruct-v0.1-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:994c3e4045cc6a7960e78090a6821c858557e27e37fdec043684f9b444936781
|
| 3 |
+
size 11022043616
|
starcoder2-15b-instruct-v0.1-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4638fbd05032d7dbc66effa4d752251304b4243d1d4b1b726e92e9a5ff56faeb
|
| 3 |
+
size 11022043616
|
starcoder2-15b-instruct-v0.1-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3945a726bda8488cdf65f8e06f1d8db9946050e71a6057c2c385b2a17b04ff45
|
| 3 |
+
size 13100976608
|
starcoder2-15b-instruct-v0.1-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4326cddb71d391bb6a1423b446ff162f319418cde908f952ddbb85009f172297
|
| 3 |
+
size 16965110240
|
starcoder2-15b-instruct-v0.1-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:651bba8734b7a184131b10548d919a089b3d40943568f9edd74eb220213576b6
|
| 3 |
+
size 31923046816
|