VOOZH about

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

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


๐Ÿ‘ IBM
IBM

Granite Code 34B

Current
๐Ÿ‘ huggingface
HuggingFace๐Ÿ‘ ollama
Ollama
May 2024Released8K tokensContextApache 2.0License64 GoodQuality

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

Get started

โ€” copy & paste to run locally

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

Run

ollama run granite-code:34b

Quick specs

Parameters34B
Architecturedense
Context8K tokens
Modalitytext
Min RAM13.3 GB
Rec. RAM20.7 GB (Q4_K_M)
LicenseApache 2.0
FamilyGranite
โœ“ Code

About this model

Granite Code 34B is IBM's largest code generation model, strong across 100+ programming languages.

Related models

Your hardware

Detecting...

Quick picks

Best budgetA
Mac mini M4 64GB~$1,099 โ€” 8 tok/s
๐Ÿ‘ NVIDIA
Best overallA
NVIDIA A100 40GB~$10,000 โ€” 68 tok/s

Best hardware

Top picks for Granite Code 34B

NVIDIA A100 40GBA
40 GB
RTX PRO 5000 Blackwell 48GBA
48 GB
MacBook Pro M4 Max 64GBA
64 GB
RTX 6000 Ada 48GBA
48 GB
RTX 5090 32GBA
32 GB

Run this model

Granite Code 34B on NVIDIA A100 40GBGranite Code 34B on RTX PRO 5000 Blackwell 48GBGranite Code 34B on MacBook Pro M4 Max 64GB

Quantization options

VRAM estimates by quant level

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

QuantBitsVRAMQualityFit
Q2_K
2
13.3 GB
Lowโ€”
Q3_K_S
3
16.7 GB
Lowโ€”
NVFP4
4
19.0 GB
Mediumโ€”
Q4_K_M
4
20.7 GB
Mediumโ€”
Q5_K_M
5
24.5 GB
Highโ€”
Q6_K
6
27.9 GB
Highโ€”
Q8_0
8
36.4 GB
Very Highโ€”
F16
16
69.7 GB
Maximumโ€”

Quality benchmarks

Granite Code 34B benchmark scores

Benchmark verified

Coding

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

Weights20.7 GB
KV Cache3.7 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” Granite Code 34B

See also

Quantization GuideScoring MethodologyVRAM Calculator