Instructions to use tensorblock/starcoder2-3b-instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/starcoder2-3b-instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/starcoder2-3b-instruct-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/starcoder2-3b-instruct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/starcoder2-3b-instruct-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 tensorblock/starcoder2-3b-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/starcoder2-3b-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tensorblock/starcoder2-3b-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use tensorblock/starcoder2-3b-instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/starcoder2-3b-instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/starcoder2-3b-instruct-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/starcoder2-3b-instruct-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 "tensorblock/starcoder2-3b-instruct-GGUF" \ --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": "tensorblock/starcoder2-3b-instruct-GGUF", "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 "tensorblock/starcoder2-3b-instruct-GGUF" \ --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": "tensorblock/starcoder2-3b-instruct-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/starcoder2-3b-instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/starcoder2-3b-instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/starcoder2-3b-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/starcoder2-3b-instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.starcoder2-3b-instruct-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Keep Q2_K/Q3_K_M gguf only
Browse files- starcoder2-3b-instruct-Q3_K_L.gguf +0 -3
- starcoder2-3b-instruct-Q3_K_S.gguf +0 -3
- starcoder2-3b-instruct-Q4_0.gguf +0 -3
- starcoder2-3b-instruct-Q4_K_M.gguf +0 -3
- starcoder2-3b-instruct-Q4_K_S.gguf +0 -3
- starcoder2-3b-instruct-Q5_0.gguf +0 -3
- starcoder2-3b-instruct-Q5_K_M.gguf +0 -3
- starcoder2-3b-instruct-Q5_K_S.gguf +0 -3
- starcoder2-3b-instruct-Q6_K.gguf +0 -3
- starcoder2-3b-instruct-Q8_0.gguf +0 -3
starcoder2-3b-instruct-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9ca81860fac1a666afb02e342a269be0c150a3f1b72b75fdb5785da98401ad10
|
| 3 |
-
size 1737573888
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7993214e2b7431164a687e36db93e570450b6b84fa6814dac6cacb6e29885d2d
|
| 3 |
-
size 1366537728
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:632135e48fa1c6e77e294022d5c6e2e31988bc831fecdd9ff976e6b2f8f5b530
|
| 3 |
-
size 1748817408
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e371ee75d4712983e5cd34fa5679dcd4b0e297f5028d66ee36f399e7653eddd8
|
| 3 |
-
size 1887905280
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7ec19a462d1962f79e5870c63dd2a69659aca06c9e37232ef52e37b57e949f7b
|
| 3 |
-
size 1763366400
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5d0479456f75974ec318d7a930d3fd002e40c00623857c43b425e80fe2fe40d5
|
| 3 |
-
size 2108610048
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:25aa0f5967b3d6168148f2daeb10181cdce32093e1e5cb26a819138f2ddb1e54
|
| 3 |
-
size 2180261376
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f194519205917f98287a5abd465ba00cbd70b3894d2f8c7024beae5f9f1f7357
|
| 3 |
-
size 2108610048
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b84bc24d7788982c0c5a18ef9e402ab66adfd998f46c915efe8669f1b6549548
|
| 3 |
-
size 2490889728
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-3b-instruct-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b0f3a0f3775c887052142cebef03f23fd69ad29788f968b3420d49abb339e7c0
|
| 3 |
-
size 3224557056
|
|
|
|
|
|
|
|
|
|
|
|