Nodes/Ray's Orenchi/🧰 Ray's Model Tools: Metadata Save
ComfyUI Node

🧰 Ray's Model Tools: Metadata Save

Save metadata as a structured JSON sidecar, or apply it to a safetensors copy without changing any tensor bytes.

By MutantSparrowΒ·Created 4 months agoΒ·Updated 3 days agoΒ· 1
🧰 Ray's Model Tools: Metadata Save
  • metadata
  • saved_path
β—„modejson_sidecarβ–Ί
β—„filename_prefixmodel_tools/Ray_Metadataβ–Ί
β—„overwritefalseβ–Ί
β—„metadata_jsonβ–Ί
β—„source_model_pathβ–Ί
β—„output_pathβ–Ί
CategoryπŸ‘‘ Ray/🧰 Model Tools

Inputs (7)

NameTypeDefaultDescription
modeCOMBOjson_sidecarSave a standalone JSON metadata sidecar, or copy a source model with new embedded metadata while preserving its tensor bytes.
filename_prefixSTRINGmodel_tools/Ray_MetadataName or prefix for automatic output under ComfyUI's output folder. An explicit Output file takes precedence when available.
overwriteBOOLEANfalseAllow replacement of an existing destination file. Off preserves existing files and reports a filename collision instead of replacing them.
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.
source_model_pathoptSTRINGSource safetensors model whose tensor bytes will be copied with the supplied metadata. Required in model-copy mode.
output_pathoptSTRINGOptional explicit destination file on the ComfyUI server. Leave blank for automatic output naming; the extension must match the selected output mode.

Outputs (1)

NameTypeDescription
saved_pathSTRINGActual server path of the completed output file. Emitted only after a successful save.