CodeGen2.5 TPS calculator

Open weights Salesforce 7B parameters July 2023

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

589 cards that can run it

818 cards we hold specifications for

Smallest card that fits

Tesla K20c

5 GB · Q3_K_M · 28.9 tok/s

Fastest card

B200

484 tok/s · 180 GB

Which GPUs can run CodeGen2.5?

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.

589 cards match

Calculating
Needs Quantisation Fit
484 tok/s

290–774 · low confidence

B200 NVIDIA 180 GB 8,000 GB/s Jan 2024 8.2 GB Q8_0 Comfortable
484 tok/s

290–774 · low confidence

B300 NVIDIA 288 GB 8,000 GB/s Sep 2025 8.2 GB Q8_0 Comfortable
387 tok/s

232–618 · low confidence

Radeon Instinct MI350X AMD 288 GB 8,190 GB/s Jan 2025 8.2 GB Q8_0 Comfortable
387 tok/s

232–618 · low confidence

Radeon Instinct MI355X AMD 288 GB 8,190 GB/s Jan 2025 8.2 GB Q8_0 Comfortable
309 tok/s

185–495 · low confidence

Radeon Instinct MI300 AMD 128 GB 6,550 GB/s Jan 2023 8.2 GB Q8_0 Comfortable
296 tok/s

178–473 · low confidence

H200 NVL NVIDIA 141 GB 4,890 GB/s Nov 2024 8.2 GB Q8_0 Comfortable
296 tok/s

178–473 · low confidence

H200 SXM 141 GB NVIDIA 141 GB 4,890 GB/s Nov 2024 8.2 GB Q8_0 Comfortable
283 tok/s

170–453 · low confidence

Radeon Instinct MI325X AMD 256 GB 6,000 GB/s Oct 2024 8.2 GB Q8_0 Comfortable
251 tok/s

151–402 · low confidence

Radeon Instinct MI300A AMD 128 GB 5,325 GB/s Dec 2023 8.2 GB Q8_0 Comfortable
251 tok/s

151–402 · low confidence

Radeon Instinct MI300X AMD 192 GB 5,325 GB/s Dec 2023 8.2 GB Q8_0 Comfortable
251 tok/s

151–402 · low confidence

Radeon Instinct MI308X AMD 192 GB 5,325 GB/s Dec 2023 8.2 GB Q8_0 Comfortable
238 tok/s

143–381 · low confidence

H100 NVL 94 GB NVIDIA 94 GB 3,940 GB/s Mar 2023 8.2 GB Q8_0 Comfortable
203 tok/s

122–325 · low confidence

H100 PCIe 96 GB NVIDIA 96 GB 3,360 GB/s Mar 2023 8.2 GB Q8_0 Comfortable
203 tok/s

122–325 · low confidence

H100 SXM5 80 GB NVIDIA 80 GB 3,360 GB/s Oct 2022 8.2 GB Q8_0 Comfortable
203 tok/s

122–325 · low confidence

H100 SXM5 94 GB NVIDIA 94 GB 3,360 GB/s Mar 2023 8.2 GB Q8_0 Comfortable
203 tok/s

122–325 · low confidence

H100 SXM5 96 GB NVIDIA 96 GB 3,360 GB/s Mar 2023 8.2 GB Q8_0 Comfortable
203 tok/s

122–325 · low confidence

H800 SXM5 NVIDIA 80 GB 3,360 GB/s Mar 2023 8.2 GB Q8_0 Comfortable
155 tok/s

93–248 · low confidence

Radeon Instinct MI250 AMD 128 GB 3,280 GB/s Nov 2021 8.2 GB Q8_0 Comfortable
155 tok/s

93–248 · low confidence

Radeon Instinct MI250X AMD 128 GB 3,280 GB/s Nov 2021 8.2 GB Q8_0 Comfortable
131 tok/s

79–210 · low confidence

