Instructions to use unsloth/Kimi-K2-Thinking-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/Kimi-K2-Thinking-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/Kimi-K2-Thinking-GGUF", dtype="auto") - llama-cpp-python
How to use unsloth/Kimi-K2-Thinking-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="unsloth/Kimi-K2-Thinking-GGUF", filename="BF16/Kimi-K2-Thinking-BF16-00001-of-00046.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use unsloth/Kimi-K2-Thinking-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
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 unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
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 unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use unsloth/Kimi-K2-Thinking-GGUF with Ollama:
ollama run hf.co/unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
- Unsloth Studio new
How to use unsloth/Kimi-K2-Thinking-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 unsloth/Kimi-K2-Thinking-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 unsloth/Kimi-K2-Thinking-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Kimi-K2-Thinking-GGUF to start chatting
- Pi new
How to use unsloth/Kimi-K2-Thinking-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use unsloth/Kimi-K2-Thinking-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Docker Model Runner
How to use unsloth/Kimi-K2-Thinking-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/Kimi-K2-Thinking-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Kimi-K2-Thinking-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Kimi-K2-Thinking-GGUF-UD-Q4_K_XL
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00001-of-00016.gguf +2 -2
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00002-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00003-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00004-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00005-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00006-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00007-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00008-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00009-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00010-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00011-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00012-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00013-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00014-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00015-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00016-of-00016.gguf +1 -1
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00001-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5dd07da2dc749f15ff963feb13d29c90e16b812c79b161bf3bd11971bfb47e5d
|
| 3 |
+
size 48241329920
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00002-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 48489491072
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:676dd53ed081815cbb59206b06b8f61d7883b8207814756e7a4c47f827413d65
|
| 3 |
size 48489491072
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00003-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 48489491104
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cae3caf57d48525a02f3f826838b1564566c4b47b5803a8c3aa407694d2c66e
|
| 3 |
size 48489491104
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00004-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c24f2193d0d7e1958aaefc2e118dfdbb1ee1e521e4de207a077ba72927aee682
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00005-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ce8a33c83811c26a0851f79afe1f9a41864bf03452269778bbdeae2db615d17
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00006-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 48489491136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:087a0eafb33826f1db8549f7cb2532d51d7dfb023b9279685f4070d587159412
|
| 3 |
size 48489491136
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00007-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b828b9dd6c56a1606c7fb6fcfda0fba9db7e08959048e2c94f13b2fd0e6edef
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00008-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cb1ee9157a68db1d56e9bbbfb908e9e13c51a5ba3306eb7d86e1c38a67bb021
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00009-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 48489491136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2338034ead7d24fd0972f9c18b5d49971419f5423b2aa14a5bdf08bb3f93b025
|
| 3 |
size 48489491136
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00010-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64bd82463eaa122615f544d53d6eab3e89a2acdd1e7325724cf5cd8b6c31c6a4
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00011-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43e2257ee8efd769dc6b651415362c04fc2e561769241b22ed7f2135e3c680e2
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00012-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 48489491136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0aad5d642aae22a8a95082d0d6672adcc8b41ee405daaeb0b9ecc0bc21a8f567
|
| 3 |
size 48489491136
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00013-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 47740807872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa70d5e2041c4fbcfbc37ca9d4afcdaa4079c1304d29344fc7d303f04c755b78
|
| 3 |
size 47740807872
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00014-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 49986857664
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1296cc7ec634dd1926481ea7f5510fddcda7bc9c4bb92117ecfd3e0ed4a59ce
|
| 3 |
size 49986857664
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00015-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 49986857664
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c022afa8263a6c7e809a5d4887ebbab2856946d572866e64627ce5eae203c45
|
| 3 |
size 49986857664
|
Q5_K_M/Kimi-K2-Thinking-Q5_K_M-00016-of-00016.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3887579392
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:670794d04f37672bb6f665108418e7b302543fabbe5c7ad324efe17a6172e171
|
| 3 |
size 3887579392
|