How to use from
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-3B-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": "second-state/StarCoder2-3B-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 "second-state/StarCoder2-3B-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": "second-state/StarCoder2-3B-GGUF",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

StarCoder2-3B-GGUF

Original Model

bigcode/starcoder2-3b

Run with LlamaEdge

  • LlamaEdge version: coming soon

  • Context size: 3072

Quantized GGUF Models

Name Quant method Bits Size Use case
starcoder2-3b-Q2_K.gguf Q2_K 2 1.15 GB smallest, significant quality loss - not recommended for most purposes
starcoder2-3b-Q3_K_L.gguf Q3_K_L 3 1.68 GB small, substantial quality loss
starcoder2-3b-Q3_K_M.gguf Q3_K_M 3 1.51 GB very small, high quality loss
starcoder2-3b-Q3_K_S.gguf Q3_K_S 3 1.31 GB very small, high quality loss
starcoder2-3b-Q4_0.gguf Q4_0 4 1.71 GB legacy; small, very high quality loss - prefer using Q3_K_M
starcoder2-3b-Q4_K_M.gguf Q4_K_M 4 1.85 GB medium, balanced quality - recommended
starcoder2-3b-Q4_K_S.gguf Q4_K_S 4 1.74 GB small, greater quality loss
starcoder2-3b-Q5_0.gguf Q5_0 5 2.09 GB legacy; medium, balanced quality - prefer using Q4_K_M
starcoder2-3b-Q5_K_M.gguf Q5_K_M 5 2.16 GB large, very low quality loss - recommended
starcoder2-3b-Q5_K_S.gguf Q5_K_S 5 2.09 GB large, low quality loss - recommended
starcoder2-3b-Q6_K.gguf Q6_K 6 2.49 GB very large, extremely low quality loss
starcoder2-3b-Q8_0.gguf Q8_0 8 3.22 GB very large, extremely low quality loss - not recommended

Quantized with llama.cpp b2308

Downloads last month
2,293
GGUF
Model size
3B params
Architecture
starcoder2
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for second-state/StarCoder2-3B-GGUF

Quantized
(28)
this model
Finetunes
1 model

Space using second-state/StarCoder2-3B-GGUF 1