Nodes/ComfyUI-NynxzNodes/Model Merge by Depth
ComfyUI Node

Model Merge by Depth

Blend two fine-tunes of the same model block by block: model A's share runs from `early` in the first blocks to `late` in the last, crossing over around `crossover`. Early blocks mostly set the layout, late ones the texture — for MOSS-Image try SFT as A (composition) and Base as B (realism).

By Nynxz·Created 11 months ago·Updated 2 days ago· 5
Model Merge by Depth
  • model_a
  • model_b
  • model
◄early1.00►
◄late0.00►
◄crossover21►
◄softness8►
CategoryNynxz/Model Merging

Inputs (6)

NameTypeDefaultDescription
model_aMODELThe early blocks' model, e.g. MOSS SFT.
model_bMODELThe late blocks' model, e.g. MOSS Base.
earlyFLOAT1.000–1Model A's share in the first blocks (1 = all A).
lateFLOAT0.000–1Model A's share in the last blocks (0 = all B).
crossoverINT210–200The block where the blend is halfway. MOSS has 42 blocks (0-41).
softnessINT80–100How many blocks either side the crossover takes. 0 = a hard cut.

Outputs (1)

NameTypeDescription
modelMODEL—