๐ IBM
IBM
Granite Code 20B
Current4.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 locallyCopy-paste commands to run Granite Code 20B on your machine.
Run
ollama run granite-code:20bQuick specs
Parameters20B
Architecturedense
Context8K tokens
Modalitytext
Min RAM7.8 GB
Rec. RAM12.2 GB (Q4_K_M)
LicenseApache 2.0
FamilyGranite
About this model
- โข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
๐ NVIDIA
Best budgetA
Intel Arc Pro B60 24GB~$599 โ 22 tok/sBest overallS
RTX 4090 24GB~$1,599 โ 68 tok/sBest hardware
Top picks for Granite Code 20B
Run this model
Quantization options
VRAM estimates by quant level
No hardware detected โ fit column shows raw VRAM estimates
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
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
Coding
SWE-bench Verifiedโ
HumanEval+50.5%
Aider Polyglotโ
LiveCodeBenchโ
Source: official ยท 2024-05-07
Hardware compatibility
Fit estimates across all hardware
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
