moonshotai / Kimi-Linear-48B-A3B-Instruct

huggingface.co
Total runs: 205.7K
24-hour runs: 0
7-day runs: -7.7K
30-day runs: 41.8K
Model's Last Updated: December 16 2025
text-generation

Introduction of Kimi-Linear-48B-A3B-Instruct

Model Details of Kimi-Linear-48B-A3B-Instruct

(a) On MMLU-Pro (4k context length), Kimi Linear achieves 51.0 performance with similar speed as full attention. On RULER (128k context length), it shows Pareto-optimal performance (84.3) and 3.98x speedup. (b) Kimi Linear achieves 6.3x faster TPOT compared to MLA, offering significant speedups at long sequence lengths (1M tokens).

Overview

Kimi Linear is a hybrid linear attention architecture that outperforms traditional full attention methods across various contexts, including short, long, and reinforcement learning (RL) scaling regimes. At its core is Kimi Delta Attention (KDA)—a refined version of Gated DeltaNet that introduces a more efficient gating mechanism to optimize the use of finite-state RNN memory.

Kimi Linear achieves superior performance and hardware efficiency, especially for long-context tasks. It reduces the need for large KV caches by up to 75% and boosts decoding throughput by up to $6\times$ for contexts as long as 1M tokens.

We open-source the KDA kernel in FLA , and release two versions model checkpoints trained with 5.7T tokens.

Model #Total Params #Activated Params Context Length Download Link
Kimi-Linear-Base 48B 3B 1M 🤗 Hugging Face
Kimi-Linear-Instruct 48B 3B 1M 🤗 Hugging Face
Key Features
  • Kimi Delta Attention (KDA): A linear attention mechanism that refines the gated delta rule with finegrained gating.
  • Hybrid Architecture: A 3:1 KDA-to-global MLA ratio reduces memory usage while maintaining or surpassing the quality of full attention.
  • Superior Performance: Outperforms full attention in a variety of tasks, including long-context and RL-style benchmarks on 1.4T token training runs with fair comparisons.
  • High Throughput: Achieves up to 6× faster decoding and significantly reduces time per output token (TPOT).
Usage
Inference with Hugging Face Transformers

To use the Kimi Linear model, we recommend the following environment:

  • python >= 3.10
  • torch >= 2.6
  • fla-core >= 0.4.0
pip install -U fla-core

Example Code:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "moonshotai/Kimi-Linear-48B-A3B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)

messages = [
    {"role": "system", "content": "You are a helpful assistant provided by Moonshot-AI."},
    {"role": "user", "content": "Is 123 a prime?"}
]
input_ids = tokenizer.apply_chat_template(
    messages, 
    add_generation_prompt=True, 
    return_tensors="pt"
).to(model.device)
generated_ids = model.generate(inputs=input_ids, max_new_tokens=500)
response = tokenizer.batch_decode(generated_ids)[0]
print(response)
Deployment

For deployment, you can use the latest vllm to create an OpenAI-compatible API endpoint.

vllm serve moonshotai/Kimi-Linear-48B-A3B-Instruct \
  --port 8000 \
  --tensor-parallel-size 4 \
  --max-model-len 1048576 \
  --trust-remote-code
Citation

If you found our work useful, please cite

@article{kimi2025kda,
  title  = {Kimi Linear: An Expressive, Efficient Attention Architecture},
  author = {kimi Team},
  year   = {2025},
  url    = {https://github.com/MoonshotAI/Kimi-Linear/blob/master/tech_report.pdf}
}

Runs of moonshotai Kimi-Linear-48B-A3B-Instruct on huggingface.co

205.7K
Total runs
0
24-hour runs
-4.8K
3-day runs
-7.7K
7-day runs
41.8K
30-day runs

More Information About Kimi-Linear-48B-A3B-Instruct huggingface.co Model

More Kimi-Linear-48B-A3B-Instruct license Visit here:

https://choosealicense.com/licenses/mit

Kimi-Linear-48B-A3B-Instruct huggingface.co

Kimi-Linear-48B-A3B-Instruct huggingface.co is an AI model on huggingface.co that provides Kimi-Linear-48B-A3B-Instruct's model effect (), which can be used instantly with this moonshotai Kimi-Linear-48B-A3B-Instruct model. huggingface.co supports a free trial of the Kimi-Linear-48B-A3B-Instruct model, and also provides paid use of the Kimi-Linear-48B-A3B-Instruct. Support call Kimi-Linear-48B-A3B-Instruct model through api, including Node.js, Python, http.

Kimi-Linear-48B-A3B-Instruct huggingface.co Url

https://huggingface.co/moonshotai/Kimi-Linear-48B-A3B-Instruct

moonshotai Kimi-Linear-48B-A3B-Instruct online free

Kimi-Linear-48B-A3B-Instruct huggingface.co is an online trial and call api platform, which integrates Kimi-Linear-48B-A3B-Instruct's modeling effects, including api services, and provides a free online trial of Kimi-Linear-48B-A3B-Instruct, you can try Kimi-Linear-48B-A3B-Instruct online for free by clicking the link below.

moonshotai Kimi-Linear-48B-A3B-Instruct online free url in huggingface.co:

https://huggingface.co/moonshotai/Kimi-Linear-48B-A3B-Instruct

Kimi-Linear-48B-A3B-Instruct install

Kimi-Linear-48B-A3B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Kimi-Linear-48B-A3B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Kimi-Linear-48B-A3B-Instruct install, users can directly use Kimi-Linear-48B-A3B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Kimi-Linear-48B-A3B-Instruct install url in huggingface.co:

https://huggingface.co/moonshotai/Kimi-Linear-48B-A3B-Instruct

Url of Kimi-Linear-48B-A3B-Instruct

Kimi-Linear-48B-A3B-Instruct huggingface.co Url

Provider of Kimi-Linear-48B-A3B-Instruct huggingface.co

moonshotai
ORGANIZATIONS

Other API from moonshotai

huggingface.co

Total runs: 1.9M
Run Growth: 1.9M
Growth Rate: 99.98%
Updated:May 12 2026
huggingface.co

Total runs: 1.9M
Run Growth: -3.5M
Growth Rate: -186.79%
Updated:April 30 2026