StarCoder 2 — lokalny model AI od BigCode
Autor: Jakub Rusinowski · Ostatnia aktualizacja:
Czołowy model generowania kodu open-source. StarCoder 2 jest trenowany na zbiorze danych The Stack v2 obejmującym 600+ języków programowania. Zbudowany specjalnie do uzupełniania, generowania i rozumienia kodu — nie jest modelem ogólnym dostrojonym pod kątem kodu.
Warianty
Najmniejszy wariant StarCoder 2 potrzebuje około 3 GB VRAM przy Q4_K_M — skwantyzowane wagi plus narzut frameworka, bez pamięci podręcznej KV.
| Model | VRAM przy Q4 | VRAM | Kontekst | Uruchom |
|---|---|---|---|---|
| StarCoder 2 3B → 3B | ~2.6 GB | 16,384 | ollama run starcoder2:3b | |
| StarCoder 2 7B → 7B | ~5.1 GB | 16,384 | ollama run starcoder2:7b | |
| StarCoder 2 15B → 15B | ~10.2 GB | 16,384 | ollama run starcoder2:15b |
Pamięć to skwantyzowane wagi plus narzut przy Q4_K_M, liczone tym samym silnikiem co sprawdzarka GPU i VRAM.
Jak uruchomić StarCoder 2 lokalnie
Zainstaluj Ollama, a potem pobierz tag.
ollama run starcoder2:3bWybierz rozmiar powyżej, aby zobaczyć jego VRAM, szacowaną szybkość i polecenie instalacji.
Licencja
Weights are downloadable and commercial use is permitted, subject to the licence’s acceptable-use terms.
Dotyczy: StarCoder 2 3B, StarCoder 2 7B, StarCoder 2 15BPolecane GPU
Najtańsze GPU z naszego katalogu, które uruchomi StarCoder 2 lokalnie (min. 3 GB VRAM), to Intel Arc B570 (10 GB).
Czy uruchomię StarCoder 2 na moim GPU?
- StarCoder 2 na AMD Radeon RX 7800 XT
- StarCoder 2 na AMD Radeon RX 7900 XT
- StarCoder 2 na AMD Radeon RX 9060 XT 16GB
- StarCoder 2 na AMD Radeon RX 9060 XT 8GB
- StarCoder 2 na AMD Radeon RX 9070
- StarCoder 2 na AMD Radeon RX 9070 XT
- StarCoder 2 na Apple M1
- StarCoder 2 na Intel Arc B570
- StarCoder 2 na Intel Arc B580
- StarCoder 2 na NVIDIA GeForce RTX 3060 (12GB)
- StarCoder 2 na NVIDIA GeForce RTX 3070
- StarCoder 2 na NVIDIA GeForce RTX 3070 Ti
- StarCoder 2 na NVIDIA GeForce RTX 3080 (10GB)
- StarCoder 2 na NVIDIA GeForce RTX 4060
- StarCoder 2 na NVIDIA GeForce RTX 4060 Ti 16GB
- StarCoder 2 na NVIDIA GeForce RTX 4070
- StarCoder 2 na NVIDIA GeForce RTX 4070 Super
- StarCoder 2 na NVIDIA GeForce RTX 4070 Ti
- StarCoder 2 na NVIDIA GeForce RTX 4070 Ti Super
- StarCoder 2 na NVIDIA GeForce RTX 4080
- StarCoder 2 na NVIDIA GeForce RTX 4080 Super
- StarCoder 2 na NVIDIA GeForce RTX 5060
- StarCoder 2 na NVIDIA GeForce RTX 5060 Ti 16GB
- StarCoder 2 na NVIDIA GeForce RTX 5060 Ti 8GB
- StarCoder 2 na NVIDIA GeForce RTX 5070
- StarCoder 2 na NVIDIA GeForce RTX 5070 Ti
- StarCoder 2 na NVIDIA GeForce RTX 5080
StarCoder 2 — najczęściej zadawane pytania
How much VRAM does StarCoder 2 need?
StarCoder 2 needs about 3 GB VRAM at Q4_K_M quantization for its smallest variant. Variants: StarCoder 2 3B (3 GB, Q4_K_M); StarCoder 2 7B (5 GB, Q4_K_M); StarCoder 2 15B (10 GB, Q4_K_M). On Apple Silicon, unified memory counts toward this requirement.
Can I run StarCoder 2 on an RTX 4090 (24 GB)?
Yes — StarCoder 2 runs on an RTX 4090 (24 GB) and other 24 GB cards such as the RTX 3090. Smaller variants also fit comfortably on 8–16 GB GPUs at Q4_K_M.
What quantization should I use for StarCoder 2?
Q4_K_M is the best balance of quality and VRAM for StarCoder 2 in most cases. Choose Q8_0 for near-lossless quality if you have spare VRAM, or smaller quants (Q3/Q2) only when memory is tight.
How do I run StarCoder 2 with Ollama?
Install Ollama, then run: ollama run starcoder2:3b. This downloads StarCoder 2 and starts a local, OpenAI-compatible endpoint — no internet connection is needed after the initial download.