CodeGeeX TPS calculator

Open weights Z.ai (Zhipu AI),Tsinghua University 13B parameters June 2022

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

509 cards that can run it

818 cards we hold specifications for

Smallest card that fits

Xeon Phi 5110P

8 GB · Q3_K_M · 18.3 tok/s

Fastest card

B200

261 tok/s · 180 GB

Which GPUs can run CodeGeeX?

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.

509 cards match

Calculating
Needs Quantisation Fit
261 tok/s

156–417 · low confidence

B200 NVIDIA 180 GB 8,000 GB/s Jan 2024 14.6 GB Q8_0 Comfortable
261 tok/s

156–417 · low confidence

B300 NVIDIA 288 GB 8,000 GB/s Sep 2025 14.6 GB Q8_0 Comfortable
208 tok/s

125–333 · low confidence

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

125–333 · low confidence

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

100–266 · low confidence

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

96–255 · low confidence

H200 NVL NVIDIA 141 GB 4,890 GB/s Nov 2024 14.6 GB Q8_0 Comfortable
159 tok/s

96–255 · low confidence

H200 SXM 141 GB NVIDIA 141 GB 4,890 GB/s Nov 2024 14.6 GB Q8_0 Comfortable
152 tok/s

91–244 · low confidence

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

81–217 · low confidence

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

81–217 · low confidence

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

81–217 · low confidence

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

79–210 · low confidence

CMP 170HX 8 GB NVIDIA 8 GB 1,490 GB/s Sep 2021 7.1 GB Q3_K_M Tight
128 tok/s

77–205 · low confidence

H100 NVL 94 GB NVIDIA 94 GB 3,940 GB/s Mar 2023 14.6 GB Q8_0 Comfortable
117 tok/s

70–188 · low confidence

CMP 170HX 10 GB NVIDIA 10 GB 1,560 GB/s Sep 2021 8.6 GB Q4_K_M Tight
109 tok/s

66–175 · low confidence

H100 PCIe 96 GB NVIDIA 96 GB 3,360 GB/s Mar 2023 14.6 GB Q8_0 Comfortable
109 tok/s

66–175 · low confidence

H100 SXM5 80 GB NVIDIA 80 GB 3,360 GB/s Oct 2022 14.6 GB Q8_0 Comfortable
109 tok/s

66–175 · low confidence

H100 SXM5 94 GB NVIDIA 94 GB 3,360 GB/s Mar 2023 14.6 GB Q8_0 Comfortable
109 tok/s

66–175 · low confidence

H100 SXM5 96 GB NVIDIA 96 GB 3,360 GB/s Mar 2023 14.6 GB Q8_0 Comfortable
109 tok/s

66–175 · low confidence

H800 SXM5 NVIDIA 80 GB 3,360 GB/s Mar 2023 14.6 GB Q8_0 Comfortable
83.4 tok/s

50–133 · low confidence

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

50–133 · low confidence

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

42–111 · low confidence

Data Center GPU Max 1550 Intel 128 GB 3,280 GB/s Jan 2023 14.6 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 14.6 GB Q8_0 Comfortable
67.5 tok/s

41–108 · low confidence

RTX A5000-8Q NVIDIA 8 GB 768 GB/s Apr 2021 7.1 GB Q3_K_M Tight
66.5 tok/s

40–106 · low confidence

A100 SXM4 80 GB NVIDIA 80 GB 2,040 GB/s Nov 2020 14.6 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
Z.ai (Zhipu AI),Tsinghua University
Organisation type
Industry,Academia
Country
China
Published
22 June 2022

What it does

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

Domain
Language
Task
Code generation
Approach
Self-supervised learning

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

"We introduce CodeGeeX, a large-scale multilingual code generation model with 13 billion parameters"

Training data
850,000,000,000 tokens

As of June 22, 2022, CodeGeeX has been trained on more than 850 billion tokens

Batch size
6,291,456

Table 3. 2048 * 3072

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

Assume 1 epoch on 850B tokens. C=6DN=6*850B*13B https://www.wolframalpha.com/input?i=6+*+13+billion+*+850+billion

How it was established
Operation counting

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
Huawei Ascend 910
Wall-clock time
156 hours

Assume 30% utilization on 1536 Ascend 910 calculating in FP16. https://www.wolframalpha.com/input?i=6+*+13+billion+*+850+billion+FLOP+%2F+%280.30*1536*256+TFLOPS%29 If they used INT8 precision, the training time would be half of this.

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
Open source

