Model details
模型介绍 中文整理 Kimi K2 模型卡片
Model use case Kimi K2 是一个先进的混合专家(Mixture-of-Experts)大语言模型,设计用于通用对话和智能体场景。该模型在知识推理、编程和工具调用等任务上表现出色,适用于需要自主问题解决能力的应用。
主要能力
Kimi K2 具备以下核心能力:大规模预训练语言模型,拥有32B激活参数和1万亿总参数;使用Muon优化器进行训练;在知识推理、编程和数学任务上达到先进水平;专门针对工具调用、推理和自主问题解决进行优化;支持128K上下文长度;支持多轮对话中的工具调用。
模型规格
架构:混合专家(MoE)
总参数:1万亿
激活参数:320亿
层数:61层(含1层Dense层)
注意力隐藏维度:7168
MoE隐藏维度:2048
注意力头数:64
专家数量:384
每token选择专家数:8
共享专家数:1
词表大小:16万
上下文长度:128K
注意力机制:MLA
激活函数:SwiGLU
模型变体
Kimi-K2-Base:基础模型,适合研究人员和开发者进行微调和定制开发。
Kimi-K2-Instruct:指令微调模型,适用于通用对话和智能体应用,无需长思考。
输入输出
支持聊天补全API调用;支持工具调用功能,模型可自主决定何时调用工具;支持包含name字段的消息格式;推荐temperature参数设置为0.6。
运行要求 模型权重采用block-fp8格式存储;推荐使用以下推理引擎:vLLM、SGLang、KTransformers、TensorRT-LLM;可通过Moonshot AI平台访问API,支持OpenAI/Anthropic兼容格式。
基本用法 部署本地推理服务后,可通过聊天端点进行交互。启用工具调用需在请求中传递可用工具列表,模型将自主决定调用时机和方式。
License 代码仓库和模型权重均采用修改版MIT许可证发布。
限制 模型在特定基准测试上的表现可能受限于输出token长度约束;部分评估因成本过高已省略。
优先采用原作者提供的中文模型卡片;仅有英文说明时由闲社AI翻译整理。重要参数、许可证和商用范围请以原文为准。
你将获得什么 完整仓库方式包含该固定版本中的权重、配置、分词器及说明文件;指定版本方式只下载所选文件或整组分片。多模态模型的投影文件、配置等依赖,请按作者说明配齐。
完整仓库可能包含多个权重格式,因此需要的磁盘空间可能大于单一格式的模型大小。下载文件不等于完成模型部署。
使用前须知 运行环境 运行模型需要的设备、工具与依赖,以原作者说明为准。
授权范围 是否允许商用、修改和分发,请查看模型许可证。
闲社提供资料与镜像下载方法,不代表已运行模型或完成安全审计。下载的代码应先检查,再执行。
Problem with the information or download? Sign in to submit feedback.
Pinned version · Multiple download options
Kimi-K2-Instruct model download Download the full repository or choose a version or file.
Choose a download source China mirror (recommended) Hugging Face official
已根据访问地区推荐 Hugging Face 官方线路,你可以手动切换。
Choose what to download
Full repository · All files Selected version / file
Need just one GGUF precision? Load the file manifest and choose a version. Direct file links do not require Python; the command below can download multiple shards together.
Load available versions and files
Quantization / file Load the manifest to choose
This reads the pinned version's file manifest; no model weights are downloaded.
Choose your operating system Windows · PowerShell Linux / macOS · Terminal
For command-line downloads, follow these steps to get the full repository or selected files. Direct file links do not need these steps.
1 Open a terminal window Create and open a folder for the model. In the folder's address bar, enter powershell and press Enter.
If Python is not installed, get it from the official Python website . In the terminal, enter python --version; continue when a version number appears.
2 First time? Install the download tool Copy this command, paste it into the terminal, press Enter and wait for installation to finish.
python -m pip install --upgrade huggingface_hubCopy install command Already installed? Continue to step 3.
3 Run the download command Select the button below, paste into the same terminal and press Enter. The tool downloads all files included in the current command.
Copy full download command
Copying does not start a download. Paste and run the command on your device.
Where are the downloaded files? Open the folder you chose. Look for the models folder. When progress stops and the terminal returns to its prompt without errors, check that all files are present. 'Copied' does not mean 'downloaded'.
No response or an error? python not found: Install Python and reopen the terminal. On Windows, follow the installer's instructions to enable command-line access.
hf not found: Confirm that step 2 succeeded, then reopen the terminal. If needed, add Python's Scripts folder to your user PATH. Do not repeatedly download scripts.
Network interrupted: Stay in the same folder and run the same command again. The tool checks existing files.
Permission or disk error: Choose a writable folder with enough free space. Do not disable system security protection.
View the full download command
请开启浏览器脚本,或使用默认 Windows 教程并展开命令手动复制执行。