---
title: "starcoder"
type: "tool"
slug: "bigcode-project-starcoder"
canonical_url: "https://www.graphcanon.com/tools/bigcode-project-starcoder"
github_url: "https://github.com/bigcode-project/starcoder"
homepage_url: null
stars: 7508
forks: 528
primary_language: "Python"
license: "Apache-2.0"
archived: false
categories: ["inference-serving", "model-training", "speech-audio"]
tags: ["python"]
updated_at: "2026-07-11T23:44:00.146231+00:00"
---

# starcoder

> Home of StarCoder: fine-tuning & inference!

Home of StarCoder: fine-tuning & inference!

## Facts

- Repository: https://github.com/bigcode-project/starcoder
- Stars: 7,508 · Forks: 528 · Open issues: 103 · Watchers: 65
- Primary language: Python
- License: Apache-2.0
- Last pushed: 2024-02-27T02:05:57+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Dormant (computed 2026-07-11T23:43:57.535Z)
- Security scan: Findings present (0 critical, 0 high, 0 medium, 48 low) · last scan 2026-07-11T23:43:57.987Z
- Full report: [trust report](/tools/bigcode-project-starcoder/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/bigcode-project-starcoder/trust)

## Categories

- [Inference & Serving](/categories/inference-serving.md)
- [Model Training](/categories/model-training.md)
- [Speech & Audio](/categories/speech-audio.md)

## Tags

python

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [tensorflow](/tools/tensorflow-tensorflow.md) - An Open Source Machine Learning Framework for Everyone (★ 196,300) [Very active]
- [ollama](/tools/ollama-ollama.md) - Get up and running with various large language models using Ollama. (★ 175,936) [Very active]
- [transformers](/tools/huggingface-transformers.md) - Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models (★ 162,482) [Very active]
- [langflow](/tools/langflow-ai-langflow.md) - Langflow is a powerful tool for building and deploying AI-powered agents and workflows. (★ 151,697) [Very active]
- [open-webui](/tools/open-webui-open-webui.md) - User-friendly AI Interface (Supports Ollama, OpenAI API, ...) (★ 145,029) [Very active]
- [llama.cpp](/tools/ggml-org-llama-cpp.md) - LLM inference in C/C++ (★ 120,002) [Very active]

_+ 2 more not listed._

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

````text
## Installation
First, we have to install all the libraries listed in `requirements.txt`
```bash
pip install -r requirements.txt
```

---

## Step by step installation with conda 

Create a new conda environment and activate it
```bash
conda create -n env
conda activate env
```
Install the `pytorch` version compatible with your version of cuda [here](https://pytorch.org/get-started/previous-versions/), for example the following command works with cuda 11.6
```bash
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia
```
Install `transformers` and `peft`
```bash
conda install -c huggingface transformers 
pip install git+https://github.com/huggingface/peft.git
```
Note that you can install the latest stable version of transformers by using

```bash
pip install git+https://github.com/huggingface/transformers
```

Install `datasets`, `accelerate` and `huggingface_hub`

```bash
conda install -c huggingface -c conda-forge datasets
conda install -c conda-forge accelerate
conda install -c conda-forge huggingface_hub
```

Finally, install `bitsandbytes` and `wandb`
```bash
pip install bitsandbytes
pip install wandb
```
To get the full list of arguments with descriptions you can run the following command on any script:
```
python scripts/some_script.py --help
```
Before you run any of the scripts make sure you are logged in and can push to the hub:
```bash
huggingface-cli login
```
Make sure you are logged in `wandb`:
```bash
wandb login
```
Now that everything is done, you can clone the repository and get into the corresponding directory.

---

# Inference hardware requirements
In FP32 the model requires more than 60GB of RAM, you can load it in FP16 or BF16 in ~30GB, or in 8bit under 20GB of RAM with
```python
````

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/bigcode-project-starcoder`](/api/graphcanon/tools/bigcode-project-starcoder)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
