starcoder2-15b
BigCode · Language (text)
Which way is for me?
🌐 Online, right now
- Or try the free demo: bigcode/bigcode-models-leaderboard · bigcode/search-v2
💻 On my own computer
No ready LM Studio version (GGUF) of this model has been published yet. Use the online way for now; this page is checked again every night and the steps will appear here when one comes out.
Similar models you can run on your computer right now:
- DeepSeek-Coder-V2-Lite-InstructQ4 10.6 GB
- Kimi-VL-A3B-Thinking-2506Q4 11 GB
- SApriel-1.6-15b-ThinkerQ4 10 GB
🧑💻 For developers
vLLM
vllm serve bigcode/starcoder2-15bTransformers (Python)
from transformers import pipeline
pipe = pipeline("text-generation", model="bigcode/starcoder2-15b")Words used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
StarCoder2-15B model is a 15B parameter model trained on 600+ programming languages from The Stack v2, with opt-out requests excluded. The model uses Grouped Query Attention, a context window of 16,384 tokens with a sliding window attention of 4,096 tokens, and was trained using the Fill-in-the-Middle objective on 4+ trillion tokens. The model was trained with NVIDIA NeMo™ Framework using the NVIDIA Eos Supercomputer built with NVIDIA DGX H100 systems.
Intended use
The model was trained on GitHub code as well as additional selected data sources such as Arxiv and Wikipedia. As such it is not an instruction model and commands like "Write a function that computes the square root." do not work well.
Limitations
The model has been trained on source code from 600+ programming languages. The predominant language in source is English although other languages are also present. As such the model is capable to generate code snippets provided some context but the generated code is not guaranteed to work as intended.
Source: Hugging Face · bigcode/starcoder2-15b · License: bigcode-openrail-m
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 10.7 GB
- Recommended Q8
- 19.2 GB
- Full quality FP16
- 38.3 GB
On common hardware
| RTX 4060 · 8 GB | Won't run | |
|---|---|---|
| RTX 4090 · 24 GB | Great | Q8 · ≈ 23–38 tokens/s |
| RTX 5090 · 32 GB | Great | Q8 · ≈ 40–67 tokens/s |
| Mac M4 Max · 128 GB | Usable | FP16 · ≈ 6–10 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 38–63 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 300–500 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: