Views
No views yet


| 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 |

python >= 3.10torch >= 2.6fla-core >= 0.4.0pip install -U fla-core1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "moonshotai/Kimi-Linear-48B-A3B-Instruct"
4model = AutoModelForCausalLM.from_pretrained(
5 model_name,
6 torch_dtype="auto",
7 device_map="auto",
8 trust_remote_code=True
9)
10tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
11
12messages = [
13 {"role": "system", "content": "You are a helpful assistant provided by Moonshot-AI."},
14 {"role": "user", "content": "Is 123 a prime?"}
15]
16input_ids = tokenizer.apply_chat_template(
17 messages,
18 add_generation_prompt=True,
19 return_tensors="pt"
20).to(model.device)
21generated_ids = model.generate(inputs=input_ids, max_new_tokens=500)
22response = tokenizer.batch_decode(generated_ids)[0]
23print(response)1vllm serve moonshotai/Kimi-Linear-48B-A3B-Instruct \
2 --port 8000 \
3 --tensor-parallel-size 4 \
4 --max-model-len 1048576 \
5 --trust-remote-code1@misc{team2025kimi,
2 title = {Kimi Linear: An Expressive, Efficient Attention Architecture},
3 author = {Zhang, Yu and Lin, Zongyu and Yao, Xingcheng and Hu, Jiaxi and Meng, Fanqing and Liu, Chengyin and Men, Xin and Yang, Songlin and Li, Zhiyuan and Li, Wentao and Lu, Enzhe and Liu, Weizhou and Chen, Yanru and Xu, Weixin and Yu, Longhui and Wang, Yejie and Fan, Yu and Zhong, Longguang and Yuan, Enming and Zhang, Dehao and Zhang, Yizhi and T. Liu, Y. and Wang, Haiming and Fang, Shengjun and He, Weiran and Liu, Shaowei and Li, Yiwei and Su, Jianlin and Qiu, Jiezhong and Pang, Bo and Yan, Junjie and Jiang, Zhejun and Huang, Weixiao and Yin, Bohong and You, Jiacheng and Wei, Chu and Wang, Zhengtao and Hong, Chao and Chen, Yutian and Chen, Guanduo and Wang, Yucheng and Zheng, Huabin and Wang, Feng and Liu, Yibo and Dong, Mengnan and Zhang, Zheng and Pan, Siyuan and Wu, Wenhao and Wu, Yuhao and Guan, Longyu and Tao, Jiawen and Fu, Guohong and Xu, Xinran and Wang, Yuzhi and Lai, Guokun and Wu, Yuxin and Zhou, Xinyu and Yang, Zhilin and Du, Yulun},
4 year = {2025},
5 eprint = {2510.26692},
6 archivePrefix = {arXiv},
7 primaryClass = {cs.CL}
8}