Downloads · 30 days
479
13% of all-time downloads
richardyoung/Kimi-K2-Instruct-0905-MLX-2bit
Kimi-K2-Instruct-0905-MLX-2bit is a text generation model from richardyoung. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
Downloads · 30 days
479
13% of all-time downloads
All-time downloads
3.7K
Public
Parameters
1T
321 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors321 GB · 100%
How the weights are stored.
U321T · 100%
From the Hugging Face model README
Original Model | MLX Framework | More Quantizations
This is an ultra-compact 2-bit quantized version of Kimi K2 Instruct, optimized to run on Apple Silicon (M1/M2/M3/M4) Macs using the MLX framework. This is the most aggressive quantization available - perfect for testing, rapid prototyping, or when you need maximum speed with minimal memory!
Kimi-K2 is a massive 671B parameter MoE model. Choose your quantization based on available unified memory:
| Quantization | Model Size | Min RAM | Quality |
|---|---|---|---|
| 2-bit | ~84 GB | 96 GB | Acceptable - some quality loss |
| 3-bit | ~126 GB | 128 GB | Good - recommended minimum |
| 4-bit | ~168 GB | 192 GB | Very Good - best quality/size balance |
| 5-bit | ~210 GB | 256 GB | Excellent |
| 6-bit | ~252 GB | 288 GB | Near original |
| 8-bit | ~336 GB | 384 GB | Original quality |
| Mac Model | Max RAM | Recommended Quantization |
|---|---|---|
| Mac Studio M2 Ultra | 192 GB | 4-bit |
| Mac Studio M4 Ultra | 512 GB | 8-bit |
| Mac Pro M2 Ultra | 192 GB | 4-bit |
| MacBook Pro M3 Max | 128 GB | 3-bit |
| MacBook Pro M4 Max | 128 GB | 3-bit |
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("richardyoung/Kimi-K2-Instruct-0905-MLX-2bit")
print(generate(model, tokenizer, prompt="Explain quantum entanglement simply:", max_tokens=200))
That's it! 🎉
| Component | Minimum | Recommended |
|---|---|---|
| Mac | M1 or newer | M2 Ultra / M3 Max / M4 Max+ |
| Memory | 32 GB unified | 64 GB+ unified |
| Storage | 350 GB free | Fast SSD (1+ TB) |
| macOS | 12.0+ | Latest version |
⚡ Note: This 2-bit version is the most memory-efficient! Great for systems with limited RAM.
mlx_lm.generate \
--model richardyoung/Kimi-K2-Instruct-0905-MLX-2bit \
--prompt "Write a Python script to analyze CSV files." \
--max-tokens 500
from mlx_lm import load, generate
model, tokenizer = load("richardyoung/Kimi-K2-Instruct-0905-MLX-2bit")
conversation = """<|im_start|>system
You are a helpful AI assistant specialized in coding and problem-solving.<|im_end|>
<|im_start|>user
Can you help me optimize this Python code?<|im_end|>
<|im_start|>assistant
"""
response = generate(model, tokenizer, prompt=conversation, max_tokens=500)
print(response)
from mlx_lm import load, generate
model, tokenizer = load("richardyoung/Kimi-K2-Instruct-0905-MLX-2bit")
for token in generate(
model,
tokenizer,
prompt="Tell me about the future of AI:",
max_tokens=500,
stream=True
):
print(token, end="", flush=True)
| Feature | Value |
|---|---|
| Total Parameters | ~671 Billion |
| Architecture | DeepSeek V3 (MoE) |
| Experts | 384 routed + 1 shared |
| Active Experts | 8 per token |
| Hidden Size | 7168 |
| Layers | 61 |
| Heads | 56 |
| Context Length | 262,144 tokens |
| Quantization | 2-bit (ultra-aggressive) |
Choose the right balance for your needs:
| Quantization | Size | Quality | Speed | Best For |
|---|---|---|---|---|
| 8-bit | ~1 TB | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | Production, best quality |
| 6-bit | ~800 GB | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | Sweet spot for most users |
| 5-bit | ~660 GB | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | Great quality/size balance |
| 4-bit | ~540 GB | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Faster inference |
| 3-bit | ~420 GB | ⭐⭐ | ⭐⭐⭐⭐⭐ | Very fast, compact |
| 2-bit (you are here) | ~320 GB | ⭐⭐ | ⭐⭐⭐⭐⭐ | Fastest, most compact |
| Original | ~5 TB | ⭐⭐⭐⭐⭐ | ⭐⭐ | Research only |
This model was quantized using MLX's built-in quantization:
mlx_lm.convert \
--hf-path moonshotai/Kimi-K2-Instruct-0905 \
--mlx-path Kimi-K2-Instruct-0905-MLX-2bit \
-q --q-bits 2 \
--trust-remote-code
Result: Ultra-aggressive 2-bit quantization for maximum speed and minimal storage
💡 Recommendation: For production use, consider the 6-bit or 8-bit versions for better quality!
Apache 2.0 - Same as the original model. Free for commercial use!
If you use this model in your research or product, please cite:
@misc{kimi-k2-2025,
title={Kimi K2: Advancing Long-Context Language Models},
author={Moonshot AI},
year={2025},
url={https://huggingface.co/moonshotai/Kimi-K2-Instruct-0905}
}
Built & maintained by Richard Young · DeepNeuro If you find this useful, please ⭐ star the repo and share with others!
Created: October 2025 | Format: MLX 2-bit
</div>