Skip to main content
The CLIPMergeSubtract node performs model merging by subtracting the weights of one CLIP model from another. It creates a new CLIP model by cloning the first model and then subtracting the key patches from the second model, with an adjustable multiplier to control the subtraction strength. This allows for fine-tuned model blending by removing specific characteristics from the base model.

Inputs

ParameterDescriptionData TypeRequiredRange
clip1The base CLIP model that will be cloned and modifiedCLIPYes-
clip2The CLIP model whose key patches will be subtracted from the base modelCLIPYes-
multiplierControls the strength of the subtraction operation (default: 1.0)FLOATYes-10.0 to 10.0
Note: The node excludes .position_ids and .logit_scale parameters from the subtraction operation, regardless of the multiplier value.

Outputs

Output NameDescriptionData Type
clipThe resulting CLIP model after subtracting the second model’s weights from the firstCLIP
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 3136cf509fcbfa291af8f820928a6cc14de7a586f953af0ada9bea949b437d86