Nodes/Ray's Orenchi/🧰 Ray's Model Tools: Save Model
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.

By MutantSparrowΒ·Created 4 months agoΒ·Updated 3 days agoΒ· 1
🧰 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)

NameTypeDefaultDescription
filename_prefixSTRINGRay_ModelFilename stem, without .safetensors. No counter is added; spaces and unsupported characters become underscores.
metadata_modeCOMBOmergeMerge preserves source metadata and adds connected fields. Replace keeps only connected fields, required quantization metadata and save history.
overwriteBOOLEANfalseAllow replacing an existing file. Off preserves it and reports a filename collision.
output_folderSTRINGmodel_toolsDestination folder on the server. Blank uses ComfyUI output; relative folders are inside output. Missing folders are created when saving.
modeloptMODELConnected model to process, including its active patches and LoRAs. Takes precedence over a model-data handle or file source.
clipoptCLIPOptional text encoder to include with the connected model. It must match the model architecture and selected component scope.
vaeoptVAEOptional VAE to preserve with the connected model when the operation supports complete checkpoints.
model_dataoptRAY_MODEL_DATAFile or in-memory model result from another Model Tools node. Supports data-only processing without initializing inference components.
metadataoptRAY_MODEL_METADATAStructured model metadata from another node. Use Metadata Load / Edit to inspect or change its fields.
metadata_jsonoptSTRINGAdditional metadata as a JSON object. Values may be text or JSON values; duplicate keys and invalid numbers are rejected.
pathoptSTRINGExisting source file or supported sharded model folder on the ComfyUI server. A connected live model or model-data handle takes precedence where available.
output_pathoptSTRINGOptional explicit destination file on the ComfyUI server. Leave blank for automatic output naming; the extension must match the selected output mode.

Outputs (2)

NameTypeDescription
model_dataRAY_MODEL_DATAModel 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_pathSTRINGActual server path of the completed output file. Emitted only after a successful save.