VOOZH about

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

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


๐Ÿ‘ IBM
IBM

Granite Code 20B

Current
๐Ÿ‘ huggingface
HuggingFace๐Ÿ‘ ollama
Ollama
4.0KDownloads43LikesMay 2024Released8K tokensContextApache 2.0License70 StrongQuality

Granite Code 20B (20B parameters) requires approximately 17.2 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 20 GB of VRAM.

Get started

โ€” copy & paste to run locally

Copy-paste commands to run Granite Code 20B on your machine.

Run

ollama run granite-code:20b

Quick specs

Parameters20B
Architecturedense
Context8K tokens
Modalitytext
Min RAM7.8 GB
Rec. RAM12.2 GB (Q4_K_M)
LicenseApache 2.0
FamilyGranite

About this model

Granite-20B-Code-Instruct-8K is a 20B parameter model fine tuned from *Granite-20B-Code-Base-8K* on a combination of permissively licensed instruction data to enhance instruction following capabilities including logical reasoning and problem-solving skills.

  • โ€ขDevelopers:: IBM Research
  • โ€ขGitHub Repository:: ibm-granite/granite-code-models
  • โ€ขPaper:: Granite Code Models: A Family of Open Foundation Models for Code Intelligence
  • โ€ขRelease Date: May 6th, 2024
  • โ€ขLicense:: Apache 2.0

Related models

Your hardware

Detecting...

Quick picks

๐Ÿ‘ Intel
Best budgetA
Intel Arc Pro B60 24GB~$599 โ€” 22 tok/s
๐Ÿ‘ NVIDIA
Best overallS
RTX 4090 24GB~$1,599 โ€” 68 tok/s

Best hardware

Top picks for Granite Code 20B

RTX 4090 24GBS
24 GB
RTX 5090 Laptop 24GBS
24 GB
NVIDIA A30 24GBS
24 GB
RTX 3090 Ti 24GBS
24 GB
RX 7900 XTX 24GBS
24 GB

Run this model

Granite Code 20B on RTX 4090 24GBGranite Code 20B on RTX 5090 Laptop 24GBGranite Code 20B on NVIDIA A30 24GB

Quantization options

VRAM estimates by quant level

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

QuantBitsVRAMQualityFit
Q2_K
2
7.8 GB
Lowโ€”
Q3_K_S
3
9.8 GB
Lowโ€”
NVFP4
4
11.2 GB
Mediumโ€”
Q4_K_M
4
12.2 GB
Mediumโ€”
Q5_K_M
5
14.4 GB
Highโ€”
Q6_K
6
16.4 GB
Highโ€”
Q8_0
8
21.4 GB
Very Highโ€”
F16
16
41.0 GB
Maximumโ€”

Quality benchmarks

Granite Code 20B benchmark scores

Benchmark verified

Coding

SWE-bench Verifiedโ€”
HumanEval+50.5%
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

Weights12.2 GB
KV Cache3.2 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” Granite Code 20B

See also

Quantization GuideScoring MethodologyVRAM Calculator