Instructions to use tensorblock/CodeSteer-v1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/CodeSteer-v1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/CodeSteer-v1-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/CodeSteer-v1-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/CodeSteer-v1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/CodeSteer-v1-GGUF", filename="CodeSteer-v1-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/CodeSteer-v1-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/CodeSteer-v1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/CodeSteer-v1-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/CodeSteer-v1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/CodeSteer-v1-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/CodeSteer-v1-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/CodeSteer-v1-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/CodeSteer-v1-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/CodeSteer-v1-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/CodeSteer-v1-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/CodeSteer-v1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/CodeSteer-v1-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/CodeSteer-v1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/CodeSteer-v1-GGUF:Q2_K
- SGLang
How to use tensorblock/CodeSteer-v1-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/CodeSteer-v1-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/CodeSteer-v1-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/CodeSteer-v1-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/CodeSteer-v1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/CodeSteer-v1-GGUF with Ollama:
ollama run hf.co/tensorblock/CodeSteer-v1-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/CodeSteer-v1-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/CodeSteer-v1-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/CodeSteer-v1-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/CodeSteer-v1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/CodeSteer-v1-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/CodeSteer-v1-GGUF:Q2_K
- Lemonade
How to use tensorblock/CodeSteer-v1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/CodeSteer-v1-GGUF:Q2_K
Run and chat with the model
lemonade run user.CodeSteer-v1-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- CodeSteer-v1-Q3_K_L.gguf +0 -3
- CodeSteer-v1-Q3_K_S.gguf +0 -3
- CodeSteer-v1-Q4_0.gguf +0 -3
- CodeSteer-v1-Q4_K_M.gguf +0 -3
- CodeSteer-v1-Q4_K_S.gguf +0 -3
- CodeSteer-v1-Q5_0.gguf +0 -3
- CodeSteer-v1-Q5_K_M.gguf +0 -3
- CodeSteer-v1-Q5_K_S.gguf +0 -3
- CodeSteer-v1-Q6_K.gguf +0 -3
- CodeSteer-v1-Q8_0.gguf +0 -3
CodeSteer-v1-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:aed8014b17a2663f20eeb2c3ebc31ec407788e361eb3b0212e5eb753b1c6d84c
|
| 3 |
-
size 4321957152
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0dfb3b42eb0ba07e51efad91b545ebde528f3dc7c6de1db1bd09ed34500e6281
|
| 3 |
-
size 3664500000
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cc8f4ac551d6959beb6be47651657ccadef7d684aa8b7085402a315a728172af
|
| 3 |
-
size 4661212448
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9748e8657a53d1e91f163690884671ac0d58973f399cc97b35fa143c920f6ca7
|
| 3 |
-
size 4920735008
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fa93a1134a69a71a44e365ae999399a30bf010d9b173e46eaec5dfc0a67186ed
|
| 3 |
-
size 4692669728
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6499bdd08b08b37348bcde80e76457e2899ccc4aa517187bf325dc32c3de5781
|
| 3 |
-
size 5599294752
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:14c9791a61111ce5fdaab1383382261654e902aef31a67a66e8fa2e175619b01
|
| 3 |
-
size 5732988192
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7bb8d8a2d2f209b1c33e32cda6a87c587d2b296bd08282fb95000b94ec798509
|
| 3 |
-
size 5599294752
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:496c1b5cf9d3e6b6878687079d106c87e7245c1f6d3908374697ad54072eb9f3
|
| 3 |
-
size 6596007200
|
|
|
|
|
|
|
|
|
|
|
|
CodeSteer-v1-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d4519617a40d91d9c2061add443ae53100984fa75e4e3f2bc76e0098aa69a42a
|
| 3 |
-
size 8540771616
|
|
|
|
|
|
|
|
|
|
|
|