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- Q8_0/Kimi-K2-Instruct-Q8_0-00001-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00002-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00003-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00004-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00005-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00006-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00007-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00008-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00009-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00010-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00011-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00012-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00013-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00014-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00015-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00016-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00017-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00018-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00019-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00020-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00021-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00022-of-00023.gguf +2 -2
- Q8_0/Kimi-K2-Instruct-Q8_0-00023-of-00023.gguf +2 -2
Q8_0/Kimi-K2-Instruct-Q8_0-00001-of-00023.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:536d2f032cfb034c2f44207e6958ddbef582e9c4d43bda91666b5082bcaebbee
|
| 3 |
+
size 45411161440
|
Q8_0/Kimi-K2-Instruct-Q8_0-00002-of-00023.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:4fa917009be30b128ae994ae3edbc26004d5dc970856c59ba85d55d600c17cf5
|
| 3 |
+
size 48396070752
|
Q8_0/Kimi-K2-Instruct-Q8_0-00003-of-00023.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:35aa821b58c390122ab32fe266889e746810173e0c874888c0c05fc6d0bb1b64
|
| 3 |
+
size 48288589568
|
Q8_0/Kimi-K2-Instruct-Q8_0-00004-of-00023.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:83d8df9776c1c7f55c20ae2c4b57fc67138711de6103d5e7b41ffa4b62cd5c59
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00005-of-00023.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:8cc06dd510a34dfbadcc65c082c60b86953f5dbb5e85fc59df2a422661f25c61
|
| 3 |
+
size 48396070816
|
Q8_0/Kimi-K2-Instruct-Q8_0-00006-of-00023.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:f3b026d78b99d1d41f05b90290a6f71e7188e3a46b5ab6997e8aca7c5fc70dda
|
| 3 |
+
size 48288589632
|
Q8_0/Kimi-K2-Instruct-Q8_0-00007-of-00023.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:62e4e88ca3ad7c47eaf5f4a34d0d2f4dc74d32abbf97b8edc01c91b16d8f5a6b
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00008-of-00023.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:c07cc209989f1f8af2a1f878d0364c3019f6ab9079faab9f587d477c738263e4
|
| 3 |
+
size 48396070816
|
Q8_0/Kimi-K2-Instruct-Q8_0-00009-of-00023.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:1c5a4d4fd9b07ed48064aac415530f4b33fafa9339a062752c102abc654acde7
|
| 3 |
+
size 48288589632
|
Q8_0/Kimi-K2-Instruct-Q8_0-00010-of-00023.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:b5fcdfbd2c9840c0023bbd799112caedf2e62c74132174f49a8cf9194954361d
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00011-of-00023.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:6ca56c93f59a2330da0d5549b69e0c588af1d8848c4e77b7010c069011e26682
|
| 3 |
+
size 48396070816
|
Q8_0/Kimi-K2-Instruct-Q8_0-00012-of-00023.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:16d57f22c8f928e5ea765c309b8944a2da2daf919243a4411b68e46ee2f66780
|
| 3 |
+
size 48288589632
|
Q8_0/Kimi-K2-Instruct-Q8_0-00013-of-00023.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:2fc31d4d289921a0f1ffb37a49131ee0dfec07386b54b86fc12c265f9a6ce73c
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00014-of-00023.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:7fb13f2801434fb718e417373f2a0d5c441bbbef2f9d9dcf0363371b35858d08
|
| 3 |
+
size 48396070816
|
Q8_0/Kimi-K2-Instruct-Q8_0-00015-of-00023.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:ef7b2bbaf538cf148aca847c02ceb6c1ac4ea94dd9536d58bd424db65b098913
|
| 3 |
+
size 48288589632
|
Q8_0/Kimi-K2-Instruct-Q8_0-00016-of-00023.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:e14c8574023d807d4d543e7b2c8568c221028879ec4614be46f918e3a0ac0a94
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00017-of-00023.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:2e9f8876c753c5fd0d2e747c76a696389c77407dc9b883ab93ca389fe6257450
|
| 3 |
+
size 48396070816
|
Q8_0/Kimi-K2-Instruct-Q8_0-00018-of-00023.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:a6fb74354f1fe2e219d4f368aedf6fb8875c6f38c5be1986ede0a09c27af704e
|
| 3 |
+
size 48288589632
|
Q8_0/Kimi-K2-Instruct-Q8_0-00019-of-00023.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:a8f6056daad8419a69ad42f2a2cfae26c608cb7ef7681c5f656fb7252565a1fa
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00020-of-00023.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:79a8cbd4f2599689a3d0515c4c8ab952346b243cb7e3f9452f1d56b429c625fc
|
| 3 |
+
size 48396070816
|
Q8_0/Kimi-K2-Instruct-Q8_0-00021-of-00023.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:b1311264d2f0a2ef458346d8f1b3b2c39fc14c690e5463a94535ab86d663951a
|
| 3 |
+
size 48288589632
|
Q8_0/Kimi-K2-Instruct-Q8_0-00022-of-00023.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:0022b25eb9b2199aec4fd7ac21f68ea89b32cdd9103937784e742a11958aee23
|
| 3 |
+
size 48385031968
|
Q8_0/Kimi-K2-Instruct-Q8_0-00023-of-00023.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:7536608e33a65ac02c18d108b176b80323669449bcb0be6bdaa243352c96e72c
|
| 3 |
+
size 30154878112
|