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 +13 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00001-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00002-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00003-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00004-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00005-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00006-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00007-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00008-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00009-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00010-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00011-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00012-of-00013.gguf +3 -0
- Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00013-of-00013.gguf +3 -0
.gitattributes
CHANGED
|
@@ -325,3 +325,16 @@ Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00007-of-00010.gguf filter=lfs diff=lfs merge=lfs
|
|
| 325 |
Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00008-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 326 |
Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00009-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 327 |
Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00010-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 325 |
Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00008-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 326 |
Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00009-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 327 |
Q3_K_S/Kimi-K2-Instruct-Q3_K_S-00010-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 328 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00001-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 329 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00002-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 330 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00003-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 331 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00004-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 332 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00005-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 333 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00006-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 334 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00007-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 335 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00008-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 336 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00009-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 337 |
+
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00010-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
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00001-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec64af905c14c48c685c383596f51f29d7f5a59add2ffe51067445abf0a310cc
|
| 3 |
+
size 47142619360
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00002-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:182ba613ca693b88acb902d94a8df2496c3a1df1378090b75e8a43da90e5c2ac
|
| 3 |
+
size 48754517248
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00003-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90a995929ae1c884fa17cba7d9c2a2c87665d673cf26748dd4ff0d27568b63f5
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00004-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1f32ab1b0a0aa28c61eb17122efbed967505470ee5628a7e0ca6c0b7814448d
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00005-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a2883379ac98dbec585d3303832da8c5656a55c5ef079d7144090662433aac6
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00006-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6fe654d60b12f0327884d1d8f0ebbeb5ff8e0f3a4673aca1a365f63bfd89582
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00007-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0f6861f69c61e6a5857481a8d162991f2163c1c8dc09a91bc7bc445bdacc933
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00008-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f803f2b10b98e0f00619463534cabdb127d3e12bc24cef81c31231be34f3c81f
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00009-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e68a9f947711ddee1c90ab40d0f4f4ef94431974a946317b4239bb2d187cce60
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00010-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:096da1727c0088272fa269a0d6a93613f205c231c74b780988f976c9f3699614
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00011-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da06c927f2993011aecea339468ccf049905ac528492971c92e8402e41d0fc61
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00012-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4734540257039404d66e1fca4428506c69cbfbeec1cc783eb9c92a56e1523e96
|
| 3 |
+
size 48048039264
|
Q4_K_S/Kimi-K2-Instruct-Q4_K_S-00013-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80445b4d5edb48d102dd72f10f5fff151867d8021bac2da62937c7d6abf09f9e
|
| 3 |
+
size 6369341952
|