ComfyUI Node

LC LoRA Extract

Makes a LoRA from the difference between a finetuned model and its base (e.g. Krealism minus Krea 2 Turbo). Any precision on either side. Unchanged layers are left out of the file.

By lonecatone23·Created 19 days ago·Updated about 17 hours ago· 3
LC LoRA Extract
  • finetuned
  • base
  • report
◄partsall layers►
◄blocks14-27►
◄rank256►
◄keep0.90►
◄min_change0.0010►
◄filenameKrea 2/Your Loras/extracted_lora►
◄save_dtypebf16►
◄enabledtrue►
◄embed_workflowtrue►
◄metadatakeep all►
CategoryLC Modelbuilder

Inputs (12)

NameTypeDefaultDescription
finetunedMODELThe finetune or merge (e.g. Krealism). Any precision.
baseMODELThe model it was built on (e.g. Krea 2 Turbo). Any precision.
partsCOMBOall layersall layers = the whole difference. blocks only = just the numbered blocks (on Krea 2 this leaves out text fusion and the embedding layers; use it for a LoRA meant for Krea 2 Raw). custom blocks = the list below.
blocksSTRING14-27Used with custom blocks: ranges and single numbers, e.g. 14-27 or 4-9, 16, 20-22.
rankINT2561–4096Highest rank any layer may use. Layers that need less stay smaller.
keepFLOAT0.900.5–1How much of each layer's change to keep (0.90 = 90%). Higher = closer to the finetune, bigger file. Krealism: 0.90 at rank 256 matched the full model.
min_changeFLOAT0.00100–0.1Layers that changed less than this (relative to the layer) count as unchanged and are left out. 0.001 skips bf16 rounding noise.
filenameSTRINGKrea 2/Your Loras/extracted_loraSaved under models/loras. A number is added instead of overwriting.
save_dtypeCOMBObf162 options: bf16, fp16
enabledBOOLEANtrueOff = skip the save entirely (no file written), without physically bypassing the node. Convert to an input to gate saving from a switch elsewhere in the graph.
embed_workflowBOOLEANtrueInclude the prompt and workflow JSON in the saved file's metadata. Turn off before sharing/publishing a checkpoint if you don't want your exact node graph attached.
metadataoptCOMBOkeep allkeep all = everything this save normally writes (with embed_workflow on, your whole node graph). necessary only = just what loading needs (quant settings, if any) plus the architecture and trigger words: no workflow, no training details, no titles or edit notes. Use it before sharing a file.

Outputs (1)

NameTypeDescription
reportSTRING—