Instructions to use tensorblock/KnowCoder-7B-IE-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/KnowCoder-7B-IE-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/KnowCoder-7B-IE-GGUF", filename="KnowCoder-7B-IE-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/KnowCoder-7B-IE-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/KnowCoder-7B-IE-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/KnowCoder-7B-IE-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/KnowCoder-7B-IE-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/KnowCoder-7B-IE-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/KnowCoder-7B-IE-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/KnowCoder-7B-IE-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/KnowCoder-7B-IE-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/KnowCoder-7B-IE-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/KnowCoder-7B-IE-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/KnowCoder-7B-IE-GGUF with Ollama:
ollama run hf.co/tensorblock/KnowCoder-7B-IE-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/KnowCoder-7B-IE-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/KnowCoder-7B-IE-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/KnowCoder-7B-IE-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/KnowCoder-7B-IE-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/KnowCoder-7B-IE-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/KnowCoder-7B-IE-GGUF:Q2_K
- Lemonade
How to use tensorblock/KnowCoder-7B-IE-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/KnowCoder-7B-IE-GGUF:Q2_K
Run and chat with the model
lemonade run user.KnowCoder-7B-IE-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- KnowCoder-7B-IE-Q3_K_L.gguf +0 -3
- KnowCoder-7B-IE-Q3_K_M.gguf +0 -3
- KnowCoder-7B-IE-Q3_K_S.gguf +0 -3
- KnowCoder-7B-IE-Q4_0.gguf +0 -3
- KnowCoder-7B-IE-Q4_K_M.gguf +0 -3
- KnowCoder-7B-IE-Q4_K_S.gguf +0 -3
- KnowCoder-7B-IE-Q5_0.gguf +0 -3
- KnowCoder-7B-IE-Q5_K_M.gguf +0 -3
- KnowCoder-7B-IE-Q5_K_S.gguf +0 -3
- KnowCoder-7B-IE-Q6_K.gguf +0 -3
- KnowCoder-7B-IE-Q8_0.gguf +0 -3
KnowCoder-7B-IE-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:44f33df565b909618738d5be5f7d2d801971aef3674bd22ce08d9485201bee15
|
| 3 |
-
size 3597111328
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c5b68d9eecb8db8cab74869ece76434a7b5746f40c8832e2bc2c0f530cfef506
|
| 3 |
-
size 3298005024
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3ead19bf9a31c0f60ad4158500a930f1cdbd6e490d4f107bc25727df78edacb1
|
| 3 |
-
size 2948304928
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d81c3db8ad387931f983243a16d7b4247071527205f48c5a56558929b15fb6a3
|
| 3 |
-
size 3825807392
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:08302e6a40a0a99d8aea9db6a1ffe30d9535a06b3bbf931f88fe6f37572eb265
|
| 3 |
-
size 4081004576
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c0360adf31c68eb6055b7ebfb4f24f7f8fe0c561dff0b4a4d41643613f1bd3d4
|
| 3 |
-
size 3856740384
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b1fb6230fa0268774348fb59243977ebb7344ee687213f53cf7b7779e5adcf9f
|
| 3 |
-
size 4651692064
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5808e37253c201535bb0c09efafe204cce316a69e417f87151756cfdf355ab41
|
| 3 |
-
size 4783157280
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:49acc0c038a3202dd05f904b69f200dd19ad46b0aa0b0aa816ba32dbf046df5a
|
| 3 |
-
size 4651692064
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:eb2ee6d37b7f5e0b4d5752be6f2bda658177a4f52c675dfe69ddfc22f2c82e89
|
| 3 |
-
size 5529194528
|
|
|
|
|
|
|
|
|
|
|
|
KnowCoder-7B-IE-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:657364a1b6a42a2b706320bf4d5da85ff69108685f7e738c0fcff45320e26c2d
|
| 3 |
-
size 7161090080
|
|
|
|
|
|
|
|
|
|
|
|