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_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00001-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00002-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00003-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00004-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00005-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00006-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00007-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00008-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00009-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00010-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00011-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00012-of-00013.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00013-of-00013.gguf +3 -0
.gitattributes
CHANGED
|
@@ -211,3 +211,16 @@ moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-
|
|
| 211 |
moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 212 |
moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 213 |
moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 212 |
moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 213 |
moonshotai_Kimi-K2-Instruct-0905-Q3_K_L/moonshotai_Kimi-K2-Instruct-0905-Q3_K_L-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 214 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00001-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 215 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00002-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 216 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00003-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 217 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00004-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 218 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00005-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 219 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00006-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 220 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00007-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 221 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00008-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 222 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00009-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 223 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00010-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 224 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00011-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 225 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00012-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
| 226 |
+
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00013-of-00013.gguf filter=lfs diff=lfs merge=lfs -text
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00001-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9ccfa3150e4e594b4cb3d9582411241a91783fcf709e55e0d339ef4939ba79c
|
| 3 |
+
size 37589797088
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00002-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3eb5d203eeba9dd43ff78d5fe0e6acc4575f41461d37b652f4352826cfdf2973
|
| 3 |
+
size 39194813696
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00003-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ef896fbbe3d7fb08f5e5770aeb7570d62a167eec6ace1164306c094c1e6db83
|
| 3 |
+
size 37675427168
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00004-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68abbdd1256639489434185c241565adf22095bcd38da64451a4da515ce35e74
|
| 3 |
+
size 38429615456
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00005-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29e0acc88cecfa9547661c942ddade09c7ac7d165cabde29eb8d5337b707cb97
|
| 3 |
+
size 38418605408
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00006-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e70338e30276106635cfafd290c1e5ed4badf254909f324f78a2e863539f35ab
|
| 3 |
+
size 37675427168
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00007-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:feec6b06e2be020411c2da8e25b57348acbd842b9f01e94be9981914d34bb798
|
| 3 |
+
size 38429615456
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00008-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82e3aeacfab6257a03bbe394af47af6bfa8fa3552833daa2b998e476c84d3af5
|
| 3 |
+
size 38418605408
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00009-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4894741468c8a50d8274e829e42b3018904cdf1dbc1ac874e3b09f84fac7ad70
|
| 3 |
+
size 37675427168
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00010-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a715701f1ceed92c8ad6e37d51b2686440a96becc0357b8a1c8244abb6e31f76
|
| 3 |
+
size 38429615456
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00011-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4361bf3df029b0d7958f8b568e35e72ddbc266b40040988d7936091623e8916
|
| 3 |
+
size 39949002080
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00012-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cbfd732476fffe562f197bc97808e2c059d9bdeb7413dad960640fea76c3068
|
| 3 |
+
size 37538718912
|
moonshotai_Kimi-K2-Instruct-0905-Q3_K_M/moonshotai_Kimi-K2-Instruct-0905-Q3_K_M-00013-of-00013.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e35a9d15ac2830d69c66df932a243d0e1dff4bd4d728f568eae8488e6ced8908
|
| 3 |
+
size 8073147040
|