VOOZH about

URL: https://willitrunai.com/models/starcoder2-7b

โ‡ฑ StarCoder2 7B VRAM Requirements โ€” GPU Compatibility


๐Ÿ‘ BigCode
BigCode

StarCoder2 7B

Current
๐Ÿ‘ huggingface
HuggingFace
14.1KDownloads217LikesFeb 2024Released16K tokensContextBigCode OpenRAIL-MLicense2 EntryQuality

StarCoder2 7B (7B parameters) requires approximately 6.3 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 8 GB of VRAM.

Get started

โ€” copy & paste to run locally

Copy-paste commands to run StarCoder2 7B on your machine.

Run

lms load starcoder2-7b && lms server start

Quick specs

Parameters7B
Architecturedense
Context16K tokens
Modalitycode
Min RAM2.7 GB
Rec. RAM4.3 GB (Q4_K_M)
LicenseBigCode OpenRAIL-M
FamilyStarCoder2
โœ“ Code

About this model

- Project Website: bigcode-project.org - Paper: Link - Point of Contact: [email protected] - Languages: 17 Programming languages

  • โ€ขModel Summary
  • โ€ขLimitations
  • โ€ขTraining
  • โ€ขLicense
  • โ€ขCitation

Related models

Your hardware

Detecting...

Quick picks

๐Ÿ‘ Intel
Best budgetC
Intel Arc A580 8GB~$179 โ€” 64 tok/s
๐Ÿ‘ NVIDIA
Best overallB
RTX 3080 10GB~$699 โ€” 98 tok/s

Best hardware

Top picks for StarCoder2 7B

RTX 3080 10GBB
10 GB
RTX 3080 Ti 12GBB
12 GB
RTX 3080 12GBB
12 GB
RTX 3070 Ti 8GBB
8 GB
RTX 5060 Ti 8GBB
8 GB

Run this model

StarCoder2 7B on RTX 3080 10GBStarCoder2 7B on RTX 3080 Ti 12GBStarCoder2 7B on RTX 3080 12GB

Quantization options

VRAM estimates by quant level

No hardware detected โ€” fit column shows raw VRAM estimates

QuantBitsVRAMQualityFit
Q2_K
2
2.7 GB
Lowโ€”
Q3_K_S
3
3.4 GB
Lowโ€”
NVFP4
4
3.9 GB
Mediumโ€”
Q4_K_M
4
4.3 GB
Mediumโ€”
Q5_K_M
5
5.0 GB
Highโ€”
Q6_K
6
5.7 GB
Highโ€”
Q8_0
8
7.5 GB
Very Highโ€”
F16
16
14.3 GB
Maximumโ€”

Quality benchmarks

StarCoder2 7B benchmark scores

Benchmark verified

Coding

SWE-bench Verifiedโ€”
HumanEval+35.4%
Aider Polyglotโ€”
LiveCodeBenchโ€”

Reasoning

MMLU-Pro7.1%
GPQA Diamond0.2%
MATH-5003.1%
ARC Challengeโ€”

General

Chatbot Arenaโ€”
IFEval22.1%

Source: official ยท 2024-02-28

Hardware compatibility

Fit estimates across all hardware

Open calculator

Computing compatibility...

Memory breakdown

Reference: RTX 2060 6GB

Weights4.3 GB
KV Cache0.5 GB
Runtime0.9 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” StarCoder2 7B

See also

Quantization GuideScoring MethodologyVRAM Calculator