Run this model with HF Jobs
Run tensorblock/starcoder2-3b-GGUF on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/tensorblock/starcoder2-3b-GGUF. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/tensorblock/starcoder2-3b-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/tensorblock/starcoder2-3b-GGUF. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use tensorblock/starcoder2-3b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/starcoder2-3b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/starcoder2-3b-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/starcoder2-3b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/starcoder2-3b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/starcoder2-3b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/starcoder2-3b-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/starcoder2-3b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/starcoder2-3b-GGUF:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tensorblock/starcoder2-3b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/starcoder2-3b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/starcoder2-3b-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use tensorblock/starcoder2-3b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/starcoder2-3b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/starcoder2-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/starcoder2-3b-GGUF:Q2_K
- SGLang
How to use tensorblock/starcoder2-3b-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/starcoder2-3b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/starcoder2-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/starcoder2-3b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/starcoder2-3b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/starcoder2-3b-GGUF with Ollama:
ollama run hf.co/tensorblock/starcoder2-3b-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/starcoder2-3b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/starcoder2-3b-GGUF:Q2_K
- Lemonade
How to use tensorblock/starcoder2-3b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/starcoder2-3b-GGUF:Q2_K
Run and chat with the model
lemonade run user.starcoder2-3b-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse filesFiles changed (14)
- .gitattributes+12
- README.mdAdded+131
- starcoder2-3b-Q2_K.ggufAdded+3
- starcoder2-3b-Q3_K_L.ggufAdded+3
- starcoder2-3b-Q3_K_M.ggufAdded+3
- starcoder2-3b-Q3_K_S.ggufAdded+3
- starcoder2-3b-Q4_0.ggufAdded+3
- starcoder2-3b-Q4_K_M.ggufAdded+3
- starcoder2-3b-Q4_K_S.ggufAdded+3
- starcoder2-3b-Q5_0.ggufAdded+3
- starcoder2-3b-Q5_K_M.ggufAdded+3
- starcoder2-3b-Q5_K_S.ggufAdded+3
- starcoder2-3b-Q6_K.ggufAdded+3
- starcoder2-3b-Q8_0.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404142434445464732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q4_0.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q5_0.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-3b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131---pipeline_tag: text-generationinference: truewidget:- text: 'def print_hello_world():' example_title: Hello world group: Pythondatasets:- bigcode/the-stack-v2-trainlicense: bigcode-openrail-mlibrary_name: transformerstags:- code- TensorBlock- GGUFbase_model: bigcode/starcoder2-3bmodel-index:- name: starcoder2-3b results: - task: type: text-generation dataset: name: CruxEval-I type: cruxeval-i metrics: - type: pass@1 value: 32.7 - task: type: text-generation dataset: name: DS-1000 type: ds-1000 metrics: - type: pass@1 value: 25.0 - task: type: text-generation dataset: name: GSM8K (PAL) type: gsm8k-pal metrics: - type: accuracy value: 27.7 - task: type: text-generation dataset: name: HumanEval+ type: humanevalplus metrics: - type: pass@1 value: 27.4 - task: type: text-generation dataset: name: HumanEval type: humaneval metrics: - type: pass@1 value: 31.7 - task: type: text-generation dataset: name: RepoBench-v1.1 type: repobench-v1.1 metrics: - type: edit-smiliarity value: 71.19---
<div style="width: auto; margin-left: auto; margin-right: auto"><img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;"></div><div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"> Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a> </p> </div></div>
## bigcode/starcoder2-3b - GGUF
This repo contains GGUF format model files for [bigcode/starcoder2-3b](https://huggingface.co/bigcode/starcoder2-3b).
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
## Prompt template
```
```
## Model file specification
| Filename | Quant type | File Size | Description || -------- | ---------- | --------- | ----------- || [starcoder2-3b-Q2_K.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q2_K.gguf) | Q2_K | 1.139 GB | smallest, significant quality loss - not recommended for most purposes || [starcoder2-3b-Q3_K_S.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q3_K_S.gguf) | Q3_K_S | 1.273 GB | very small, high quality loss || [starcoder2-3b-Q3_K_M.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q3_K_M.gguf) | Q3_K_M | 1.455 GB | very small, high quality loss || [starcoder2-3b-Q3_K_L.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q3_K_L.gguf) | Q3_K_L | 1.618 GB | small, substantial quality loss || [starcoder2-3b-Q4_0.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q4_0.gguf) | Q4_0 | 1.629 GB | legacy; small, very high quality loss - prefer using Q3_K_M || [starcoder2-3b-Q4_K_S.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q4_K_S.gguf) | Q4_K_S | 1.642 GB | small, greater quality loss || [starcoder2-3b-Q4_K_M.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q4_K_M.gguf) | Q4_K_M | 1.758 GB | medium, balanced quality - recommended || [starcoder2-3b-Q5_0.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q5_0.gguf) | Q5_0 | 1.964 GB | legacy; medium, balanced quality - prefer using Q4_K_M || [starcoder2-3b-Q5_K_S.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q5_K_S.gguf) | Q5_K_S | 1.964 GB | large, low quality loss - recommended || [starcoder2-3b-Q5_K_M.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q5_K_M.gguf) | Q5_K_M | 2.031 GB | large, very low quality loss - recommended || [starcoder2-3b-Q6_K.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q6_K.gguf) | Q6_K | 2.320 GB | very large, extremely low quality loss || [starcoder2-3b-Q8_0.gguf](https://huggingface.co/tensorblock/starcoder2-3b-GGUF/tree/main/starcoder2-3b-Q8_0.gguf) | Q8_0 | 3.003 GB | very large, extremely low quality loss - not recommended |
## Downloading instruction
### Command line
Firstly, install Huggingface Client
```shellpip install -U "huggingface_hub[cli]"```
Then, downoad the individual model file the a local directory
```shellhuggingface-cli download tensorblock/starcoder2-3b-GGUF --include "starcoder2-3b-Q2_K.gguf" --local-dir MY_LOCAL_DIR```
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
```shellhuggingface-cli download tensorblock/starcoder2-3b-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'```123version https://git-lfs.github.com/spec/v1oid sha256:e511e30dff70d90321138df28048d2872091815b4649bd3389ed67993f43699csize 1223505344123version https://git-lfs.github.com/spec/v1oid sha256:640bd290b258a12698a4ab03861ef872eb56a9ead57b43bdeeb7ede1893d7158size 1737573824123version https://git-lfs.github.com/spec/v1oid sha256:39792901e255810b983cfb3fb62477294b9647b3e6c989c6223da983b27d546asize 1562592704123version https://git-lfs.github.com/spec/v1oid sha256:699d28fde4f5144c91b9875a9b1cce684048bda2ec4775ac4404c8faecc9762bsize 1366537664123version https://git-lfs.github.com/spec/v1oid sha256:757e4b1ec0254ba80636093d586234f63ecbcf01bb67bf6dbb64076d1676a294size 1748817344123version https://git-lfs.github.com/spec/v1oid sha256:f8bc27f0dca19a6c61fcd873aaa4966d53664041b8d1e2050f20080375633e91size 1887905216123version https://git-lfs.github.com/spec/v1oid sha256:d48ae62f3d8ef360624bd097e4c529aa70ceb1ebeaa3c757f6f84ffad9a26845size 1763366336123version https://git-lfs.github.com/spec/v1oid sha256:a17172d6fda349b0edd0a214736b1baa6323d7f3b024d46fd80f34a4adeb16e2size 2108609984123version https://git-lfs.github.com/spec/v1oid sha256:10c202bac9c66d043e8dedbd3a75bed543688ea7cd74febf6569e14df0825708size 2180261312123version https://git-lfs.github.com/spec/v1oid sha256:9f86209549cdb0dd03b1ae944ff341db0ee537bff03d6530c3b1965e0c82a07bsize 2108609984123version https://git-lfs.github.com/spec/v1oid sha256:66f2c995258e2bf7f26963e53ad2f310b12875cc853196e2d0b620c425586d85size 2490889664123version https://git-lfs.github.com/spec/v1oid sha256:b47f93f04ffb77b0c37608ba8a57ebeea1aa13a7ac214dbd6709090a8d8e6374size 3224556992.gitattributes+12
README.mdAdded+131
starcoder2-3b-Q2_K.ggufAdded+3
starcoder2-3b-Q3_K_L.ggufAdded+3
starcoder2-3b-Q3_K_M.ggufAdded+3
starcoder2-3b-Q3_K_S.ggufAdded+3
starcoder2-3b-Q4_0.ggufAdded+3
starcoder2-3b-Q4_K_M.ggufAdded+3
starcoder2-3b-Q4_K_S.ggufAdded+3
starcoder2-3b-Q5_0.ggufAdded+3
starcoder2-3b-Q5_K_M.ggufAdded+3
starcoder2-3b-Q5_K_S.ggufAdded+3
starcoder2-3b-Q6_K.ggufAdded+3
starcoder2-3b-Q8_0.ggufAdded+3