LLMs ·

Stable Code Instruct 3B

Parameters
2.8B
Architecture
Dense
Max context
16K tokens
License
stabilityai-non-commercial
Released
2024-03

How to run it

Quickest · Ollama

One command downloads a ready-to-run version and starts a chat.

ollama run stable-code:3b-instruct

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/stabilityai/stable-code-instruct-3b (opens in a new tab)

ollama run hf.co/stabilityai/stable-code-instruct-3b

Original weights · Hugging Face

Full-precision files from Stability AI, for fine-tuning, vLLM, Transformers.

huggingface.co/stabilityai/stable-code-instruct-3b (opens in a new tab)

No sign-in needed.

Memory needed

Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps.

Quantization Quality Weights Total at 8K context Total at 16K context Download
Q2_K Low 1.1 GB 4.4 GB 7.1 GB
Q3_K_M Low 1.4 GB 4.7 GB 7.3 GB
Q4_K_M Good 1.7 GB 5.0 GB 7.7 GB GGUF (opens in a new tab)
Q5_K_M High 2.0 GB 5.3 GB 8.0 GB GGUF (opens in a new tab)
Q6_K High 2.3 GB 5.6 GB 8.3 GB
Q8_0 Very high 3.0 GB 6.3 GB 8.9 GB
F16 Full 5.6 GB 8.9 GB 11.6 GB Original weights (opens in a new tab)

Best hardware for Stable Code Instruct 3B

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A380 (launch price $139) at Q6_K.

Grade · points Hardware Quant Memory Speed Fit
64 ptsGood (B) · 64 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4070 SUPER F16 9.5 GB / 12.0 GB 51.8 tok/s Runs well
64 ptsGood (B) · 64 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4060 Q8_0 6.7 GB / 8.0 GB 60.7 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.0/15 AMD Radeon RX 9070 XT F16 9.7 GB / 16.0 GB 56.7 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.0/15 NVIDIA GeForce RTX 4070 Ti SUPER F16 9.7 GB / 16.0 GB 69.1 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.0/15 NVIDIA GeForce RTX 4080 SUPER F16 9.7 GB / 16.0 GB 75.7 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.0/15 NVIDIA GeForce RTX 5060 Ti 16GB F16 9.7 GB / 16.0 GB 46.1 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.0/15 NVIDIA GeForce RTX 5070 Ti F16 9.7 GB / 16.0 GB 92.2 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.0/15 NVIDIA GeForce RTX 5080 F16 9.7 GB / 16.0 GB 98.7 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 13.2/15 Intel Arc B580 Q8_0 6.9 GB / 12.0 GB 77.7 tok/s Runs well
62 ptsGood (B) · 62 of 100 points: Model quality 9.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 13.2/15 NVIDIA GeForce RTX 3060 12GB Q8_0 6.9 GB / 12.0 GB 80.3 tok/s Runs well

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.