ComfyUI Node
π§° Ray's Model Tools: Save Model
Save a connected MODEL or model_data as <filename_prefix>.safetensors in the output folder, without a counter. MODEL saves bake active patches; connect CLIP/VAE to include them. Connect metadata to merge or replace the source metadata. Existing files require overwrite.
π§° Ray's Model Tools: Save Model
- model
- clip
- vae
- model_data
- metadata
- model_data
- saved_path
βfilename_prefixRay_ModelβΊ
βmetadata_modemergeβΊ
βoverwritefalseβΊ
βoutput_foldermodel_toolsβΊ
βmetadata_jsonβΊ
βpathβΊ
βoutput_pathβΊ
Categoryπ Ray/π§° Model Tools
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| filename_prefix | STRING | Ray_Model | Filename stem, without .safetensors. No counter is added; spaces and unsupported characters become underscores. |
| metadata_mode | COMBO | merge | Merge preserves source metadata and adds connected fields. Replace keeps only connected fields, required quantization metadata and save history. |
| overwrite | BOOLEAN | false | Allow replacing an existing file. Off preserves it and reports a filename collision. |
| output_folder | STRING | model_tools | Destination folder on the server. Blank uses ComfyUI output; relative folders are inside output. Missing folders are created when saving. |
| modelopt | MODEL | Connected model to process, including its active patches and LoRAs. Takes precedence over a model-data handle or file source. | |
| clipopt | CLIP | Optional text encoder to include with the connected model. It must match the model architecture and selected component scope. | |
| vaeopt | VAE | Optional VAE to preserve with the connected model when the operation supports complete checkpoints. | |
| model_dataopt | RAY_MODEL_DATA | File or in-memory model result from another Model Tools node. Supports data-only processing without initializing inference components. | |
| metadataopt | RAY_MODEL_METADATA | Structured model metadata from another node. Use Metadata Load / Edit to inspect or change its fields. | |
| metadata_jsonopt | STRING | Additional metadata as a JSON object. Values may be text or JSON values; duplicate keys and invalid numbers are rejected. | |
| pathopt | STRING | Existing source file or supported sharded model folder on the ComfyUI server. A connected live model or model-data handle takes precedence where available. | |
| output_pathopt | STRING | Optional explicit destination file on the ComfyUI server. Leave blank for automatic output naming; the extension must match the selected output mode. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| model_data | RAY_MODEL_DATA | Model Tools data handle for a source file or in-memory result. Connect it directly to compatible merge, conversion, inspection, or save nodes without an extra inference load. |
| saved_path | STRING | Actual server path of the completed output file. Emitted only after a successful save. |