Instructions to use tensorblock/OpenCoder-8B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/OpenCoder-8B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/OpenCoder-8B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/OpenCoder-8B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/OpenCoder-8B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/OpenCoder-8B-Instruct-GGUF", filename="OpenCoder-8B-Instruct-Q2_K.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 tensorblock/OpenCoder-8B-Instruct-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 tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/OpenCoder-8B-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-8B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/OpenCoder-8B-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-8B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/OpenCoder-8B-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-8B-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-8B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/OpenCoder-8B-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-8B-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-8B-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-8B-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-8B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/OpenCoder-8B-Instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/OpenCoder-8B-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-8B-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-8B-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-8B-Instruct-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/OpenCoder-8B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/OpenCoder-8B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/OpenCoder-8B-Instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.OpenCoder-8B-Instruct-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- OpenCoder-8B-Instruct-Q3_K_L.gguf +0 -3
- OpenCoder-8B-Instruct-Q3_K_S.gguf +0 -3
- OpenCoder-8B-Instruct-Q4_0.gguf +0 -3
- OpenCoder-8B-Instruct-Q4_K_M.gguf +0 -3
- OpenCoder-8B-Instruct-Q4_K_S.gguf +0 -3
- OpenCoder-8B-Instruct-Q5_0.gguf +0 -3
- OpenCoder-8B-Instruct-Q5_K_M.gguf +0 -3
- OpenCoder-8B-Instruct-Q5_K_S.gguf +0 -3
- OpenCoder-8B-Instruct-Q6_K.gguf +0 -3
- OpenCoder-8B-Instruct-Q8_0.gguf +0 -3
OpenCoder-8B-Instruct-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3cc3d78327601a3ce611b9bf0fc2286e28ceb89174c77ce7ce61f210cc888edd
|
| 3 |
-
size 4154480160
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bead544193b369833f423fe05733290919bb858f3b5bea2223a50e4552dcb710
|
| 3 |
-
size 3497023008
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dbd1d32ee90a06cf303d883f48cf572634b62b235fadd6f9b99c9509f02387ee
|
| 3 |
-
size 4476536352
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3c373dadeb05984ce592b9d8525f23d3b74c051dddd47fe65d3dfd088dacb53c
|
| 3 |
-
size 4736058912
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e97e28e2e211d00460b6f7eba830b41fc4c8609729243f07d51928520f925bfb
|
| 3 |
-
size 4507993632
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fc787f9d67d50b0bcc2651a3c4c3bbac0d84f6eb1cb2d3f399964a5ce98bc904
|
| 3 |
-
size 5398431264
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4f4e5d20501abf7697050fb0673495a32eac9c9efe59a55f6314d55b42dd6685
|
| 3 |
-
size 5532124704
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:386c76f4b7b90ea76e2ff847bc9896526ec3dbf0ba7036ba5db2f2dab08e3c0f
|
| 3 |
-
size 5398431264
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:da1a281f270ca70eb8d68ca3febb7c8be535e348af115cc5ff7c75f8e636f2a8
|
| 3 |
-
size 6377944608
|
|
|
|
|
|
|
|
|
|
|
|
OpenCoder-8B-Instruct-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:52ef44b48cd06596167ab9c0f409571a0cf4c856a23af74a2915eb5d3266298e
|
| 3 |
-
size 8259982880
|
|
|
|
|
|
|
|
|
|
|
|