Training code is Apache 2.0. pretrain code here: https://github.com/THUDM/CodeGeeX/blob/main/scripts/pretrain_codegeex.sh Model has a restricted license: https://github.com/THUDM/CodeGeeX/blob/main/MODEL_LICENSE data partially open (The Pile)

How it is classified

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

Foundation model
Yes
Record confidence
Confident

Sources

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

Last updated
28 November 2025

The extremes

What the numbers mean

What it takes to run this model

Minimum card

Xeon Phi 5110P

Memory needed

7.1 GB

Fastest

261 tok/s

CodeGeeX is small enough at 13B parameters that hardware is rarely the obstacle — 509 of the cards we track can run it, including cards several years old.

The smallest card that holds it is the Xeon Phi 5110P with 8 GB, running it at Q3_K_M and producing around 18.3 tokens per second.

Top of the range is the B200, at roughly 261 tokens per second thanks to 8,000 GB/s of bandwidth.

Where it came from

CodeGeeX was published by Z.ai (Zhipu AI),Tsinghua University, in China, in June 2022. The organisation is categorised as industry,Academia.

It works in Language, and is recorded as doing 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.

Understanding the speeds

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

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.

Memory here is estimated from size rather than computed from the architecture, which is not recorded for this model — the numbers are indicative rather than exact.

What went into building it

The training run consumed about 6.6 × 10²² FLOP, on Huawei Ascend 910. That figure describes the cost of creating it and has no bearing on how quickly it generates text.

Around 850,000,000,000 tokens went into training it.

Step by step

How to choose a GPU for CodeGeeX

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

    The table lists every card that can hold CodeGeeX — around 7.1 GB at Q3_K_M. That figure, not the card's headline performance, is what decides whether it runs.

  2. 02

    Set the context length you will work at

    Set the context to what you will actually use. The cache grows with the conversation, and it is the usual reason CodeGeeX stops fitting a card that seemed fine.

  3. 03

    Set a quality floor

    Compression is what makes CodeGeeX fit smaller cards, at some cost in accuracy — Q3_K_M on the smallest card that fits. A minimum quality removes the ones that go too far.

  4. 04

    Compare tokens per second, not specifications

    Ranking by tokens per second for CodeGeeX follows memory bandwidth, not core counts, which is why the B200 tops it at 261 tok/s.

  5. 05

    Look at the headroom, not just the fit

    A tight fit runs CodeGeeX but leaves nothing spare for a longer conversation; comfortable has headroom. If you expect to grow the context, buy for comfortable.

  6. 06

    See what else that card runs

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

Answers

CodeGeeX — common questions

01

How much VRAM does CodeGeeX need?

About 7.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.

02

Can I run CodeGeeX on a 8 GB GPU?

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

03

Can I run CodeGeeX on a 12 GB GPU?

Yes. A GeForce RTX 3080 Ti with 12 GB runs it at Q5_K_M, using about 10.1 GB and generating roughly 53.1 tokens per second — a tight fit.

04

Can I run CodeGeeX on a 16 GB GPU?

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

05

Can I run CodeGeeX on a 24 GB GPU?

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

06

Is CodeGeeX open source?

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

07

How many parameters does CodeGeeX have?

CodeGeeX has 13B parameters. "We introduce CodeGeeX, a large-scale multilingual code generation model with 13 billion parameters". 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.

08

Who created CodeGeeX?

CodeGeeX was published by Z.ai (Zhipu AI),Tsinghua University, based in China, categorised as industry,Academia.

09

When was CodeGeeX released?

CodeGeeX was published in June 2022. Capability per parameter has improved considerably since, so a newer model of the same size is often the better use of the same hardware.

10

What is CodeGeeX used for?

CodeGeeX 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.

11

Where can I download CodeGeeX?

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

12

How much compute was used to train CodeGeeX?

Around 6.6 × 10²² FLOP, on Huawei Ascend 910. 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.

13

Can I run CodeGeeX 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 CodeGeeX assume it is fully resident.

14

Would two GPUs run CodeGeeX faster?

Two cards buy memory rather than speed. That matters for CodeGeeX only if one card cannot hold it — 509 can, so a second adds little.

15

Why does the quantisation differ between cards for CodeGeeX?

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

16

How accurate are these CodeGeeX speed estimates?

They are calculated from specifications rather than measured, and each carries a range — 156–417 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.

17

What GPU do I need to run CodeGeeX?

The smallest card in our catalogue that holds CodeGeeX is the Xeon Phi 5110P, with 8 GB of memory. It runs the model at Q3_K_M using about 7.1 GB, and produces roughly 18.3 tokens per second. 509 cards in total can run it.

18

How fast is CodeGeeX 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 459 of the cards that can run CodeGeeX clear that.

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.