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
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
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- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00001-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00002-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00003-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00004-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00005-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00006-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00007-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00008-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00009-of-00010.gguf +2 -2
- UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00010-of-00010.gguf +2 -2
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00001-of-00010.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:17920be43fc14b9a52dca79fb632f3dca04bb01b7825bd07dc4f399bc958c112
|
| 3 |
+
size 49242848256
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00002-of-00010.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:c495072ba7be5c0e05a3b1c5005c4114b33bd7def7441cdd8830b7fe0f4b1be9
|
| 3 |
+
size 47823431840
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00003-of-00010.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:dcab21875490cc2029b288521e1711f7cedb0fad25c199b2a5afd2c15da6fbf4
|
| 3 |
+
size 48852017280
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00004-of-00010.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:50fbaafa570c626f719d38df1aaf0fb066bc400ecc1873aa508bf67636febf91
|
| 3 |
+
size 47754711264
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00005-of-00010.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:80c4427c6027a74ec0875a3508eb4daf77987cb65edd778198afbbe0b0ea4d5c
|
| 3 |
+
size 49132644736
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00006-of-00010.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:db34ab8a492580fa9d1d028620a5df13ed821450a91cc832349b80fe38a71445
|
| 3 |
+
size 49139898848
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00007-of-00010.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:874014497621653c018d9042fdcf3ff46e0a1972f3b04ba06574644de0d56857
|
| 3 |
+
size 49078555008
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00008-of-00010.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:6025ff36cc42bafecd0f6be9de5bbd80616a95175034d0e65688476e6d96b30a
|
| 3 |
+
size 49136200064
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00009-of-00010.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:2295e1d526ea227a50d5f7d1161b5d0358b0c4b7f125f027c0c86a037099bb14
|
| 3 |
+
size 49156479456
|
UD-Q3_K_XL/Kimi-K2-Thinking-UD-Q3_K_XL-00010-of-00010.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:d45a5b5f195c4996d782691aa6c37ff114f4cfdea2721849005bfc17007800f5
|
| 3 |
+
size 15798611232
|