Model reference · open weights
gpt_bigcode-santacoder is an open-weight language model from bigcode. gpt_bigcode-santacoder (FP16) weighs 2.2 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the bigcode/gpt_bigcode-santacoder model card, 2026-10-01
What it is
| Released by | bigcode |
|---|---|
| Released | 2023-04-06 |
| Parameters | 1.1B |
| VRAM | 2.2 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 2K each | |||
| RTX 3060 12 GB | 349 | all 2K | 11.6 GB |
| RTX 4060 Ti 16 GB | 499 | all 2K | 15.4 GB |
| RTX 3090 24 GB | 817 | all 2K | 23.4 GB |
| RTX 4090 24 GB | 815 | all 2K | 23.4 GB |
| RTX 5090 32 GB | 1000+ | all 2K | 31.0 GB |
| L40S 48 GB | 1000+ | all 2K | 44.0 GB |
| A100 80 GB | 1000+ | all 2K | 78.2 GB |
| H100 80 GB | 1000+ | all 2K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 1000+ | all 2K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 1000+ | all 2K | 107 GB |
| H200 141 GB | 1000+ | all 2K | 138 GB |
| B200 180 GB | 1000+ | all 2K | 176 GB |
| Requests at once | 2K tokens each |
|---|---|
| 1 | 2.9 GB |
| 5 | 3.0 GB |
| 8 | 3.0 GB |
| 16 | 3.2 GB |
| 32 | 3.6 GB |
| 64 | 4.4 GB |
One card, with vLLM's small-card settings.
From the model card
Play with the model on the SantaCoder Space Demo.
This is the same model as SantaCoder but it can be loaded with transformers >=4.28.1 to use the GPTBigCode architecture. We refer the reader to the SantaCoder model page for full documentation about this model
There are two versions (branches) of the model:
main: Uses the gpt_bigcode model. Requires the bigcode fork of transformers.main_custom: Packaged with its modeling code. Requires transformers>=4.27.
Alternatively, it can run on older versions by setting the configuration parameter activation_function = "gelu_pytorch_tanh".The model was trained on GitHub code. As such it is not an instruction model and commands like "Write a function that computes the square root." do not work well.
You should phrase commands like they occur in source code such as comments (e.g. # the following function computes the sqrt) or write a function signature and docstring and let the model complete the function body.
The pretraining dataset of the model was filtered for permissive licenses only. Nevertheless, the model can generate source code verbatim from the dataset. The code's license might require attribution and/or other specific requirements that must be respected. We provide a search index that let's you search through the pretraining data to identify where generated code came from and apply the proper attribution to your code.
The model has been trained on source code in Python, Java, and JavaScript. The predominant language in source is English although other languages are also present. As such the model is capable to generate code snippets provided some context but the generated code is not guaranteed to work as intended. It can be inefficient, contain bugs or exploits.
The model is licenses under the CodeML Open RAIL-M v0.1 license. You can find the full license here.
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
Benchmarks
As published on the model card: the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| text-generation | MultiPL HumanEval (Python) | pass@1 | 0.180 |
| text-generation | MultiPL HumanEval (Python) | pass@10 | 0.290 |
| text-generation | MultiPL HumanEval (Python) | pass@100 | 0.490 |
| text-generation | MultiPL MBPP (Python) | pass@1 | 0.350 |
| text-generation | MultiPL MBPP (Python) | pass@10 | 0.580 |
| text-generation | MultiPL MBPP (Python) | pass@100 | 0.770 |
| text-generation | MultiPL HumanEval (JavaScript) | pass@1 | 0.160 |
| text-generation | MultiPL HumanEval (JavaScript) | pass@10 | 0.270 |
| text-generation | MultiPL HumanEval (JavaScript) | pass@100 | 0.470 |
| text-generation | MultiPL MBPP (Javascript) | pass@1 | 0.280 |
| text-generation | MultiPL MBPP (Javascript) | pass@10 | 0.510 |
| text-generation | MultiPL MBPP (Javascript) | pass@100 | 0.700 |
| text-generation | MultiPL HumanEval (Java) | pass@1 | 0.150 |
| text-generation | MultiPL HumanEval (Java) | pass@10 | 0.260 |
| text-generation | MultiPL HumanEval (Java) | pass@100 | 0.410 |
| text-generation | MultiPL MBPP (Java) | pass@1 | 0.280 |
| text-generation | MultiPL MBPP (Java) | pass@10 | 0.440 |
| text-generation | MultiPL MBPP (Java) | pass@100 | 0.590 |
| text-generation | HumanEval FIM (Python) | single_line | 0.440 |
| text-generation | MultiPL HumanEval FIM (Java) | single_line | 0.620 |
| text-generation | MultiPL HumanEval FIM (JavaScript) | single_line | 0.600 |
| text-generation | CodeXGLUE code-to-text (Python) | BLEU | 18.130 |