Instructions to use unsloth/Kimi-K2-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/Kimi-K2-Instruct-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/Kimi-K2-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use unsloth/Kimi-K2-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="unsloth/Kimi-K2-Instruct-GGUF", filename="BF16/Kimi-K2-Instruct-BF16-00001-of-00045.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/Kimi-K2-Instruct-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-Instruct-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Kimi-K2-Instruct-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-Instruct-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Kimi-K2-Instruct-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-Instruct-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/Kimi-K2-Instruct-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-Instruct-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Kimi-K2-Instruct-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/Kimi-K2-Instruct-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use unsloth/Kimi-K2-Instruct-GGUF with Ollama:
ollama run hf.co/unsloth/Kimi-K2-Instruct-GGUF:UD-Q4_K_XL
- Unsloth Studio
How to use unsloth/Kimi-K2-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 unsloth/Kimi-K2-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 unsloth/Kimi-K2-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 unsloth/Kimi-K2-Instruct-GGUF to start chatting
- Pi
How to use unsloth/Kimi-K2-Instruct-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-Instruct-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-Instruct-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use unsloth/Kimi-K2-Instruct-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-Instruct-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-Instruct-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Docker Model Runner
How to use unsloth/Kimi-K2-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Kimi-K2-Instruct-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/Kimi-K2-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Kimi-K2-Instruct-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Kimi-K2-Instruct-GGUF-UD-Q4_K_XL
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00001-of-00016.gguf +2 -2
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00002-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00003-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00004-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00005-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00006-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00007-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00008-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00009-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00010-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00011-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00012-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00013-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00014-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00015-of-00016.gguf +1 -1
- Q5_K_M/Kimi-K2-Instruct-Q5_K_M-00016-of-00016.gguf +1 -1
Q5_K_M/Kimi-K2-Instruct-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:e06dada94206bb7597dac1b80632ddbee57903030ca2f5d05229e518f1fdca9b
|
| 3 |
+
size 48219939104
|
Q5_K_M/Kimi-K2-Instruct-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 48463800960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb14228387a5791a9f48c2056fe6f96d13248aedbde1d316e3b60b0f063d4f8f
|
| 3 |
size 48463800960
|
Q5_K_M/Kimi-K2-Instruct-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 48463800992
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78d23bbf15e2034a4502f4aec5766524ea8f51bcef4d4ea4f57d6bb49425fdd5
|
| 3 |
size 48463800992
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ff2d24bb5641b4fea920cf66a98e9d0b37007438bcc0df7ec459f454d4950d3
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1f66d67f096f07693419b1e0b8c14a558c96f7e06845099b74131218a09b24b
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 48463801024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47b49b8087a96b3cd2ff5efe405309a601182728e34c8b307d0d7eb1e32a4a7e
|
| 3 |
size 48463801024
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2aecfba6c3d4172d9058baaf7484ba78d54691c79716bb05bf2ba220e71e0d53
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed29348ec499f237679caab49d0b25c6fd8e69dc7b1a4c3f15360f78c7846228
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 48463801024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ea4186b804e375e4bfaada6b2d5ab4128c3b95aeaf6c8098451a1d953ba5bf5
|
| 3 |
size 48463801024
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:239c05569a08885bbd156c9ef38006d9e2d4467813914e9d4f4e0f68069fb9f4
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72599b888171042249cf5c16024b25ab5e470166be831e86f0af220ee3a92f7d
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 48463801024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc87a4ba46db0d4a6e8af9b567f92e7717b27738a672d233156d84c466b69625
|
| 3 |
size 48463801024
|
Q5_K_M/Kimi-K2-Instruct-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 47713168064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59e25ac2538a4e3d4a97509e90c33ec05c24c5d6d4e914ce5810ae8379764288
|
| 3 |
size 47713168064
|
Q5_K_M/Kimi-K2-Instruct-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 49965066944
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58ab475f3d8311e3de18c8b9b0d81dd4206f821c3524af7d7e62d5d551cadb8e
|
| 3 |
size 49965066944
|
Q5_K_M/Kimi-K2-Instruct-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 49965066944
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36e0be949023e3590322c7708af60a99c892a4ede8451555f3483ee5aefaeb12
|
| 3 |
size 49965066944
|
Q5_K_M/Kimi-K2-Instruct-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 3885629696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c16801ca2d1a065a5d561a5c33993a7e7625b60429e4f9d6c569ec583ea8696
|
| 3 |
size 3885629696
|