StarCoder 2 7B TPS calculator

Open weights Hugging Face,ServiceNow,NVIDIA,BigCode 7B parameters February 2024

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 StarCoder 2 7B?

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
Hugging Face,ServiceNow,NVIDIA,BigCode
Organisation type
Industry,Industry,Industry
Country
United States of America
Published
29 February 2024
Authors
Anton Lozhkov, Raymond Li, Loubna Ben Allal, Federico Cassano, Joel Lamy-Poirier, Nouamane Tazi, Ao Tang, Dmytro Pykhtar, Jiawei Liu, Yuxiang Wei, Tianyang Liu, Max Tian, Denis Kocetkov, Arthur Zucker, Younes Belkada, Zijian Wang, Qian Liu, Dmitry Abulkhanov, Indraneil Paul, Zhuang Li, Wen-Ding Li, Megan Risdal, Jia Li, Jian Zhu, Terry Yue Zhuo, Evgenii Zheltonozhskii, Nii Osae Osae Dade, Wenhao Y…

What it does

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

Domain
Language
Task
Code generation, Code autocompletion

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
658,580,000,000 tokens

from Table 4

Epochs
5.31
Batch size
3,500,000

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

estimation is given in Table 6

How it was established
Reported

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 H100 SXM5 80GB

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

https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement https://huggingface.co/bigcode/starcoder2-7b The Responsible AI License allows users to take advantage of the model in a wide range of settings (including free use and redistribution) as long as they respect the specific use case restrictions outlined, which correspond to model applications the licensor deems ill-suited for the model or are likely to cause harm only finetune code here https://github.com/bigcode-project/star…

Hugging Face
bigcode

How it is classified

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

Likely above 10²³ FLOP
Yes
Record confidence
Confident

Sources

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

Reference
StarCoder 2 and The Stack v2: The Next Generation
Last updated
28 November 2025

The extremes

What the numbers mean

Hardware requirements in practice

Minimum card

Tesla K20c

Memory needed

4.1 GB

Fastest

484 tok/s

StarCoder 2 7B 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 entry point is the Tesla K20c: 5 GB of memory, Q3_K_M compression, roughly 28.9 tokens per second.

The quickest result comes from a B200 at around 484 tokens per second — its 8,000 GB/s of bandwidth is what buys that.

Where it came from

StarCoder 2 7B was published by Hugging Face,ServiceNow,NVIDIA,BigCode, in United States of America, in February 2024. industry,Industry,Industry is the category the publisher falls under.

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

Because its weights were released, nothing about running it depends on a provider staying available — it is yours once downloaded. It is published under the bigcode organisation on Hugging Face.

Understanding the speeds

Across every card that can run it, the middle of the range is about 26.1 tokens per second, and 559 of them clear the ten tokens per second that roughly matches reading speed.

It is a dense model, so every parameter is read for every token produced. That makes speed track memory bandwidth almost exactly — a card with twice the bandwidth generates roughly twice as fast.

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.

What went into building it

The training run consumed about 1.6 × 10²³ FLOP, on NVIDIA H100 SXM5 80GB. That figure describes the cost of creating it and has no bearing on how quickly it generates text.

It was trained on about 658,580,000,000 tokens of text.

Step by step

How to choose a GPU for StarCoder 2 7B

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

  1. 01

    Check what it needs before anything else

    Look at what StarCoder 2 7B actually needs — around 4.1 GB at Q3_K_M. No amount of processing power compensates for a card that cannot hold it.

  2. 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 StarCoder 2 7B.

  3. 03

    Decide how much compression you will accept

    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 StarCoder 2 7B by squeezing it further than you would want.

  4. 04

    Sort by speed

    Sort by speed to see how cards rank for StarCoder 2 7B. It will not match a gaming ordering — generation is bound by memory bandwidth, which is why the B200 tops it at 484 tok/s.

  5. 05

    Check the fit verdict before buying

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

  6. 06

    Check the card from the other side

    Following a card through to its own page shows every other model it can hold, which is the question that follows once StarCoder 2 7B is settled.

Answers

StarCoder 2 7B — common questions

01

What GPU do I need to run StarCoder 2 7B?

The smallest card in our catalogue that holds StarCoder 2 7B 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.

02

How fast is StarCoder 2 7B 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 StarCoder 2 7B clear that.

03

How much VRAM does StarCoder 2 7B 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.

04

Can I run StarCoder 2 7B 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.

05

Can I run StarCoder 2 7B 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.

06

Can I run StarCoder 2 7B 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.

07

Can I run StarCoder 2 7B 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.

08

Is StarCoder 2 7B open source?

Its weights are published, so StarCoder 2 7B 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.

09

How many parameters does StarCoder 2 7B have?

StarCoder 2 7B 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.

10

Who created StarCoder 2 7B?

StarCoder 2 7B was published by Hugging Face,ServiceNow,NVIDIA,BigCode, based in United States of America, categorised as industry,Industry,Industry.

11

When was StarCoder 2 7B released?

StarCoder 2 7B was published in February 2024. Capability per parameter has improved considerably since, so a newer model of the same size is often the better use of the same hardware.

12

What is StarCoder 2 7B used for?

StarCoder 2 7B works in Language, and is recorded as handling code generation, Code autocompletion. 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.

13

Where can I download StarCoder 2 7B?

Its weights are published under the bigcode organisation on Hugging Face. We do not host model files — this site calculates what hardware is needed to run them.

14

How much compute was used to train StarCoder 2 7B?

Around 1.6 × 10²³ FLOP, on NVIDIA H100 SXM5 80GB. 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.

15

Can I run StarCoder 2 7B if it does not fit in my GPU?

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

16

Would two GPUs run StarCoder 2 7B faster?

Capacity adds across cards; throughput does not. Since 589 of the cards we track already hold StarCoder 2 7B on their own, a second card is rarely the answer here.

17

Why does the quantisation differ between cards for StarCoder 2 7B?

Each card is shown running the least-compressed copy it can hold, and StarCoder 2 7B appears at 4 different compression levels across the cards that fit it. Bigger cards get the more accurate version.

18

How accurate are these StarCoder 2 7B 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.

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.