Instructions to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF", device_map="auto") - llama-cpp-python
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF", filename="starcoder2-15b-instruct-v0.1-IQ2_XS.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-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 lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf lmstudio-community/starcoder2-15b-instruct-v0.1-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 lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf lmstudio-community/starcoder2-15b-instruct-v0.1-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 lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf lmstudio-community/starcoder2-15b-instruct-v0.1-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 lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M
- SGLang
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-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 "lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with Ollama:
ollama run hf.co/lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M
- Unsloth Studio
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-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 lmstudio-community/starcoder2-15b-instruct-v0.1-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 lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M
- Lemonade
How to use lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lmstudio-community/starcoder2-15b-instruct-v0.1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.starcoder2-15b-instruct-v0.1-GGUF-Q4_K_M
List all available models
lemonade list
Remove some extra sizes
Browse files- starcoder2-15b-instruct-v0.1-IQ1_M.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ1_S.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ2_M.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ2_S.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ2_XXS.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ3_M.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ3_S.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ3_XS.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ3_XXS.gguf +0 -3
- starcoder2-15b-instruct-v0.1-IQ4_NL.gguf +0 -3
- starcoder2-15b-instruct-v0.1-Q3_K_M.gguf +0 -3
- starcoder2-15b-instruct-v0.1-Q3_K_S.gguf +0 -3
- starcoder2-15b-instruct-v0.1-Q4_K_S.gguf +0 -3
- starcoder2-15b-instruct-v0.1-Q5_K_S.gguf +0 -3
- starcoder2-15b-instruct-v0.1.imatrix +0 -3
starcoder2-15b-instruct-v0.1-IQ1_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:37c51fe3e4ba06e360d6650d11bb8827ff8bec8ba29859caf50839cd095d5d51
|
| 3 |
-
size 3862366912
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ1_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ebceae4b7b93d2d7a0d3ea2e14b36cf2e15c9fa01588e08936eaa6aae464b40e
|
| 3 |
-
size 3558607552
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ2_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6e06c9a287126a493138b6f7ba2f47c0a077fe0a409aadfdc4198e0a2ef47dac
|
| 3 |
-
size 5545528000
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ2_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:01ed35686b6f52d84af7c078729c339385df8bde2b7442058079388178b71401
|
| 3 |
-
size 5140515520
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ2_XXS.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9722354af39df5ba4983822bcd9d0f2e33fd843bfbf248f8cda905ba888ee99a
|
| 3 |
-
size 4368632512
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ3_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7108c47f750157186d65c37c2b73398844521f5658f2fdc1a66e8dca39ec0a05
|
| 3 |
-
size 7303989952
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ3_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2e355a1c531a01bebd93407d6cdf02be2e1a17b78ef8ebec13497599dd199d16
|
| 3 |
-
size 7003179712
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ3_XS.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:82f0076d5433693524abc554646f62462c4d9ae8f01eefc30ea991d941f79ac6
|
| 3 |
-
size 6714165952
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ3_XXS.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d2a4cf682452d237b2657dcdf8c9a1234efa025e176750e935f43711a8b7008a
|
| 3 |
-
size 6217927360
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-IQ4_NL.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:586453c2e30800f435ec1b4eebc702d44cd9f75a0534027b35831481e4f57159
|
| 3 |
-
size 9081129664
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a5b88ee7416e945d8378a9056ea211157d29add118b6b3e2d61cd6ee2b5d77ab
|
| 3 |
-
size 8044415680
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dbb0ae8ac8d4cf9aec827dfa8e9b80dcab43da638b0bf2419823df40452f1eda
|
| 3 |
-
size 6986468032
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9456846962942949c44e2cea91fe6dc84bcdb07c02bcc7aadab50044934f0c28
|
| 3 |
-
size 9161345728
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dcb1b62cd597acd7496b76c366256ab5ffb51e365541b7e55ef21716bff526d9
|
| 3 |
-
size 11022043840
|
|
|
|
|
|
|
|
|
|
|
|
starcoder2-15b-instruct-v0.1.imatrix
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cf193e0ab6b38cdcfa22c1ea83676420fd6d351d72b93a10642842fdc6fe6114
|
| 3 |
-
size 8855304
|
|
|
|
|
|
|
|
|
|
|
|