Instructions to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF", filename="moonshotai_Kimi-K2-Instruct-0905-IQ1_M/moonshotai_Kimi-K2-Instruct-0905-IQ1_M-00001-of-00006.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
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 bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
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 bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
- Ollama
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with Ollama:
ollama run hf.co/bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
- Unsloth Studio
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-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 bartowski/moonshotai_Kimi-K2-Instruct-0905-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 bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF to start chatting
- Pi
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
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": "bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
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 bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
- Lemonade
How to use bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bartowski/moonshotai_Kimi-K2-Instruct-0905-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.moonshotai_Kimi-K2-Instruct-0905-GGUF-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +13 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00001-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00002-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00003-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00004-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00005-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00006-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00007-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00008-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00009-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00010-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00011-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00012-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00013-of-00013.gguf +3 -0
.gitattributes
CHANGED
|
@@ -185,3 +185,16 @@ moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-
|
|
| 185 |
moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-00012-of-00014.gguf filter=lfs diff=lfs merge=lfs -text
|
| 186 |
moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-00013-of-00014.gguf filter=lfs diff=lfs merge=lfs -text
|
| 187 |
moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-00014-of-00014.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-00012-of-00014.gguf filter=lfs diff=lfs merge=lfs -text
|
| 186 |
moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-00013-of-00014.gguf filter=lfs diff=lfs merge=lfs -text
|
| 187 |
moonshotai_Kimi-K2-Instruct-0905-IQ4_XS/moonshotai_Kimi-K2-Instruct-0905-IQ4_XS-00014-of-00014.gguf filter=lfs diff=lfs merge=lfs -text
|
| 188 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00001-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 189 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00002-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 190 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00003-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 191 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00004-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 192 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00005-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 193 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00006-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 194 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00007-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 195 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00008-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 196 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00009-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 197 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00010-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 198 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 199 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 200 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00001-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c412fbf631825df38e2b988f7d0a0a4d93783b78c7828d1baea41a2c5056fdc
|
| 3 |
+
size 38158649440
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00002-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5164fd427dd5dc473c674898cc3f9d0f8ad9b7c0f2ae22668c6aa68ed4ab9e0
|
| 3 |
+
size 38743989248
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00003-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb91b84f9a2f431e48feee4c45b54c50a1d5c9bf9e16c4706ec2974bbd99d4d8
|
| 3 |
+
size 39763207520
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00004-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d25446a8f3ae3b7c847cb9f364a48f13e0cd1c61d7c16b41e201db502053df95
|
| 3 |
+
size 39757702496
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00005-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c26e89cf94d907b2c2dceb85a5ccdde688055ae7a491aafc32bb37d727e13473
|
| 3 |
+
size 38298871136
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00006-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29209a6939d549bfe3007b80c1307151ca77f360d7c31ad75234551c610a10b8
|
| 3 |
+
size 39763207520
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00007-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e71ce1d1d0fc11231cb1cec094302bdd1c96e2cb40b85e516aabe3f8ed1efc0
|
| 3 |
+
size 39757702496
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00008-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a07d27f66ec14aecd51822ce447adc6cd29b3f1b80d2eefb5190728b86d3f9c
|
| 3 |
+
size 38298871136
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00009-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61588031865011b3e32aac3e28eab42fd0c55c84224e1c4f2e842b3e450a01e6
|
| 3 |
+
size 39763207520
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00010-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:596c8e637f6307467e8ff20479297dc9289cc377879ea72153c69a76b41d0506
|
| 3 |
+
size 39757702496
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00011-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2c95b23d7a463e8775e69952a31d4d63a7ce520e38623b286292f17112616d5
|
| 3 |
+
size 38784201792
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00012-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff841424bffbb3b9a320df018b86feb0c6e7e7ad3f3570fd6167a5d55b3c7958
|
| 3 |
+
size 37787032512
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL/moonshotai_Kimi-K2-Instruct-0905-Q3_K_XL-00013-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33f1f410d32fbd379e0306ed33a328e9a22319ae17dc87c7e6b5227d4f34c5ca
|
| 3 |
+
size 20106901024
|