CMP 170HX 8 GB NVIDIA 8 GB 1,490 GB/s Sep 2021 6.6 GB Q6_K Tight
129 tok/s

77–206 · low confidence

Data Center GPU Max 1550 Intel 128 GB 3,280 GB/s Jan 2023 8.2 GB Q8_0 Comfortable
126 tok/s

76–202 · low confidence

Data Center GPU Max Subsystem Intel 128 GB 3,210 GB/s Jan 2023 8.2 GB Q8_0 Comfortable
123 tok/s

74–197 · low confidence

A100 SXM4 80 GB NVIDIA 80 GB 2,040 GB/s Nov 2020 8.2 GB Q8_0 Comfortable
123 tok/s

74–197 · low confidence

A100X NVIDIA 80 GB 2,040 GB/s Jun 2021 8.2 GB Q8_0 Comfortable
123 tok/s

74–197 · low confidence

A800 SXM4 80 GB NVIDIA 80 GB 2,040 GB/s Aug 2022 8.2 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
Organisation type
Industry
Country
United States of America
Published
6 July 2023
Authors
Erik Nijkamp, Hiroaki Hayashi, Yingbo Zhou, Caiming Xiong

What it does

The problem areas the model was built for. A model can carry several of each.

Domain
Language
Task
Code generation

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
7B

7B

Training data
300,000,000,000 tokens

"an epoch constitutes about 300B tokens"

Epochs
4.66

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
5.9 × 10²² FLOP

7B parameters, trained on 1.4T tokens 7 billion * 1.4 trillion * 6 = 5.9e22

How it was established
Operation counting

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)

How it is classified

Labels the source dataset applies when tracking notable models, and how confident it is in the entry.

Record confidence
Confident

Sources

Where this record came from and when it was last checked.

Reference
CodeGen2.5: Small, but mighty
Last updated
28 November 2025

The extremes

What the numbers mean

What you need to run it

Minimum card

Tesla K20c

Memory needed

4.1 GB

Fastest

484 tok/s

CodeGen2.5 is small enough at 7B parameters that hardware is rarely the obstacle — 589 of the cards we track can run it, including cards several years old.

The least hardware that works is a Tesla K20c. Its 5 GB is enough at Q3_K_M compression, giving roughly 28.9 tokens per second.

At the other end, a B200 generates roughly 484 tokens per second on it, on the strength of 8,000 GB/s of memory bandwidth.

Background

CodeGen2.5 was published by Salesforce, in United States of America, in July 2023. The organisation is categorised as industry.

It works in Language, and is recorded as doing code generation.

The weights are published, so it can be downloaded and run on your own hardware indefinitely, offline, with no account attached.

Reading the throughput figures

The median result is around 26.1 tokens per second; 559 cards produce text faster than most people read it.

Every weight participates in every token here, so bandwidth is the whole story: the ranking below is effectively a ranking of memory throughput.

Without the attention layout on record, the memory column is an approximation. It is close enough to choose hardware by, and least reliable at long context.

Training and provenance

Training it took roughly 5.9 × 10²² FLOP of computation — a measure of what producing the model cost, not of how fast it answers.

The training set ran to roughly 300,000,000,000 tokens.

Step by step

How to choose a GPU for CodeGen2.5

The table above has already assessed every card we hold specifications for against this model. Getting to your answer takes six steps.

  1. 01

    Start from the memory column

    Every card here has been checked against CodeGen2.5 — around 4.1 GB at Q3_K_M. Capacity is the gate — a card either holds it or it does not.

  2. 02

    Match the context to your actual use

    Longer conversations cost memory on top of what the weights need. Move the slider to your real working length before trusting any row for CodeGen2.5.

  3. 03

    Choose how far you will compress it

    Each card runs the least-compressed copy it can hold — Q3_K_M on the smallest card that fits. Setting a floor drops the cards that only manage CodeGen2.5 by squeezing it further than you would want.

  4. 04

    Compare tokens per second, not specifications

    The speed ordering for CodeGen2.5 is effectively an ordering by memory bandwidth, which is why the B200 tops it at 484 tok/s.

  5. 05

    Check the fit verdict before buying

    Tight means CodeGen2.5 loads and works, with no room to raise the context later. Comfortable means you can. The difference matters more than a few tokens per second.

  6. 06

    Open the card you have settled on

    Each card page repeats this sweep for every model we hold. It answers what else the hardware is good for, beyond CodeGen2.5.

