Nodes/LoRA Power-Merger ComfyUI/PM Della (Mergekit)
ComfyUI Node

PM Della (Mergekit)

Concept: Extends DARE by using adaptive pruning based on parameter magnitudes within each row of the delta parameters (task vectors). It calculates keep probabilities for each parameter: parameters with larger magnitudes within a row are assigned higher probabilities of being kept, while parameters with smaller magnitudes are assigned lower probabilities. These keep probabilities are scaled to range from density - epsilon (for the smallest magnitude element in a row) to density + epsilon (for the largest magnitude element in a row). This method aims to retain important changes while reducing interference, followed by DARE-like rescaling. Variants: della: DELLA pruning with TIES sign consensus della_linear: DELLA pruning without TIES sign consensus Use Cases: Fine-grained control over pruning by prioritizing parameters with larger magnitude changes Combining models where preserving the most significant changes is crucial Inputs: Requires 2 or more models, plus one base_model. Key Parameters: weight (per-model): Weight for each model's task vector density (per-model): Target fraction of weights to retain in differences from the base model epsilon (per-model): Defines the half-width of the range for keep probabilities. Keep probabilities for parameters in a row will range from density - epsilon to density + epsilon, mapped from the smallest to largest magnitude parameters in that row, respectively. epsilon must be chosen such that density - epsilon > 0 and density + epsilon < 1. lambda (global): As in Task Arithmetic

By larsupb·Created 2 years ago·Updated 9 days ago· 75
PM Della (Mergekit)
    • MergeMethod
    tiesfalse
    rescale_normdefault
    density0.85
    epsilon0.10
    normalizetrue
    CategoryLoRA PowerMerge/Task Arithmetic

    Inputs (5)

    NameTypeDefaultDescription
    tiesBOOLEANfalseUse sign consensus algorithm of ties algorithm.
    rescale_normCOMBOdefaultRescaling strategy: • default: Auto-select (L1 for methods needing it, none otherwise) • l1: L1 norm preservation (precise, preserves magnitude sum) • l2: L2 norm preservation (precise, preserves Euclidean norm) • linf: L-infinity norm (preserves max absolute value, prevents amplification) • none: No rescaling (may reduce merge strength)
    densityFLOAT0.850–1Fraction of weights in differences from the base model to retain.
    epsilonFLOAT0.100–1Maximum change in drop probability based on magnitude. Drop probabilities assigned will range from density - epsilon to density + epsilon.
    normalizeBOOLEANtrueIf true, the weights of all models contributing to a tensor will be normalized. Default behavior.

    Outputs (1)

    NameTypeDescription
    MergeMethodMergeMethod