Instructions to use tensorblock/tiny_starcoder_py-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/tiny_starcoder_py-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/tiny_starcoder_py-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/tiny_starcoder_py-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/tiny_starcoder_py-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/tiny_starcoder_py-GGUF", filename="tiny_starcoder_py-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/tiny_starcoder_py-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/tiny_starcoder_py-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/tiny_starcoder_py-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/tiny_starcoder_py-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/tiny_starcoder_py-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/tiny_starcoder_py-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/tiny_starcoder_py-GGUF:Q2_K
- SGLang
How to use tensorblock/tiny_starcoder_py-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/tiny_starcoder_py-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/tiny_starcoder_py-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/tiny_starcoder_py-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/tiny_starcoder_py-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/tiny_starcoder_py-GGUF with Ollama:
ollama run hf.co/tensorblock/tiny_starcoder_py-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/tiny_starcoder_py-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tensorblock/tiny_starcoder_py-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tensorblock/tiny_starcoder_py-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/tiny_starcoder_py-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/tiny_starcoder_py-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/tiny_starcoder_py-GGUF:Q2_K
- Lemonade
How to use tensorblock/tiny_starcoder_py-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/tiny_starcoder_py-GGUF:Q2_K
Run and chat with the model
lemonade run user.tiny_starcoder_py-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- tiny_starcoder_py-Q3_K_L.gguf +0 -3
- tiny_starcoder_py-Q3_K_S.gguf +0 -3
- tiny_starcoder_py-Q4_0.gguf +0 -3
- tiny_starcoder_py-Q4_K_M.gguf +0 -3
- tiny_starcoder_py-Q4_K_S.gguf +0 -3
- tiny_starcoder_py-Q5_0.gguf +0 -3
- tiny_starcoder_py-Q5_K_M.gguf +0 -3
- tiny_starcoder_py-Q5_K_S.gguf +0 -3
- tiny_starcoder_py-Q6_K.gguf +0 -3
- tiny_starcoder_py-Q8_0.gguf +0 -3
tiny_starcoder_py-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f53f1262eecc1553d9451357f5f87f53db5f15b4522269d727a7ff7c6e90774f
|
| 3 |
-
size 127124064
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b87c2013f593e469a2b28f7a9c53cd98b1059e7bb4cef74efd4dfa51550537f1
|
| 3 |
-
size 110089824
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9edbaa955008cb27b98762fa1524a2b41ac05fe4bb6a3ee5ed435d203398e33f
|
| 3 |
-
size 126018144
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:89d7056be705303132cc6467be7aaae89340454bb5ef3039c6723f7633d454e9
|
| 3 |
-
size 133821024
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0c1a006c051eda3d7780cc87076ed9b2e4364bb7043aad1f3b12fa16b4b3dc7f
|
| 3 |
-
size 126607968
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5aa942082d01bbd3ea864f77be20207239daedc259c905f9f1cc233c17cddc5b
|
| 3 |
-
size 141009504
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7d9f940de9501c12857eb22413bf9edc8f6511717ca14d1154630d289ac25953
|
| 3 |
-
size 145970784
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a32ec85d6ea877925632c6b0487e2ace200cbf6414e296ce9533480ca707d8a3
|
| 3 |
-
size 141009504
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1f97d5f93d03ce850ab5376ae4b571723faacc3d910eb6c6f73398be86bd22fe
|
| 3 |
-
size 156937824
|
|
|
|
|
|
|
|
|
|
|
|
tiny_starcoder_py-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3defce3e19861b5925d6bf3532e40bdd2acebec1fff20da887054f2ff049189b
|
| 3 |
-
size 195125856
|
|
|
|
|
|
|
|
|
|
|
|