Answers

CodeGen2.5 — common questions

01

How accurate are these CodeGen2.5 speed estimates?

They are calculated from specifications rather than measured, and each carries a range — 290–774 tok/s on the B200, for instance. The same model and card vary by thirty to fifty per cent depending on the inference software and its version.

02

What GPU do I need to run CodeGen2.5?

The smallest card in our catalogue that holds CodeGen2.5 is the Tesla K20c, with 5 GB of memory. It runs the model at Q3_K_M using about 4.1 GB, and produces roughly 28.9 tokens per second. 589 cards in total can run it.

03

How fast is CodeGen2.5 on a GPU?

It depends on the card. The quickest we calculate is a B200 at about 484 tokens per second; the slowest that still runs it manages considerably less. Reading speed is around ten tokens per second, and 559 of the cards that can run CodeGen2.5 clear that.

04

How much VRAM does CodeGen2.5 need?

About 4.1 GB at Q3_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.

05

Can I run CodeGen2.5 on a 8 GB GPU?

Yes. A CMP 170HX 8 GB with 8 GB runs it at Q6_K, using about 6.6 GB and generating roughly 131 tokens per second — a tight fit.

06

Can I run CodeGen2.5 on a 12 GB GPU?

Yes. A GeForce RTX 3080 Ti with 12 GB runs it at Q8_0, using about 8.2 GB and generating roughly 55.2 tokens per second — a comfortable fit.

07

Can I run CodeGen2.5 on a 16 GB GPU?

Yes. A Tesla V100 SXM2 16 GB with 16 GB runs it at Q8_0, using about 8.2 GB and generating roughly 68.4 tokens per second — a comfortable fit.

08

Can I run CodeGen2.5 on a 24 GB GPU?

Yes. A GeForce RTX 5090 D V2 with 24 GB runs it at Q8_0, using about 8.2 GB and generating roughly 81.1 tokens per second — a comfortable fit.

09

Is CodeGen2.5 open source?

Its weights are published, so CodeGen2.5 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.

10

How many parameters does CodeGen2.5 have?

CodeGen2.5 has 7B parameters. 7B. 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.

11

Who created CodeGen2.5?

CodeGen2.5 was published by Salesforce, based in United States of America, categorised as industry.

12

When was CodeGen2.5 released?

CodeGen2.5 was published in July 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.

13

What is CodeGen2.5 used for?

CodeGen2.5 works in Language, and is recorded as handling code generation. These are the areas it was designed around; they describe intent rather than a hard boundary.

14

Where can I download CodeGen2.5?

The weights for CodeGen2.5 are published, though we do not hold a repository link for it. This site calculates hardware requirements rather than hosting model files.

15

How much compute was used to train CodeGen2.5?

Around 5.9 × 10²² FLOP. 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.

16

Can I run CodeGen2.5 if it does not fit in my GPU?

It can be split between the card and system memory, but CodeGen2.5 generates painfully slowly that way — the nearest miss we calculate is short by 1.3 GB. Nothing on this page assumes offloading.

17

Would two GPUs run CodeGen2.5 faster?

A second card roughly doubles the memory available but not the generation rate. With 589 cards already able to run CodeGen2.5 alone, the case for pairing is weak.

18

Why does the quantisation differ between cards for CodeGen2.5?

Because capacity varies, so does how hard CodeGen2.5 has to be squeezed — 4 distinct levels appear in the table above. Set a minimum quality to compare at one.

Source

Original publication

Record last updated 28 November 2025

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.