Downloads · 30 days
287
3% of all-time downloads
AaryanK/Kimi-Linear-48B-A3B-Instruct-GGUF
Kimi-Linear-48B-A3B-Instruct-GGUF is a text generation model from AaryanK. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as mit.
<div align="center" <img src="https://huggingface.co/moonshotai/Kimi-Linear-48B-A3B-Instruct/resolve/main/figures/logo.png" width="5%" style="vertical-align: middle;"/ <bKimi Linear: An Expressive, Efficient Attention…
Downloads · 30 days
287
3% of all-time downloads
All-time downloads
8.6K
Public
Repo size
226 GB
Likes
13
Public
Click a slice to open those files.
.gguf128 GB · 100%
From the Hugging Face model README
[!IMPORTANT] I am currently looking for open positions! 🤗 If you find this model useful or are looking for a talented AI/LLM Engineer, please reach out to me on LinkedIn: Aaryan Kapoor.
<div align="center"> <img src="https://cdn-uploads.huggingface.co/production/uploads/64e1a459ff3fd4fd8eedb456/IlxKYaUsl15644y-k8GNo.png" width="70%" style="vertical-align: middle;"/> <b>Some test prompts :)</b> </div>[!CAUTION] Experimental Build Required 🚧 This model utilizes the Kimi Delta Attention (KDA) architecture, which is not yet supported in the main branch of
llama.cpp.To run this GGUF, you must compile
llama.cppfrom PR #17592. Attempting to run this on a standard build will result in errors.
This repository contains experimental GGUF format model files for Moonshot AI's Kimi Linear 48B.
Kimi Linear is a hybrid linear attention architecture designed to outperform traditional full attention methods in long-context and scaling regimes. It uses Kimi Delta Attention (KDA) and a hybrid architecture (3:1 KDA-to-MLA ratio) to reduce memory usage and boost throughput by up to 6x on long sequences.
Performance & Architecture. This model is currently quantized to Q2_K (and others) to fit on consumer hardware while testing the architecture's correctness. Despite the aggressive quantization, initial tests show the logic and reasoning capabilities remain intact.
| Feature | Kimi Linear Specification |
|---|---|
| Architecture | Hybrid Linear Attention (MoE + MLA + KDA) |
| Context Length | 1M Tokens (Supported by architecture) |
| Params | 48B Total / 3B Activated |
| Throughput | ~6.3x faster TPOT compared to MLA at 1M context |
| MMLU-Pro | 51.0 (4k context) |
| RULER | 84.3 (128k context, Pareto-optimal) |
Prerequisite: You must clone and build the specific PR branch:
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
git fetch origin pull/17592/head:pr-17592
git checkout pr-17592
make -j
./llama-cli -m Kimi-Linear-48B-Instruct.Q2_K.gguf \
-n 2048 \ # Adjust generation limit
-c 8192 \ # Context window (Model supports up to 1M)
--temp 0.8 \ # Recommended temperature
--top-p 0.9 \
-ngl 99 \ # Offload all layers to GPU
-p "<|im_start|>user\nHello, who are you?<|im_end|>\n<|im_start|>assistant\n" \
-cnv
Note: The current GGUF implementation successfully mitigates previous "state collapse" issues found in early development.
Running a persistent server is recommended for this size model to avoid reloading times.
./llama-server -m Kimi-Linear-48B-Instruct.Q2_K.gguf \
--port 8080 \
-ngl 99 \
-c 8192 \
--alias kimi
-ngl 99):
-ngl with a lower number (e.g., -ngl 20) to split layers between GPU and CPU RAM.Default Settings
0.80.91.05 (Optional, if repetition occurs)./llama-cli -m Kimi-Linear-48B-Instruct.Q2_K.gguf \
-c 8192 \
--temp 0.8 \
--top-p 0.9 \
-p "<|im_start|>user\nWrite a Python script to calculate Fibonacci numbers.<|im_end|>\n<|im_start|>assistant\n" \
-cnv