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 +10 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00001-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00002-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00003-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00004-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00005-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00006-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00007-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00008-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00009-of-00010.gguf +3 -0
- moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00010-of-00010.gguf +3 -0
.gitattributes
CHANGED
|
@@ -271,3 +271,13 @@ moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XX
|
|
| 271 |
moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS-00009-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 272 |
moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS-00010-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 273 |
moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS-00011-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS-00009-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 272 |
moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS-00010-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 273 |
moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS/moonshotai_Kimi-K2-Instruct-0905-IQ3_XXS-00011-of-00011.gguf filter=lfs diff=lfs merge=lfs -text
|
| 274 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00001-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 275 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00002-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 276 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00003-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 277 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00004-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 278 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00005-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 279 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00006-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 280 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00007-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 281 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00008-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 282 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00009-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 283 |
+
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00010-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00001-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7c296e5062c47e5096afde0df87159fb5684afd966218368b7cf77261ab4991
|
| 3 |
+
size 38360544384
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00002-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c90c7f8cf3e691b83701126a81d005642749458a3a5f221bd7c762c20e7927d
|
| 3 |
+
size 39526721856
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00003-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b13f9bcb463a7cd058ec6bbc1c09b53a72fffa13576bed552e833ba3ec84bf2b
|
| 3 |
+
size 38965238240
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00004-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1464c30fdd6f6a42ca324474b19bb8b42cde4fba0712e2f2630733739247ccfd
|
| 3 |
+
size 38882333056
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00005-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdd216150df4120075f1e1a36a22177dabb20d51c160f766387c9a285e7b081b
|
| 3 |
+
size 38943189376
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00006-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cef4edd6bc22342cfed58b96d42a85d405b5be43c96a6e527543b99348be7705
|
| 3 |
+
size 38954228192
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00007-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d36df76cba629f906c3a00445f3a8980fe61d3093e74e8ca93255105b6ae48f
|
| 3 |
+
size 39465865600
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00008-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3217163a18288cd5c612b7468602a0486de304f9f1e118fbb90360664450a984
|
| 3 |
+
size 39526721920
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00009-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57865f0f497bf8d187c8c552a0b31d2b35421618c0a101645adc1c4da0fd78bd
|
| 3 |
+
size 39384207584
|
moonshotai_Kimi-K2-Instruct-0905-Q2_K_L/moonshotai_Kimi-K2-Instruct-0905-Q2_K_L-00010-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2cedaf0ad84e40e07fb4eae75c784f41707738132edfcf4d76e5fa1c9e8f1f1a
|
| 3 |
+
size 8116599712
|