Instructions to use KVCache-ai/Kimi-K2-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KVCache-ai/Kimi-K2-Instruct-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("KVCache-ai/Kimi-K2-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use KVCache-ai/Kimi-K2-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="KVCache-ai/Kimi-K2-Instruct-GGUF", filename="ggml-model-Q4_K_M-00001-of-00036.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use KVCache-ai/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 KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf KVCache-ai/Kimi-K2-Instruct-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 KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf KVCache-ai/Kimi-K2-Instruct-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 KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use KVCache-ai/Kimi-K2-Instruct-GGUF with Ollama:
ollama run hf.co/KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M
- Unsloth Studio
How to use KVCache-ai/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 KVCache-ai/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 KVCache-ai/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 KVCache-ai/Kimi-K2-Instruct-GGUF to start chatting
- Docker Model Runner
How to use KVCache-ai/Kimi-K2-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M
- Lemonade
How to use KVCache-ai/Kimi-K2-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KVCache-ai/Kimi-K2-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Kimi-K2-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
any hope for running on 256gb ram and 12gb vram ?
hi guys do you think i can run anythink with 256gb ram and 12gb vram ?
100% .theoretically even possible with gpu only and ssd's direct connect
100% .theoretically even possible with gpu only and ssd's direct connect
is it ? can you help me ?
ktransformers creators to answer
recommendation is to try and test yourself
recommendation is to try and test yourself
got it prev i did with small model. very good with ik_llama where i am getting 7.5t/sec with deep seek q2
What exactly do you mean by “direct connect” with the ssd?
pcie
pcie
Any tutorial? I have rn PCI adapter card for NVMe drives. There's nothing on their github about this specifically and in total very few information there, not novice or consumer-friendly. (they should use Ai to write tutorial, merged Qwen with Marco model written great tutorials for merging models process)
Upd: THE ONLY case in all industry (don't know why others hiding so much) of using SSDs for this is Gigabyte with their Ai TOP Utility(very extensive documention), but there SSDs used only for model training not inference. I haven't heard of any other projects last 2 years. That really works? Where tutorials? Where anything?