Instructions to use TheBloke/stable-code-3b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/stable-code-3b-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/stable-code-3b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use TheBloke/stable-code-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 TheBloke/stable-code-3b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/stable-code-3b-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 TheBloke/stable-code-3b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheBloke/stable-code-3b-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 TheBloke/stable-code-3b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheBloke/stable-code-3b-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 TheBloke/stable-code-3b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheBloke/stable-code-3b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheBloke/stable-code-3b-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use TheBloke/stable-code-3b-GGUF with Ollama:
ollama run hf.co/TheBloke/stable-code-3b-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use TheBloke/stable-code-3b-GGUF with Docker Model Runner:
docker model run hf.co/TheBloke/stable-code-3b-GGUF:Q4_K_M
- Lemonade
How to use TheBloke/stable-code-3b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheBloke/stable-code-3b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.stable-code-3b-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload README.md
Verified signature53430e2 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature8c64afd -
Upload README.md
Verified signature8e475a1 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature251c472 -
Upload README.md
Verified signature32b38e7 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signatureca63e29 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature9940a31 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature224a8ee -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signatureb0936d5 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signaturee44b33a -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature22a5923 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signaturee9d32dd -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signatured1f261b -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature1e4f986 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature41a9032 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature2a378d8 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature35ba9e1 -
GGUF model commit (made with llama.cpp commit 3856668)
Verified signature0bb040e -
initial commit
Verified signatured168f7b