CodeT5-base 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
Tesla C1080
4 GB · Q8_0 · 168 tok/s
Fastest card
B200
15,401 tok/s · 180 GB
Which GPUs can run CodeT5-base?
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.
818 cards match
Calculating| Needs | Quantisation | Fit | |||||
|---|---|---|---|---|---|---|---|
|
15,401
tok/s
9,241–24,642 · low confidence |
B200 NVIDIA | 180 GB | 8,000 GB/s | Jan 2024 | 0.9 GB | Q8_0 | Comfortable |
|
15,401
tok/s
9,241–24,642 · low confidence |
B300 NVIDIA | 288 GB | 8,000 GB/s | Sep 2025 | 0.9 GB | Q8_0 | Comfortable |
|
12,298
tok/s
7,379–19,677 · low confidence |
Radeon Instinct MI350X AMD | 288 GB | 8,190 GB/s | Jan 2025 | 0.9 GB | Q8_0 | Comfortable |
|
12,298
tok/s
7,379–19,677 · low confidence |
Radeon Instinct MI355X AMD | 288 GB | 8,190 GB/s | Jan 2025 | 0.9 GB | Q8_0 | Comfortable |
|
9,836
tok/s
5,901–15,737 · low confidence |
Radeon Instinct MI300 AMD | 128 GB | 6,550 GB/s | Jan 2023 | 0.9 GB | Q8_0 | Comfortable |
|
9,414
tok/s
5,648–15,062 · low confidence |
H200 NVL NVIDIA | 141 GB | 4,890 GB/s | Nov 2024 | 0.9 GB | Q8_0 | Comfortable |
|
9,414
tok/s
5,648–15,062 · low confidence |
H200 SXM 141 GB NVIDIA | 141 GB | 4,890 GB/s | Nov 2024 | 0.9 GB | Q8_0 | Comfortable |
|
9,010
tok/s
5,406–14,415 · low confidence |
Radeon Instinct MI325X AMD | 256 GB | 6,000 GB/s | Oct 2024 | 0.9 GB | Q8_0 | Comfortable |
|
7,996
tok/s
4,798–12,794 · low confidence |
Radeon Instinct MI300A AMD | 128 GB | 5,325 GB/s | Dec 2023 | 0.9 GB | Q8_0 | Comfortable |
|
7,996
tok/s
4,798–12,794 · low confidence |
Radeon Instinct MI300X AMD | 192 GB | 5,325 GB/s | Dec 2023 | 0.9 GB | Q8_0 | Comfortable |
|
7,996
tok/s
4,798–12,794 · low confidence |
Radeon Instinct MI308X AMD | 192 GB | 5,325 GB/s | Dec 2023 | 0.9 GB | Q8_0 | Comfortable |
|
7,585
tok/s
4,551–12,136 · low confidence |
H100 NVL 94 GB NVIDIA | 94 GB | 3,940 GB/s | Mar 2023 | 0.9 GB | Q8_0 | Comfortable |
|
6,468
tok/s
3,881–10,350 · low confidence |
H100 PCIe 96 GB NVIDIA | 96 GB | 3,360 GB/s | Mar 2023 | 0.9 GB | Q8_0 | Comfortable |
|
6,468
tok/s
3,881–10,350 · low confidence |
H100 SXM5 80 GB NVIDIA | 80 GB | 3,360 GB/s | Oct 2022 | 0.9 GB | Q8_0 | Comfortable |
|
6,468
tok/s
3,881–10,350 · low confidence |
H100 SXM5 94 GB NVIDIA | 94 GB | 3,360 GB/s | Mar 2023 | 0.9 GB | Q8_0 | Comfortable |
|
6,468
tok/s
3,881–10,350 · low confidence |
H100 SXM5 96 GB NVIDIA | 96 GB | 3,360 GB/s | Mar 2023 | 0.9 GB | Q8_0 | Comfortable |
|
6,468
tok/s
3,881–10,350 · low confidence |
H800 SXM5 NVIDIA | 80 GB | 3,360 GB/s | Mar 2023 | 0.9 GB | Q8_0 | Comfortable |
|
4,925
tok/s
2,955–7,880 · low confidence |
Radeon Instinct MI250 AMD | 128 GB | 3,280 GB/s | Nov 2021 | 0.9 GB | Q8_0 | Comfortable |
|
4,925
tok/s
2,955–7,880 · low confidence |
Radeon Instinct MI250X AMD | 128 GB | 3,280 GB/s | Nov 2021 | 0.9 GB | Q8_0 | Comfortable |
|
4,104
tok/s
2,463–6,567 · low confidence |
Data Center GPU Max 1550 Intel | 128 GB | 3,280 GB/s | Jan 2023 | 0.9 GB | Q8_0 | Comfortable |
|
4,017
tok/s
2,410–6,427 · low confidence |
Data Center GPU Max Subsystem Intel | 128 GB | 3,210 GB/s | Jan 2023 | 0.9 GB | Q8_0 | Comfortable |
|
3,927
tok/s
2,356–6,284 · low confidence |
A100 SXM4 80 GB NVIDIA | 80 GB | 2,040 GB/s | Nov 2020 | 0.9 GB | Q8_0 | Comfortable |
|
3,927
tok/s
2,356–6,284 · low confidence |
A100X NVIDIA | 80 GB | 2,040 GB/s | Jun 2021 | 0.9 GB | Q8_0 | Comfortable |
|
3,927
tok/s
2,356–6,284 · low confidence |
A800 SXM4 80 GB NVIDIA | 80 GB | 2,040 GB/s | Aug 2022 | 0.9 GB | Q8_0 | Comfortable |
|
3,927
tok/s
2,356–6,284 · low confidence |
H100 CNX NVIDIA | 80 GB | 2,040 GB/s | Mar 2023 | 0.9 GB | Q8_0 | Comfortable |
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
- Salesforce,Nanyang Technological University
- Organisation type
- Industry,Academia
- Country
- United States of America, Singapore
- Published
- 1 November 2021
- Authors
- Yue Wang, Weishi Wang, Shafiq Joty, Steven C.H. Hoi
What it does
The problem areas the model was built for. A model can carry several of each.
- Domain
- Language
- Task
- Code generation
- Numerical format
- FP16
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
- 220M
- Training data
- tokens
- Epochs
- 150
"We build CodeT5 based on Huggingface’s T5 (Raffel et al., 2020) PyTorch implementation and employ two sizes of CodeT5-small (60M) and CodeT5-base (220M)"
"In total, we employ around 8.35 million instances for pretraining" Instances meaning code snippets/examples, not 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.
- Training compute
- 1.6 × 10²¹ FLOP
- How it was established
- Hardware
"We pre-train the model with the denoising objective for 100 epochs and bimodal dual training for further 50 epochs on a cluster of 16 NVIDIA A100 GPUs with 40G memory. The total training time for CodeT5-small and CodeT5- base is 5 and 12 days, respectively" 16 * 312 teraFLOP/s * 12 * 24 * 3600 * 0.3 (utilization assumption) = 1.56e21
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
- Wall-clock time
- 288 hours (12 days)
- Compute cost
- $3,115
"The total training time for CodeT5-small and CodeT5- base is 5 and 12 days, respectively"
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 (unrestricted)
- Training code
- Open source
BSD-3-Clause license https://github.com/salesforce/CodeT5
How it is classified
Labels the source dataset applies when tracking notable models, and how confident it is in the entry.
- Why it is tracked
- SOTA improvement
- Record confidence
- Likely
- Citations
- 1,964
"Extensive experiments show that CodeT5 yields state-of-the-art results on the fourteen sub-tasks in CodeXGLUE."
Sources
Where this record came from and when it was last checked.
- Reference
- CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
- Last updated
- 1 January 2026
The extremes
The ten fastest GPUs that run CodeT5-base
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 15,401 tok/s
- 02 B200 180 GB · 8,000 GB/s · Q8_0 15,401 tok/s
- 03 Radeon Instinct MI350X 288 GB · 8,190 GB/s · Q8_0 12,298 tok/s
- 04 Radeon Instinct MI355X 288 GB · 8,190 GB/s · Q8_0 12,298 tok/s
- 05 Radeon Instinct MI300 128 GB · 6,550 GB/s · Q8_0 9,836 tok/s
- 06 H200 NVL 141 GB · 4,890 GB/s · Q8_0 9,414 tok/s
- 07 H200 SXM 141 GB 141 GB · 4,890 GB/s · Q8_0 9,414 tok/s
- 08 Radeon Instinct MI325X 256 GB · 6,000 GB/s · Q8_0 9,010 tok/s
- 09 Radeon Instinct MI300A 128 GB · 5,325 GB/s · Q8_0 7,996 tok/s
- 10 Radeon Instinct MI300X 192 GB · 5,325 GB/s · Q8_0 7,996 tok/s
The smallest GPUs that still run CodeT5-base
The cheapest route in, by memory capacity. A tight fit runs the model but leaves nothing spare for a longer conversation.
- 01 GeForce RTX 4010 4 GB · needs 0.9 GB · Q8_0 · comfortable 185 tok/s
- 02 RTX A400 4 GB · needs 0.9 GB · Q8_0 · comfortable 185 tok/s
- 03 RTX 500 Mobile Ada Generation 4 GB · needs 0.9 GB · Q8_0 · comfortable 246 tok/s
- 04 GeForce RTX 3050 A Mobile 4 GB · needs 0.9 GB · Q8_0 · comfortable 370 tok/s
- 05 Jetson Orin Nano 4 GB 4 GB · needs 0.9 GB · Q8_0 · comfortable 65.7 tok/s
- 06 Radeon RX 6450M 4 GB · needs 0.9 GB · Q8_0 · comfortable 192 tok/s
- 07 Radeon RX 6550M 4 GB · needs 0.9 GB · Q8_0 · comfortable 216 tok/s
- 08 Radeon RX 6550S 4 GB · needs 0.9 GB · Q8_0 · comfortable 192 tok/s
- 09 Arc A310 4 GB · needs 0.9 GB · Q8_0 · comfortable 155 tok/s
- 10 Arc Pro A30M 4 GB · needs 0.9 GB · Q8_0 · comfortable 160 tok/s
What the numbers mean
Hardware requirements in practice
Minimum card
Tesla C1080
Memory needed
0.9 GB
Fastest
15,401 tok/s
CodeT5-base reaches a parameter count of 220M. That is small enough that hardware is rarely the obstacle, including on cards several years old. The number of cards we track that can run it: 818.
The entry point is Tesla C1080, with a memory capacity of 4 GB, running it at a compression of Q8_0 and producing around 168 tokens per second.
At the other end sits B200, generating roughly 15,401 tokens per second on the strength of a memory bandwidth of 8,000 GB/s.
What this model is
CodeT5-base was published by Salesforce,Nanyang Technological University, in the country recorded as United States of America, during November 2021. The category the publisher falls under is industry,Academia.
It works in the domain of Language, and is recorded as performing the task of code generation.
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
The median result is around 432.5 tokens per second. Exceeding reading speed outright: 818 of them.
Being dense, it reads all of itself per token, which is why the ordering by speed below follows the ordering by memory bandwidth so closely.
Its internal architecture is not on file, so memory is approximated from the parameter count and marked accordingly. Expect the real figure to differ, more so at long context.
Training and provenance
The training run consumed about 1.6 × 10²¹ FLOP, on hardware recorded as NVIDIA A100. That figure measures what producing the model cost, and has no bearing on how fast it answers.
The reason it appears in this catalogue at all: sOTA improvement.
Step by step
How to choose a GPU for CodeT5-base
The table above has already assessed every card we hold specifications for against this model. Getting to your answer takes six steps.
-
01
Read the memory figure first
Start from what it actually needs, which is the requirement of CodeT5-base, needing around 0.9 GB at a compression of Q8_0. Capacity is the gate — a card either holds it or it does not.
-
02
Match the context to your actual use
Set the context to what you will actually use. The cache grows with the conversation, and it is the usual reason a card that seemed fine stops fitting CodeT5-base.
-
03
Decide how much compression you will accept
Each card runs the least-compressed copy it can hold, reaching a compression of Q8_0 on the smallest card that fits. Setting a minimum quality drops the cards that only manage it by squeezing further than you would want, and holds the comparison at one level.
-
04
Rank by throughput rather than spec sheet
The speed ordering is effectively an ordering by memory bandwidth, for CodeT5-base. It will not match a gaming ordering, because generation is bound by memory bandwidth. The card topping the list is B200, at 15,401 tok/s.
-
05
Look at the headroom, not just the fit
A tight fit runs, but leaves nothing spare for a longer conversation, in the case of CodeT5-base. Comfortable means you can grow the context later. That difference matters more than a few tokens per second, so buy for comfortable if you expect to.
-
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 you have settled on CodeT5-base.
Answers
CodeT5-base — common questions
CodeT5-base— can I run it on a GPU holding 8 GB?
Yes. The card CMP 170HX 8 GB, holding 8 GB, runs it at a compression of Q8_0, using about 0.9 GB and generating roughly 2,868 tokens per second. The fit is comfortable.
CodeT5-base— can I run it on a GPU holding 12 GB?
Yes. The card GeForce RTX 3080 Ti, holding 12 GB, runs it at a compression of Q8_0, using about 0.9 GB and generating roughly 1,756 tokens per second. The fit is comfortable.
CodeT5-base— can I run it on a GPU holding 16 GB?
Yes. The card Tesla V100 SXM2 16 GB, holding 16 GB, runs it at a compression of Q8_0, using about 0.9 GB and generating roughly 2,175 tokens per second. The fit is comfortable.
CodeT5-base— can I run it on a GPU holding 24 GB?
Yes. The card GeForce RTX 5090 D V2, holding 24 GB, runs it at a compression of Q8_0, using about 0.9 GB and generating roughly 2,580 tokens per second. The fit is comfortable.
CodeT5-base— is it open source?
Its weights are published, so it 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.
CodeT5-base— how many parameters does it have?
It has a parameter count of 220M. "We build CodeT5 based on Huggingface’s T5 (Raffel et al., 2020) PyTorch implementation and employ two sizes of CodeT5-small (60M) and CodeT5-base (220M)". 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.
CodeT5-base— who created it?
It was published by Salesforce,Nanyang Technological University, based in United States of America, an organisation categorised as industry,Academia.
CodeT5-base— when was it released?
It was published in November 2021. Capability per parameter has improved considerably since, so a newer model of the same size is often the better use of the same hardware.
CodeT5-base— what is it used for?
It works in the domain of Language, and is recorded as handling the task of 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.
CodeT5-base— where can I download it?
The weights are published, though we do not hold a repository link for it. This site calculates hardware requirements rather than hosting model files.
CodeT5-base— how much compute was used to train it?
Training consumed around 1.6 × 10²¹ FLOP, on hardware recorded as NVIDIA A100. That measures what producing the model cost and says nothing about how quickly it answers once trained — inference speed comes from memory bandwidth, not from the training budget.
CodeT5-base— can I run it if it does not fit in my GPU?
It can be split between the card and system memory, but it generates painfully slowly that way. Every figure here assumes the whole model is resident on the card.
CodeT5-base— would two GPUs run it faster?
A second card roughly doubles the memory available but not the generation rate. The number already able to run it alone: 818. So a second card is rarely the answer here.
CodeT5-base— why does the quantisation differ between cards?
Because capacity varies, so does how hard it has to be squeezed. The number of distinct levels in the table above: 1. Bigger cards get the more accurate version, and the quality floor above pins the comparison to one level.
CodeT5-base— how accurate are these speed estimates?
They are calculated from specifications rather than measured, and each carries a range. One example: 9,241–24,642 tok/s on B200. The same model and card vary by thirty to fifty per cent depending on the inference software and its version.
CodeT5-base— what GPU do I need to run it?
The smallest card in our catalogue that holds it is Tesla C1080, with a memory capacity of 4 GB. It runs the model at a compression of Q8_0 using about 0.9 GB, and produces roughly 168 tokens per second. The number of cards able to run it in total: 818.
CodeT5-base— how fast is it on a GPU?
It depends on the card. The quickest we calculate is B200, at about 15,401 tokens per second; the slowest that still runs it manages considerably less. Reading speed is around ten tokens per second, and the number of cards clearing that: 818.
CodeT5-base— how much VRAM does it need?
It needs about 0.9 GB at a compression of Q8_0, 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.
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.