VOOZH about

URL: https://willitrunai.com/models/granite-code-3b

โ‡ฑ Granite Code 3B VRAM Requirements โ€” GPU Compatibility


๐Ÿ‘ IBM
IBM

Granite Code 3B

Current
๐Ÿ‘ huggingface
HuggingFace๐Ÿ‘ ollama
Ollama
May 2024Released8K tokensContextApache 2.0License40 BasicQuality

Granite Code 3B (3B parameters) requires approximately 6.1 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 Granite Code 3B on your machine.

Run

ollama run granite-code:3b

Quick specs

Parameters3B
Architecturedense
Context8K tokens
Modalitytext
Min RAM1.2 GB
Rec. RAM1.8 GB (Q4_K_M)
LicenseApache 2.0
FamilyGranite
โœ“ Code

About this model

Granite Code 3B is IBM's compact code generation model for enterprise use.

Related models

Your hardware

Detecting...

Quick picks

๐Ÿ‘ Intel
Best budgetA
Intel Arc A580 8GB~$179 โ€” 42 tok/s
๐Ÿ‘ NVIDIA
Best overallA
RTX 5060 8GB~$299 โ€” 57 tok/s

Best hardware

Top picks for Granite Code 3B

RTX 5060 8GBA
8 GB
RTX 5060 Ti 8GBA
8 GB
RTX 5050 8GBA
8 GB
RTX 4060 8GBA
8 GB
RTX 4070 Laptop 8GBA
8 GB

Run this model

Granite Code 3B on RTX 5060 8GBGranite Code 3B on RTX 5060 Ti 8GBGranite Code 3B on RTX 5050 8GB

Quantization options

VRAM estimates by quant level

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

QuantBitsVRAMQualityFit
Q2_K
2
1.2 GB
Lowโ€”
Q3_K_S
3
1.5 GB
Lowโ€”
NVFP4
4
1.7 GB
Mediumโ€”
Q4_K_M
4
1.8 GB
Mediumโ€”
Q5_K_M
5
2.2 GB
Highโ€”
Q6_K
6
2.5 GB
Highโ€”
Q8_0
8
3.2 GB
Very Highโ€”
F16
16
6.1 GB
Maximumโ€”

Quality benchmarks

Granite Code 3B benchmark scores

Benchmark verified

Coding

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

Source: official ยท 2024-05-07

Hardware compatibility

Fit estimates across all hardware

Open calculator

Computing compatibility...

Memory breakdown

Reference: RTX 2060 6GB

Weights1.8 GB
KV Cache2.5 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” Granite Code 3B

See also

Quantization GuideScoring MethodologyVRAM Calculator