Instructions to use nold/starcoder2-15b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nold/starcoder2-15b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nold/starcoder2-15b-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nold/starcoder2-15b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use nold/starcoder2-15b-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 nold/starcoder2-15b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf nold/starcoder2-15b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf nold/starcoder2-15b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf nold/starcoder2-15b-GGUF:Q4_K_M
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 nold/starcoder2-15b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf nold/starcoder2-15b-GGUF:Q4_K_M
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 nold/starcoder2-15b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf nold/starcoder2-15b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/nold/starcoder2-15b-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use nold/starcoder2-15b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nold/starcoder2-15b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nold/starcoder2-15b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nold/starcoder2-15b-GGUF:Q4_K_M
- SGLang
How to use nold/starcoder2-15b-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 "nold/starcoder2-15b-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": "nold/starcoder2-15b-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 "nold/starcoder2-15b-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": "nold/starcoder2-15b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use nold/starcoder2-15b-GGUF with Ollama:
ollama run hf.co/nold/starcoder2-15b-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use nold/starcoder2-15b-GGUF with Docker Model Runner:
docker model run hf.co/nold/starcoder2-15b-GGUF:Q4_K_M
- Lemonade
How to use nold/starcoder2-15b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nold/starcoder2-15b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.starcoder2-15b-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- 737ed73e668a45074793066c0f33a4f721b5e6ffce7adb5bbf5b33991bfaf7d3 (fe4bbc2cc6f923cbb4734ea3e4958b14d828db97) - 77126f242b4b8abcebaa2b58a3b184b0df90b8780c8ea3b5041aa6bdb9d53d8f (59c6ac36b457dcf235bc9f40854e0b3a79125e18) - beda355110530ef17efa52421a8b3a26218ebac3d0d12c875b962e1abaa36b78 (1fd2bd20a4687c9cada24f36ff704bf56d8881af) - b8b5b6974a1ce55c5844c925e5e4a3e5de9a97f8e695336862e66b673e85e813 (efd1fc9bfc6ff18eef847a3ffc191b15d02a1333) - 77cb08df6ddf89a06d2c4dcef9088937ce36f9c582d96b1cf88369a908ef4331 (56093e673cc345f05140bf14978ac1c03634d59c) - e4c0bb70d37a361b919b8438da08c6e9dc13b7b8576d567e034aa79ea44131ae (138fdec1e3c9cd8ed2e979dd504aa38754fe22d6)9c2bf04
-
initial commit
Verified signaturee923174