VOOZH about

URL: https://willitrunai.com/models/codellama-13b-instruct

โ‡ฑ CodeLlama 13B Instruct VRAM Requirements โ€” GPU Compatibility


๐Ÿ‘ Meta
Meta

CodeLlama 13B Instruct

Legacy
๐Ÿ‘ huggingface
HuggingFace
2.3KDownloads160LikesAug 2023Released16K tokensContextCommunityLicense60 GoodQuality

CodeLlama 13B Instruct (13B parameters) requires approximately 21.9 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 26 GB of VRAM.

Get started

โ€” copy & paste to run locally

Copy-paste commands to run CodeLlama 13B Instruct on your machine.

Run

lms load CodeLlama-13b-Instruct-hf && lms server start

Quick specs

Parameters13B
Architecturedense
Context16K tokens
Modalitycode
Min RAM5.1 GB
Rec. RAM7.9 GB (Q4_K_M)
LicenseCommunity
FamilyCodeLlama
โœ“ Code

About this model

Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the 13 instruct-tuned version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.

  • โ€ข[x] Code completion
  • โ€ข[x] Instructions / chat
  • โ€ข[ ] Python specialist

Related models

Your hardware

Detecting...

Quick picks

Best budgetA
Mac mini M4 64GB~$1,099 โ€” 10 tok/s
๐Ÿ‘ NVIDIA
Best overallA
RTX 5090 32GB~$1,999 โ€” 151 tok/s

Best hardware

Top picks for CodeLlama 13B Instruct

RTX 5090 32GBA
32 GB
RTX PRO 4500 Blackwell 32GBA
32 GB
AMD Instinct MI100 32GBA
32 GB
NVIDIA V100 32GBA
32 GB
AMD Instinct MI60 32GBA
32 GB

Run this model

CodeLlama 13B Instruct on RTX 5090 32GBCodeLlama 13B Instruct on RTX PRO 4500 Blackwell 32GBCodeLlama 13B Instruct on AMD Instinct MI100 32GB

Quantization options

VRAM estimates by quant level

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

QuantBitsVRAMQualityFit
Q2_K
2
5.1 GB
Lowโ€”
Q3_K_S
3
6.4 GB
Lowโ€”
NVFP4
4
7.3 GB
Mediumโ€”
Q4_K_M
4
7.9 GB
Mediumโ€”
Q5_K_M
5
9.4 GB
Highโ€”
Q6_K
6
10.7 GB
Highโ€”
Q8_0
8
13.9 GB
Very Highโ€”
F16
16
26.7 GB
Maximumโ€”

Quality benchmarks

CodeLlama 13B Instruct benchmark scores

Benchmark verified

Coding

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

Source: official ยท 2023-08-24

Hardware compatibility

Fit estimates across all hardware

Open calculator

Computing compatibility...

Memory breakdown

Reference: RTX 2060 6GB

Weights7.9 GB
KV Cache12.2 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” CodeLlama 13B Instruct

See also

Quantization GuideScoring MethodologyVRAM Calculator