Instructions to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/OpenCoder-1.5B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/OpenCoder-1.5B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/OpenCoder-1.5B-Instruct-GGUF", filename="OpenCoder-1.5B-Instruct-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/OpenCoder-1.5B-Instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/OpenCoder-1.5B-Instruct-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/OpenCoder-1.5B-Instruct-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": "tensorblock/OpenCoder-1.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/OpenCoder-1.5B-Instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-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": "tensorblock/OpenCoder-1.5B-Instruct-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 "tensorblock/OpenCoder-1.5B-Instruct-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": "tensorblock/OpenCoder-1.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/OpenCoder-1.5B-Instruct-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-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/OpenCoder-1.5B-Instruct-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/OpenCoder-1.5B-Instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/OpenCoder-1.5B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/OpenCoder-1.5B-Instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.OpenCoder-1.5B-Instruct-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- OpenCoder-1.5B-Instruct-Q3_K_L.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q3_K_M.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q3_K_S.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q4_0.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q4_K_M.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q4_K_S.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q5_0.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q5_K_M.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q5_K_S.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q6_K.gguf +0 -3
- OpenCoder-1.5B-Instruct-Q8_0.gguf +0 -3
OpenCoder-1.5B-Instruct-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a33a151506608a5dae9e58417143b7dfc4657a014b8582d342787fe82d43cd53
|
| 3 |
-
size 1269218400
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4716e639d9a3b7dbc5c36ee8be251001fcd6820b86162cfe5178605e4f827f48
|
| 3 |
-
size 1215225440
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f1529b7308042013a773e68b33a8db63bf697fde8616a5bb5449593ea0f06c4c
|
| 3 |
-
size 1138904160
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:11e94c0a088dc518f55e24f5e9f967d11ee0df4a0a71524e050b4d4a121b7d62
|
| 3 |
-
size 1182772320
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:59e6ae796feb09f078c64479dce0339245f798d8c8b8cca7318168c8ffe4d749
|
| 3 |
-
size 1417775200
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2c1b5376e1a0196847b25d579c403304c7008b5ac3e4c4f0ce7092a2cef9ef34
|
| 3 |
-
size 1359033440
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:39b256c51f07313941904ed8ecd2f975f02121ede9826240db2b5ea04cb188d9
|
| 3 |
-
size 1393905760
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:69dc259a6cc0dff53f30873ba4e6815703a179c08949250dfd83b2eda4b47a3c
|
| 3 |
-
size 1519578720
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:860f5cc9eb302b217bd7590a2fa06ea17a338b8d0412835158d40c3bb61585e7
|
| 3 |
-
size 1478828640
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3c70b6e76d2b63a288c3133a839f82000ec1ee800e3cc60930b8d9e00db7f4b1
|
| 3 |
-
size 1947311200
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-1.5B-Instruct-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9524d936b94051181e30a2dec157d1b319a23984154a90ff0f892875599cdb21
|
| 3 |
-
size 2027306080
|
|
|
|
|
|
|
|
|
|
|
|