StarCoder2 15B (base) on NVIDIA GeForce RTX 4090
Can the NVIDIA GeForce RTX 4090 run StarCoder2 15B (base)?
Yes, it runs great
Runs great. At Q8_0 it needs about 19.4 GB of 24.0 GB usable, with an estimated speed of 39.5 tok/s.
- Best quant
Q8_0- Generation speed
- 39.5 tok/s
- Prompt processing
- 3,726 tok/s
- First token (1K prompt)
- 0.3 s
- Largest safe context
- 16K
Best app to run it on the NVIDIA GeForce RTX 4090
On Windows
- One command with Ollama’s own build of this model.
- Serves an OpenAI-compatible API that other apps and coding tools can use.
ollama run starcoder2:15b-q8_0On Linux
- One command with Ollama’s own build of this model.
- Serves an OpenAI-compatible API that other apps and coding tools can use.
ollama run starcoder2:15b-q8_0Download StarCoder2 15B (base)
Recommended for the NVIDIA GeForce RTX 4090: Q8_0. Every other quantization has its own download link in the table below.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run starcoder2:15b-q8_0Quantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
Download the Q8_0 file (opens in a new tab)
huggingface.co/QuantFactory/starcoder2-15b-GGUF (opens in a new tab)
ollama run hf.co/QuantFactory/starcoder2-15b-GGUF:Q8_0Original weights · Hugging Face
Full-precision files from BigCode, for fine-tuning, vLLM, Transformers.
How it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 14.4 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 14.9 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 69.3 / 100 |
Every quantization on the NVIDIA GeForce RTX 4090
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 8.9 GB | 24.0 GB | 127 tok/s | Runs great | 22Basic quality (D) · 22 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 58/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q3_K_M | 10.3 GB | 24.0 GB | 100 tok/s | Runs great | 26Basic quality (D) · 26 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q4_K_M | 12.2 GB | 24.0 GB | 77.5 tok/s | Runs great | 30Basic quality (D) · 30 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 65/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 13.8 GB | 24.0 GB | 64.0 tok/s | Runs great | 31Basic quality (D) · 31 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 67/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 15.6 GB | 24.0 GB | 53.8 tok/s | Runs great | 31Basic quality (D) · 31 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q8_0 | 19.4 GB | 24.0 GB | 39.5 tok/s | Runs great | 32Basic quality (D) · 32 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 34.4 GB | 24.0 GB | 3.3 tok/s | Slowheavy RAM offload | 32Basic quality (D) · 32 of 100: how capable the model is at F16, whatever it runs on. Match score 37/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Memory figures assume 8K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
31Basic quality (D) · 31 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
31Basic quality (D) · 31 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 3090
-
31Basic quality (D) · 31 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 Ti SUPER
-
31Basic quality (D) · 31 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4080 SUPER
-
31Basic quality (D) · 31 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5070 Ti
-
31Basic quality (D) · 31 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5080
Quick answers
How much memory does StarCoder2 15B (base) need on the RTX 4090 24GB?
At Q8_0 it needs about 19.4 GB. The RTX 4090 24GB has 24.0 GB usable.
How fast is StarCoder2 15B (base) on the RTX 4090 24GB?
About 39.5 tok/s at Q8_0, an estimate from the hardware’s memory bandwidth and the size of the model.
Which quantization of StarCoder2 15B (base) should I use on the RTX 4090 24GB?
Q8_0. Of the versions that fit, it is the one that runs best; when two run equally well, the check prefers the higher-rated one.
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.