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- .gitattributes +15 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00001-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00002-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00003-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00004-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00005-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00006-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00007-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00008-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00009-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00010-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00011-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00012-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00013-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00014-of-00015.gguf +3 -0
- Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00015-of-00015.gguf +3 -0
.gitattributes
CHANGED
|
@@ -338,3 +338,18 @@ Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00010-of-00013.gguf filter=lfs diff=lfs merge=lfs
|
|
| 338 |
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 339 |
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 340 |
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 339 |
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 340 |
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 341 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00001-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 342 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00002-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 343 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00003-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 344 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00004-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 345 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00005-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 346 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00006-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 347 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00007-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 348 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00008-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 349 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00009-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 350 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00010-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 351 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00011-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 352 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00012-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 353 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00013-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 354 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00014-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
| 355 |
+
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00015-of-00015.gguf filter=lfs diff=lfs merge=lfs -text
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00001-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3776be59c7c5660db7e325ececb7b0212064b7b075cc904205cf5ccbe8ed6c54
|
| 3 |
+
size 49158195296
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00002-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:707936de016d8c8c99997e0b8b3b79ab6bea93d7257b6e1722c1b2a1aac3cf40
|
| 3 |
+
size 46962535040
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00003-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f575ede455ee45075508e1eb253e7ecf86f9f22e2fe1061caf767023cd27f50b
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00004-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6893c481c667b96d533abad8ec5aa952469395bc816692550a94d267bd5275d5
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00005-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afd41e93a4bd33c97225dc5e0a3bc569ba43d594a22e88aa156e7bb27824aabd
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00006-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:998b6af5ea14451118a57ff9a45aa592bd2cfc00ee8df2890cc972a167914f4b
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00007-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:009c87902b2db6e87dda252ab6651fcb9949ee24f39c1ebe9a54caf2a4be45e0
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00008-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44ecf1c3c05be68d76ec92b3a494a1a4ba13e975883300e318e22269b9f6f9e0
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00009-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a91460c83704f04e5d0f151960b7832a3c52271df6ae96ef501143a9f6bd314
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00010-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b326c9869a48e493293e8c13056658024ef82a2ee08f0f75b01bd5caf479615
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00011-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b95e737b861ca54df39b2c6aede8198d9a140a5717487f3fdc58a6d86e3308c4
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00012-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aecfa70cab9717653ef4afa27dc36ba8053f1ce1aec20ce0bcd2990dc1fe37db
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00013-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:184065a77823d125c91e0b280f27ea530fd1ff19a7b0cc22539aebd8591321ea
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00014-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb572ba71b4c3bc00cec7dd0f259f2107f884693d01263d012c54edbb57f147f
|
| 3 |
+
size 46962535104
|
Q5_K_S/Kimi-K2-Instruct-Q5_K_S-00015-of-00015.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8af211ec0934a76eacbebb3623a0b105edb81a0e46644a9dabe10177e79231ab
|
| 3 |
+
size 46889828960
|