VOOZH about

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

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


๐Ÿ‘ Meta
Meta

CodeLlama 7B Instruct

Legacy
๐Ÿ‘ huggingface
HuggingFace
18.2KDownloads258LikesAug 2023Released16K tokensContextCommunityLicense56 GoodQuality

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

Get started

โ€” copy & paste to run locally

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

Run

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

Quick specs

Parameters7B
Architecturedense
Context16K tokens
Modalitycode
Min RAM2.7 GB
Rec. RAM4.3 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 7B 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
RX 7600 XT 16GB~$329 โ€” 39 tok/s
Best overallA
RX 7900 XT 20GB~$899 โ€” 98 tok/s

Best hardware

Top picks for CodeLlama 7B Instruct

RX 7900 XT 20GBA
20 GB
RTX A4500 20GBA
20 GB
RTX 3090 24GBA
24 GB
RTX 3090 Ti 24GBA
24 GB
RTX 4090 24GBA
24 GB

Run this model

CodeLlama 7B Instruct on RX 7900 XT 20GBCodeLlama 7B Instruct on RTX A4500 20GBCodeLlama 7B Instruct on RTX 3090 24GB

Quantization options

VRAM estimates by quant level

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

QuantBitsVRAMQualityFit
Q2_K
2
2.7 GB
Lowโ€”
Q3_K_S
3
3.4 GB
Lowโ€”
NVFP4
4
3.9 GB
Mediumโ€”
Q4_K_M
4
4.3 GB
Mediumโ€”
Q5_K_M
5
5.0 GB
Highโ€”
Q6_K
6
5.7 GB
Highโ€”
Q8_0
8
7.5 GB
Very Highโ€”
F16
16
14.3 GB
Maximumโ€”

Quality benchmarks

CodeLlama 7B Instruct benchmark scores

Benchmark verified

Coding

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

Weights4.3 GB
KV Cache7.8 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” CodeLlama 7B Instruct

See also

Quantization GuideScoring MethodologyVRAM Calculator