Model reference · open weights
gpt_bigcode-santacoder is an open-weight language model from bigcode, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
SantaCoder Play with the model on the SantaCoder Space Demo. Table of Contents 1. Model Summary 2. Use 3. Limitations 4. Training 5. License 6. Citation Model Summary 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 - Repository: bigcode/Megatron-LM - Project Website: bigcode-project.org - Paper: 🎅SantaCoder: Don't reach for the stars!🌟 - Point of Contact: contact@bigcode-project.org - Languages: Python, Java, and JavaScript There are two versions (branches) of the model: main: Uses the gptbigcode model. Requires the bigcode fork of transformers. maincustom: Packaged with its modeling code. Requires transformers=4.27. Alternatively, it can run on older versions by setting the configuration parameter activationfunction = "gelupytorchtanh". Use Intended use 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. Attribution & Other Requirements 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. Limitations 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. Training Model - Architecture: GPT-2 model with multi-query attention an
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | bigcode |
|---|---|
| Type | Language models |
| Parameters (lead) | 1.1B |
| Context | 2k tokens |
| Variants | 1 |
| Runs with | transformers |
| Released | 2023-04-06 |
| Popularity | 40k downloads / month |
| Likes | 28 |
| Licence | Open weights |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| gpt_bigcode-santacoder | 1.1B | BF16 | ~2.6 GB | ✓ | Weights ↗ |
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.18 |
| text-generation | MultiPL HumanEval (Python) | pass@10 | 0.29 |
| text-generation | MultiPL HumanEval (Python) | pass@100 | 0.49 |
| text-generation | MultiPL MBPP (Python) | pass@1 | 0.35 |
| text-generation | MultiPL MBPP (Python) | pass@10 | 0.58 |
| text-generation | MultiPL MBPP (Python) | pass@100 | 0.77 |
| text-generation | MultiPL HumanEval (JavaScript) | pass@1 | 0.16 |
| text-generation | MultiPL HumanEval (JavaScript) | pass@10 | 0.27 |
| text-generation | MultiPL HumanEval (JavaScript) | pass@100 | 0.47 |
| text-generation | MultiPL MBPP (Javascript) | pass@1 | 0.28 |
| text-generation | MultiPL MBPP (Javascript) | pass@10 | 0.51 |
| text-generation | MultiPL MBPP (Javascript) | pass@100 | 0.7 |
| text-generation | MultiPL HumanEval (Java) | pass@1 | 0.15 |
| text-generation | MultiPL HumanEval (Java) | pass@10 | 0.26 |
| text-generation | MultiPL HumanEval (Java) | pass@100 | 0.41 |
| text-generation | MultiPL MBPP (Java) | pass@1 | 0.28 |
| text-generation | MultiPL MBPP (Java) | pass@10 | 0.44 |
| text-generation | MultiPL MBPP (Java) | pass@100 | 0.59 |
| text-generation | HumanEval FIM (Python) | single_line | 0.44 |
| text-generation | MultiPL HumanEval FIM (Java) | single_line | 0.62 |
| text-generation | MultiPL HumanEval FIM (JavaScript) | single_line | 0.6 |
| text-generation | CodeXGLUE code-to-text (Python) | BLEU | 18.13 |
Using it via the API
Once AxForge deploys gpt-bigcode-santacoder for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (gpt-bigcode-santacoder below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/chat/completions \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-bigcode-santacoder","messages":[{"role":"user","content":"Hello"}]}'
Details
Languages
Trained / evaluated on
Tags
Licence
Open weights under openrail — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