Code Llama-13B TPS calculator
Each card below is assessed against this model at the context length and minimum quality you choose. Speed is an estimate for a single request, calculated from the card's memory bandwidth and the size of the model once compressed.
Calculated for this model
818 cards we hold specifications for
Smallest card that fits
Xeon Phi 7120P
16 GB · Q4_K_M · 17.2 tok/s
Fastest card
B200
261 tok/s · 180 GB
Which GPUs can run Code Llama-13B?
Set the inputs, read the answer
A longer conversation needs more memory, which can push this model off smaller cards.
Hides cards that would only fit the model by compressing it below this point.
241 cards match
Calculating| Needs | Quantisation | Fit | |||||
|---|---|---|---|---|---|---|---|
|
261
tok/s
222–313 |
B200 NVIDIA | 180 GB | 8,000 GB/s | Jan 2024 | 20.1 GB | Q8_0 | Comfortable |
|
261
tok/s
222–313 |
B300 NVIDIA | 288 GB | 8,000 GB/s | Sep 2025 | 20.1 GB | Q8_0 | Comfortable |
|
208
tok/s
125–333 · low confidence |
Radeon Instinct MI350X AMD | 288 GB | 8,190 GB/s | Jan 2025 | 20.1 GB | Q8_0 | Comfortable |
|
208
tok/s
125–333 · low confidence |
Radeon Instinct MI355X AMD | 288 GB | 8,190 GB/s | Jan 2025 | 20.1 GB | Q8_0 | Comfortable |
|
166
tok/s
100–266 · low confidence |
Radeon Instinct MI300 AMD | 128 GB | 6,550 GB/s | Jan 2023 | 20.1 GB | Q8_0 | Comfortable |
|
159
tok/s
135–191 |
H200 NVL NVIDIA | 141 GB | 4,890 GB/s | Nov 2024 | 20.1 GB | Q8_0 | Comfortable |
|
159
tok/s
135–191 |
H200 SXM 141 GB NVIDIA | 141 GB | 4,890 GB/s | Nov 2024 | 20.1 GB | Q8_0 | Comfortable |
|
152
tok/s
91–244 · low confidence |
Radeon Instinct MI325X AMD | 256 GB | 6,000 GB/s | Oct 2024 | 20.1 GB | Q8_0 | Comfortable |
|
135
tok/s
81–217 · low confidence |
Radeon Instinct MI300A AMD | 128 GB | 5,325 GB/s | Dec 2023 | 20.1 GB | Q8_0 | Comfortable |
|
135
tok/s
81–217 · low confidence |
Radeon Instinct MI300X AMD | 192 GB | 5,325 GB/s | Dec 2023 | 20.1 GB | Q8_0 | Comfortable |
|
135
tok/s
81–217 · low confidence |
Radeon Instinct MI308X AMD | 192 GB | 5,325 GB/s | Dec 2023 | 20.1 GB | Q8_0 | Comfortable |
|
128
tok/s
109–154 |
H100 NVL 94 GB NVIDIA | 94 GB | 3,940 GB/s | Mar 2023 | 20.1 GB | Q8_0 | Comfortable |
|
109
tok/s
93–131 |
H100 PCIe 96 GB NVIDIA | 96 GB | 3,360 GB/s | Mar 2023 | 20.1 GB | Q8_0 | Comfortable |
|
109
tok/s
93–131 |
H100 SXM5 80 GB NVIDIA | 80 GB | 3,360 GB/s | Oct 2022 | 20.1 GB | Q8_0 | Comfortable |
|
109
tok/s
93–131 |
H100 SXM5 94 GB NVIDIA | 94 GB | 3,360 GB/s | Mar 2023 | 20.1 GB | Q8_0 | Comfortable |
|
109
tok/s
93–131 |
H100 SXM5 96 GB NVIDIA | 96 GB | 3,360 GB/s | Mar 2023 | 20.1 GB | Q8_0 | Comfortable |
|
109
tok/s
93–131 |
H800 SXM5 NVIDIA | 80 GB | 3,360 GB/s | Mar 2023 | 20.1 GB | Q8_0 | Comfortable |
|
85.0
tok/s
72–102 |
Tesla V100 SXM2 16 GB NVIDIA | 16 GB | 1,130 GB/s | Nov 2019 | 14.0 GB | Q4_K_M | Tight |
|
83.4
tok/s
50–133 · low confidence |
Radeon Instinct MI250 AMD | 128 GB | 3,280 GB/s | Nov 2021 | 20.1 GB | Q8_0 | Comfortable |
|
83.4
tok/s
50–133 · low confidence |
Radeon Instinct MI250X AMD | 128 GB | 3,280 GB/s | Nov 2021 | 20.1 GB | Q8_0 | Comfortable |
|
72.2
tok/s
61–87 |
GeForce RTX 5080 NVIDIA | 16 GB | 960 GB/s | Jan 2025 | 14.0 GB | Q4_K_M | Tight |
|
69.5
tok/s
42–111 · low confidence |
Data Center GPU Max 1550 Intel | 128 GB | 3,280 GB/s | Jan 2023 | 20.1 GB | Q8_0 | Comfortable |
|
68.0
tok/s
41–109 · low confidence |
Data Center GPU Max Subsystem Intel | 128 GB | 3,210 GB/s | Jan 2023 | 20.1 GB | Q8_0 | Comfortable |
|
67.5
tok/s
57–81 |
Tesla V100 DGXS 16 GB NVIDIA | 16 GB | 897 GB/s | Mar 2018 | 14.0 GB | Q4_K_M | Tight |
|
67.5
tok/s
57–81 |
Tesla V100 PCIe 16 GB NVIDIA | 16 GB | 897 GB/s | Jun 2017 | 14.0 GB | Q4_K_M | Tight |
Speeds are estimates for a single request — one conversation at a time — calculated from memory bandwidth, model size and quantisation. Real throughput varies with the inference runtime and its version. Figures published by hardware vendors measure many simultaneous requests and are much higher.
On record
Full specification
Everything on record for this model. Most of it describes how it was trained rather than how it runs — useful context for judging how much work went into it, and how it compares with models built at a different scale.
Origin
Who built this model, where, and when it was published.
- Organisation
- Meta AI
- Organisation type
- Industry
- Country
- United States of America
- Published
- 14 August 2023
- Authors
- Baptiste Rozière, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Ellen Tan, Yossef (Yossi) Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, Artyom Kozhevnikov, Ivan Evtimov, Joanna Bitton, Manish Bhatt, Cristian Canton Ferrer, Aaron Grattafiori, Wenhan Xiong, Alexandre Defossez, Jade Copet, Faisal Azhar, Hugo Touvron, Gabriel Synnaeve, Louis Martin, Nicolas Usunier, Thomas Scialom
What it does
The problem areas the model was built for. A model can carry several of each.
- Domain
- Language
- Task
- Code generation
- Base model
- Llama 2-13B
Size
How large the model is and how much data it was trained on. Parameters are the figure that decides whether it fits on a given graphics card.
- Parameters
- 13B
- Training data
- 600,000,000,000 tokens
- Batch size
- 4,000,000
13B
"We train Code Llama on 500B additional tokens and Code Llama - Python further on 100B tokens"
Training compute
The arithmetic performed to train the model, measured in floating-point operations. It is a measure of what the training run cost, not of how fast the finished model answers you.
- How it was established
- Operation counting
- Fine-tuning compute
- 4.7 × 10²² FLOP
600000000000*13*10^9*6 = 4.68e+22
The training run
What it physically took to train: which chips, how many, for how long, and what that drew from the wall.
- Training hardware
- NVIDIA A100 SXM4 80 GB
Availability
Whether you can obtain the model and run it on your own hardware, which is what decides if any of the graphics-card figures on this page apply.
- Weights
- Open — downloadable
- Model access
- Open weights (restricted use)
- Training code
- Unreleased
Llama 2 license. can't use outputs to train models. https://github.com/meta-llama/llama/blob/main/LICENSE
How it is classified
Labels the source dataset applies when tracking notable models, and how confident it is in the entry.
- Record confidence
- Confident
- Citations
- 3,163
Sources
Where this record came from and when it was last checked.
- Reference
- Code Llama: Open Foundation Models for Code
- Last updated
- 25 May 2026
The extremes
The ten fastest GPUs that run Code Llama-13B
Ranked by estimated tokens per second, newest card first where speeds tie. Because generation is bound by memory bandwidth, this ordering follows bandwidth rather than any gaming benchmark.
- 01 B300 288 GB · 8,000 GB/s · Q8_0 261 tok/s
- 02 B200 180 GB · 8,000 GB/s · Q8_0 261 tok/s
- 03 Radeon Instinct MI350X 288 GB · 8,190 GB/s · Q8_0 208 tok/s
- 04 Radeon Instinct MI355X 288 GB · 8,190 GB/s · Q8_0 208 tok/s
- 05 Radeon Instinct MI300 128 GB · 6,550 GB/s · Q8_0 166 tok/s
- 06 H200 NVL 141 GB · 4,890 GB/s · Q8_0 159 tok/s
- 07 H200 SXM 141 GB 141 GB · 4,890 GB/s · Q8_0 159 tok/s
- 08 Radeon Instinct MI325X 256 GB · 6,000 GB/s · Q8_0 152 tok/s
- 09 Radeon Instinct MI300A 128 GB · 5,325 GB/s · Q8_0 135 tok/s
- 10 Radeon Instinct MI300X 192 GB · 5,325 GB/s · Q8_0 135 tok/s
The smallest GPUs that still run Code Llama-13B
The cheapest route in, by memory capacity. A tight fit runs the model but leaves nothing spare for a longer conversation.
- 01 Ryzen AI Z2 Extreme GPU 16 GB · needs 14.0 GB · Q4_K_M · tight 15.0 tok/s
- 02 Radeon RX 7700 16 GB · needs 14.0 GB · Q4_K_M · tight 36.5 tok/s
- 03 Arc Pro B50 16 GB · needs 14.0 GB · Q4_K_M · tight 11.0 tok/s
- 04 RTX PRO 2000 Blackwell 16 GB · needs 14.0 GB · Q4_K_M · tight 21.7 tok/s
- 05 Ryzen Z2 Extreme GPU 16 GB · needs 14.0 GB · Q4_K_M · tight 7.5 tok/s
- 06 Radeon RX 9060 XT 16 GB 16 GB · needs 14.0 GB · Q4_K_M · tight 18.9 tok/s
- 07 GeForce RTX 5060 Ti 16 GB 16 GB · needs 14.0 GB · Q4_K_M · tight 33.7 tok/s
- 08 GeForce RTX 5080 Mobile 16 GB · needs 14.0 GB · Q4_K_M · tight 67.4 tok/s
- 09 Radeon RX 9070 16 GB · needs 14.0 GB · Q4_K_M · tight 37.8 tok/s
- 10 Radeon RX 9070 XT 16 GB · needs 14.0 GB · Q4_K_M · tight 37.8 tok/s
What the numbers mean
Hardware requirements in practice
Minimum card
Xeon Phi 7120P
Memory needed
14.0 GB
Fastest
261 tok/s
Code Llama-13B is small enough at 13B parameters that hardware is rarely the obstacle — 241 of the cards we track can run it, including cards several years old.
The entry point is the Xeon Phi 7120P: 16 GB of memory, Q4_K_M compression, roughly 17.2 tokens per second.
The quickest result comes from a B200 at around 261 tokens per second — its 8,000 GB/s of bandwidth is what buys that.
What this model is
Code Llama-13B was published by Meta AI, in United States of America, in August 2023. The organisation is categorised as industry.
It works in Language, and is recorded as doing code generation.
It builds on Llama 2-13B, which is why it shares that model's general shape and size.
The weights being open is what puts this page in the calculator rather than only in the catalogue: it is a model you can actually hold.
What decides the speed
Across every card that can run it, the middle of the range is about 30.0 tokens per second, and 220 of them clear the ten tokens per second that roughly matches reading speed.
Every weight participates in every token here, so bandwidth is the whole story: the ranking below is effectively a ranking of memory throughput.
Because the architecture is recorded, the memory column is derived rather than estimated.
How it was trained
The training set ran to roughly 600,000,000,000 tokens.
Step by step
How to choose a GPU for Code Llama-13B
The table above has already assessed every card we hold specifications for against this model. Getting to your answer takes six steps.
-
01
Start from the memory column
The table lists every card that can hold Code Llama-13B — around 14.0 GB at Q4_K_M. That figure, not the card's headline performance, is what decides whether it runs.
-
02
Decide how long your conversations run
Longer conversations cost memory on top of what the weights need. Move the slider to your real working length before trusting any row for Code Llama-13B.
-
03
Decide how much compression you will accept
Compression is what makes Code Llama-13B fit smaller cards, at some cost in accuracy — Q4_K_M on the smallest card that fits. A minimum quality removes the ones that go too far.
-
04
Rank by throughput rather than spec sheet
Sort by speed to see how cards rank for Code Llama-13B. It will not match a gaming ordering — generation is bound by memory bandwidth, which is why the B200 tops it at 261 tok/s.
-
05
Check the fit verdict before buying
The fit column separates cards that just manage Code Llama-13B from those with room to spare. Buy for the second if the context might grow.
-
06
See what else that card runs
Following a card through to its own page shows every other model it can hold, which is the question that follows once Code Llama-13B is settled.
Answers
Code Llama-13B — common questions
Where can I download Code Llama-13B?
The weights for Code Llama-13B are published, though we do not hold a repository link for it. This site calculates hardware requirements rather than hosting model files.
Can I run Code Llama-13B if it does not fit in my GPU?
Only by offloading, which is usually a false economy: the part in system memory drags the whole thing down — the nearest miss we calculate is short by 3.2 GB. Our figures for Code Llama-13B assume it is fully resident.
Would two GPUs run Code Llama-13B faster?
Two cards buy memory rather than speed. That matters for Code Llama-13B only if one card cannot hold it — 241 can, so a second adds little.
Why does the quantisation differ between cards for Code Llama-13B?
Because capacity varies, so does how hard Code Llama-13B has to be squeezed — 3 distinct levels appear in the table above. Set a minimum quality to compare at one.
How accurate are these Code Llama-13B speed estimates?
These are estimates with real error bars. The fastest result here, 222–313 tok/s on the B200, could reasonably land anywhere in its published range depending on which runtime you use.
What GPU do I need to run Code Llama-13B?
The smallest card in our catalogue that holds Code Llama-13B is the Xeon Phi 7120P, with 16 GB of memory. It runs the model at Q4_K_M using about 14.0 GB, and produces roughly 17.2 tokens per second. 241 cards in total can run it.
How fast is Code Llama-13B on a GPU?
It depends on the card. The quickest we calculate is a B200 at about 261 tokens per second; the slowest that still runs it manages considerably less. Reading speed is around ten tokens per second, and 220 of the cards that can run Code Llama-13B clear that.
How much VRAM does Code Llama-13B need?
About 14.0 GB at Q4_K_M compression, which is what the smallest card that runs it uses. Less compression needs more: the figures in the memory column above are recalculated for each card, because each one holds the least-compressed version it can.
Can I run Code Llama-13B on a 16 GB GPU?
Yes. A Tesla V100 SXM2 16 GB with 16 GB runs it at Q4_K_M, using about 14.0 GB and generating roughly 85.0 tokens per second — a tight fit.
Can I run Code Llama-13B on a 24 GB GPU?
Yes. A GeForce RTX 5090 D V2 with 24 GB runs it at Q8_0, using about 20.1 GB and generating roughly 43.7 tokens per second — a tight fit.
Is Code Llama-13B open source?
Its weights are published, so Code Llama-13B can be downloaded and run on your own hardware. Note that open weights is not the same as open source in the full sense — it says nothing about the training data, the training code, or the commercial terms attached.
How many parameters does Code Llama-13B have?
Code Llama-13B has 13B parameters. 13B. That figure is the total, and it is what decides how much memory the model needs — roughly half a gigabyte per billion at the compression most people use.
Who created Code Llama-13B?
Code Llama-13B was published by Meta AI, based in United States of America, categorised as industry.
When was Code Llama-13B released?
Code Llama-13B was published in August 2023. Capability per parameter has improved considerably since, so a newer model of the same size is often the better use of the same hardware.
What is Code Llama-13B used for?
Code Llama-13B works in Language, and is recorded as handling code generation. A model can carry several of each, so these are the areas it was built for rather than a limit on what it will attempt.
The other direction
Looking at it from the other side?
This page starts from the model. If you already own a card and want to know everything it will run, start from the hardware instead.