Downloads · 30 days
38
9% of all-time downloads
stressthismess/Kimi-K3
Kimi-K3 is a machine learning model from stressthismess. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for llama.cpp. The card lists the license as mit.
This repository contains an F16 GGUF conversion of inference-optimization/Kimi-K3-0.40B, a tiny test/development version of moonshotai/Kimi-K3.
Downloads · 30 days
38
9% of all-time downloads
All-time downloads
411
Public
Repo size
784 MB
Likes
0
Public
Click a slice to open those files.
.gguf784 MB · 100%
From the Hugging Face model README
This repository contains an F16 GGUF conversion of inference-optimization/Kimi-K3-0.40B, a tiny test/development version of moonshotai/Kimi-K3.
| Property | Value |
|---|---|
| Base Model | moonshotai/Kimi-K3 |
| Architecture | KimiK3ForConditionalGeneration (kimi_linear) |
| Total Parameters | 0.40B |
| Activated Parameters | ~0.06B (2 of 8 experts active per token) |
| Quantization | F16 (16-bit floating point) |
| File Size | ~748 MB |
| GGUF Tensors | 218 |
Kimi-K3 introduces a novel hybrid attention architecture that combines:
| Parameter | Value |
|---|---|
num_hidden_layers | 8 |
hidden_size | 1024 |
intermediate_size | 2048 |
num_attention_heads | 8 |
num_key_value_heads | 8 |
vocab_size | 163,840 |
max_position_embeddings | 4096 |
rope_theta | 10000.0 |
rms_norm_eps | 1e-5 |
hidden_act | situ |
This GGUF was converted using a specialized llama.cpp fork that supports Kimi-K3's custom architecture.
convert_hf_to_gguf.py# Clone the Kimi-K3-compatible fork
git clone -b k3/out-of-core https://github.com/murillo128/llama.cpp.git
cd llama.cpp
# Build
cmake -B build
cmake --build build --config Release -j
# Linux/macOS
./build/bin/llama-cli \
-m ./Kimi-K3-0.40B-F16.gguf \
-p "According to all known laws" \
-n 20 \
--temp 0 \
--seed 1
# Windows
build/bin/Release/llama-cli.exe \
-m ./Kimi-K3-0.40B-F16.gguf \
-p "According to all known laws" \
-n 20 \
--temp 0 \
--seed 1
> According to all known laws
the start.
KimiK3ForConditionalGeneration
├── Vision Tower (2 layers, 256 hidden size)
├── Language Model (8 layers)
│ ├── Layer 0: KimiDeltaAttention + Dense MLP
│ ├── Layer 1: KimiDeltaAttention + MoE
│ ├── Layer 2: KimiDeltaAttention + MoE
│ ├── Layer 3: KimiMLAAttention + MoE
│ ├── Layer 4: KimiDeltaAttention + MoE
│ ├── Layer 5: KimiDeltaAttention + MoE
│ ├── Layer 6: KimiDeltaAttention + MoE
│ └── Layer 7: KimiMLAAttention + MoE
└── LM Head
| Aspect | moonshotai/Kimi-K3 | Kimi-K3-0.40B |
|---|---|---|
| Total Parameters | ~32B | 0.40B |
| Hidden Size | 7168 | 1024 |
| Num Layers | 93 | 8 |
| Num Experts | 896 | 8 |
| Attention Type | KDA + MLA | KDA + MLA |
| KDA:MLA Ratio | 3:1 | 3:1 |
| MoE Experts/Token | 16 | 2 |
This model is released under the MIT License, consistent with the base model.
@article{kimi-k3,
title={Kimi-K3: A Hybrid Attention Architecture},
author={Moonshot AI},
year={2025}
}