Run this model with HF Jobs
Run tensorblock/starcoder2-chat-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-chat-GGUF. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/tensorblock/starcoder2-chat-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/tensorblock/starcoder2-chat-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-chat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/starcoder2-chat-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/starcoder2-chat-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/starcoder2-chat-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/starcoder2-chat-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-chat-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/starcoder2-chat-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-chat-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/starcoder2-chat-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-chat-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/starcoder2-chat-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/starcoder2-chat-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use tensorblock/starcoder2-chat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/starcoder2-chat-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-chat-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/starcoder2-chat-GGUF:Q2_K
- SGLang
How to use tensorblock/starcoder2-chat-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-chat-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-chat-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-chat-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-chat-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/starcoder2-chat-GGUF with Ollama:
ollama run hf.co/tensorblock/starcoder2-chat-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/starcoder2-chat-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/starcoder2-chat-GGUF:Q2_K
- Lemonade
How to use tensorblock/starcoder2-chat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/starcoder2-chat-GGUF:Q2_K
Run and chat with the model
lemonade run user.starcoder2-chat-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse filesFiles changed (14)
- .gitattributes+12
- README.mdAdded+85
- starcoder2-chat-Q2_K.ggufAdded+3
- starcoder2-chat-Q3_K_L.ggufAdded+3
- starcoder2-chat-Q3_K_M.ggufAdded+3
- starcoder2-chat-Q3_K_S.ggufAdded+3
- starcoder2-chat-Q4_0.ggufAdded+3
- starcoder2-chat-Q4_K_M.ggufAdded+3
- starcoder2-chat-Q4_K_S.ggufAdded+3
- starcoder2-chat-Q5_0.ggufAdded+3
- starcoder2-chat-Q5_K_M.ggufAdded+3
- starcoder2-chat-Q5_K_S.ggufAdded+3
- starcoder2-chat-Q6_K.ggufAdded+3
- starcoder2-chat-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-chat-Q2_K.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q4_0.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q5_0.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q6_K.gguf filter=lfs diff=lfs merge=lfs -textstarcoder2-chat-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485---license: cc-by-nc-4.0base_model: abideen/starcoder2-chatlanguage:- enlibrary_name: transformerspipeline_tag: text-generationtags:- code- starcoder- bigcode- sft- 7b- TensorBlock- GGUF---
<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>
## abideen/starcoder2-chat - GGUF
This repo contains GGUF format model files for [abideen/starcoder2-chat](https://huggingface.co/abideen/starcoder2-chat).
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4242](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
<div style="text-align: left; margin: 20px 0;"> <a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;"> Run them on the TensorBlock client using your local machine ↗ </a></div>
## Prompt template
```
```
## Model file specification
| Filename | Quant type | File Size | Description || -------- | ---------- | --------- | ----------- || [starcoder2-chat-Q2_K.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q2_K.gguf) | Q2_K | 2.836 GB | smallest, significant quality loss - not recommended for most purposes || [starcoder2-chat-Q3_K_S.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q3_K_S.gguf) | Q3_K_S | 3.179 GB | very small, high quality loss || [starcoder2-chat-Q3_K_M.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q3_K_M.gguf) | Q3_K_M | 3.662 GB | very small, high quality loss || [starcoder2-chat-Q3_K_L.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q3_K_L.gguf) | Q3_K_L | 4.074 GB | small, substantial quality loss || [starcoder2-chat-Q4_0.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q4_0.gguf) | Q4_0 | 4.101 GB | legacy; small, very high quality loss - prefer using Q3_K_M || [starcoder2-chat-Q4_K_S.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q4_K_S.gguf) | Q4_K_S | 4.145 GB | small, greater quality loss || [starcoder2-chat-Q4_K_M.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q4_K_M.gguf) | Q4_K_M | 4.461 GB | medium, balanced quality - recommended || [starcoder2-chat-Q5_0.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q5_0.gguf) | Q5_0 | 4.969 GB | legacy; medium, balanced quality - prefer using Q4_K_M || [starcoder2-chat-Q5_K_S.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q5_K_S.gguf) | Q5_K_S | 4.969 GB | large, low quality loss - recommended || [starcoder2-chat-Q5_K_M.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q5_K_M.gguf) | Q5_K_M | 5.155 GB | large, very low quality loss - recommended || [starcoder2-chat-Q6_K.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q6_K.gguf) | Q6_K | 5.892 GB | very large, extremely low quality loss || [starcoder2-chat-Q8_0.gguf](https://huggingface.co/tensorblock/starcoder2-chat-GGUF/blob/main/starcoder2-chat-Q8_0.gguf) | Q8_0 | 7.629 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-chat-GGUF --include "starcoder2-chat-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-chat-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'```123version https://git-lfs.github.com/spec/v1oid sha256:90b6d243b875f5c906a8a0e13d3ac22f0a2fbd61daec7418570b4dac4ae3a5ebsize 2836020800123version https://git-lfs.github.com/spec/v1oid sha256:94abae7e68cb0a71d25d24dca2b98d0d1e30795b40831a4a46a84398e74c4a6fsize 4074061376123version https://git-lfs.github.com/spec/v1oid sha256:21fd16b729704bcb27ded5e8bac43c0a96c3c653eb45e0b8e1b03095e3bdffb9size 3661774400123version https://git-lfs.github.com/spec/v1oid sha256:c57e7f554c586bc56c1180f10d5eea4fa75d26701180154b3c60b1d1031ab80fsize 3178708544123version https://git-lfs.github.com/spec/v1oid sha256:2cf1ca8659cc69d0a65f9395b3f01afb63763bed553675fcc0a78d2cc233b92esize 4101193280123version https://git-lfs.github.com/spec/v1oid sha256:43d5fe4fbd4876d9f4cb70a7a0a5bf997ed5c5273a09f4f63fe72b695acd2c46size 4461280832123version https://git-lfs.github.com/spec/v1oid sha256:d8a2a538f73b54ba9c6ecaf084ad3791c88c8b20e422c8d281e504e4ed50b16csize 4144840256123version https://git-lfs.github.com/spec/v1oid sha256:9d1a5785f7564bb4dc78f3ded3840bf20b9ca19f5a468b760fe5f3a851a46ec5size 4969414208123version https://git-lfs.github.com/spec/v1oid sha256:b4a1f5979accbd10e53caf4f4c1dc84eaa8d2440ee40d502113415b9bdb8d2b8size 5154913856123version https://git-lfs.github.com/spec/v1oid sha256:a1e516d3745043875c6f00278cb1cf3d8688814fac94cbee8691dccaff3648d4size 4969414208123version https://git-lfs.github.com/spec/v1oid sha256:9aa326377cc9d4720f1232cc0c2c0d5a6ac8cf468d1b8a305888c6ca1c844772size 5891898944123version https://git-lfs.github.com/spec/v1oid sha256:c0f2eee1af9397fe2311115ad3135db51f54a436b83311326428f5a4a343c2e9size 7628930624.gitattributes+12
README.mdAdded+85
starcoder2-chat-Q2_K.ggufAdded+3
starcoder2-chat-Q3_K_L.ggufAdded+3
starcoder2-chat-Q3_K_M.ggufAdded+3
starcoder2-chat-Q3_K_S.ggufAdded+3
starcoder2-chat-Q4_0.ggufAdded+3
starcoder2-chat-Q4_K_M.ggufAdded+3
starcoder2-chat-Q4_K_S.ggufAdded+3
starcoder2-chat-Q5_0.ggufAdded+3
starcoder2-chat-Q5_K_M.ggufAdded+3
starcoder2-chat-Q5_K_S.ggufAdded+3
starcoder2-chat-Q6_K.ggufAdded+3
starcoder2-chat-Q8_0.ggufAdded+3