> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CheckpointSave - ComfyUI Built-in Node Documentation

> Complete documentation for the CheckpointSave node in ComfyUI. Learn its inputs, outputs, parameters and usage.

`Save Checkpoint` 节点用于将完整的 Stable Diffusion 模型（包括 UNet、CLIP 和 VAE 组件）保存为 **.safetensors** 格式的检查点文件。

该节点主要用于模型合并工作流。在通过 `ModelMergeSimple`、`ModelMergeBlocks` 等节点创建新的合并模型后，您可以使用此节点将结果保存为可复用的检查点文件。

## 输入

| 参数      | 描述                                                  | 数据类型   |
| ------- | --------------------------------------------------- | ------ |
| `模型`    | 此参数表示要保存状态的主模型。它对于捕获模型的当前状态以便将来恢复或分析至关重要。           | MODEL  |
| `clip`  | 此参数用于与主模型关联的 CLIP 模型，允许将其状态与主模型一同保存。                | CLIP   |
| `vae`   | 此参数用于变分自编码器（VAE）模型，允许将其状态与主模型和 CLIP 一同保存，以备将来使用或分析。 | VAE    |
| `文件名前缀` | 此参数指定保存检查点文件时使用的文件名前缀。                              | STRING |

此外，该节点还有两个用于元数据的隐藏输入：

**prompt (PROMPT)**：工作流提示信息
**extra\_pnginfo (EXTRA\_PNGINFO)**：附加的 PNG 信息

## 输出

此节点将输出一个检查点文件，对应的输出文件路径为 `output/checkpoints/` 目录。

## 架构兼容性

* 完全支持：SDXL、SD3、SVD 及其他主流架构，详见[源代码](https://github.com/comfyanonymous/ComfyUI/blob/master/comfy_extras/nodes_model_merging.py#L176-L189)
* 基础支持：其他架构可以保存，但不包含标准化的元数据信息。

## 相关链接

相关源代码：[nodes\_model\_merging.py#L227](https://github.com/comfyanonymous/ComfyUI/blob/master/comfy_extras/nodes_model_merging.py#L227)

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/CheckpointSave/zh.md)
