Merge Methods
M-DNA Forge supports 12 merge strategies, each suited to different scenarios. Methods are organized by difficulty level.Easy Methods
SLERP
Spherical Linear Interpolation — the recommended method for merging 2 models.
SLERP interpolates on the hypersphere rather than linearly, which preserves the magnitude of weight vectors and typically produces more coherent results than simple averaging.
Best for: 2 models with similar architecture and training data.
Average
Weighted Mean — simplest merge, averages all tensors by weight. Weights are normalized to sum to 1.0 automatically. Best for: Very similar models (e.g., same model at different training checkpoints).Passthrough
Direct Copy — copies tensors directly from a single parent. Useful as a starting point or for simple layer stacking. Best for: Creating deeper models or debugging merge pipelines.Intermediate Methods
Task Arithmetic
Task Vector Addition — requires a base model. Computes task vectors (finetune - base) for each parent, scales them, and adds them back to the base.
Best for: Combining multiple finetunes of the same base model.
Frankenmerge
Layer Cherry-Picking — select which parent provides each output layer. Requires explicit layer assignments (set in the Layers tab). Each offspring layer is a direct copy from a chosen parent’s layer. Auto-assign options:- SPLIT: Alternating (A, B, A, B…)
- INTERLEAVE: Equal chunks
DARE
Drop And REscale — prunes delta parameters before merging. Requires a base model.
Randomly drops delta parameters and rescales the remainder to maintain expected magnitude.
Best for: Efficient merging with sparsity-based parameter selection.
TIES
Trim, Elect Sign, Merge — resolves interference between task vectors. Requires a base model.
Trims small-magnitude parameters, resolves sign conflicts by majority vote, then merges. Produces cleaner results than Task Arithmetic.
Best for: Base + multiple finetunes where task vectors conflict.
Advanced Methods
DeLLa
Density-based Layer-Level Adaptive — adapts merge density per layer. Requires a base model.
Uses layer-level analysis to set different densities for different layers, giving more weight to layers that differ more.
Best for: Advanced merges where uniform density across layers is suboptimal.
Component Merge
Per-Component Routing — route attention, MLP, and norm components to different parents. Instead of merging at the tensor level, assign each component type (attention projections, MLP layers, normalization) to a specific parent. Best for: When different parents excel at different architectural components.Tensor Surgery
Per-Tensor Source Mapping — individually assign each tensor to a parent. Maximum control: specify exactly which parent provides each tensor in the output model. Best for: Expert users who need fine-grained control over every tensor.Parameter Slice
Dimensional Slicing — slice tensors along specific dimensions across parents.
Takes slices of tensor dimensions from different parents to create hybrid tensors.
Best for: Experimental merges with dimensional composition.
MoE Conversion
Mixture-of-Experts — convert dense models to MoE architecture.
Uses parent models as expert networks and creates a gating mechanism.
Best for: Creating sparse models that route tokens to specialized experts.
Quick Reference
Cross-Dimension Resolution Strategies
When merging models with different hidden dimensions or vocab sizes, ForgeAI applies a resolution strategy to adapt tensor shapes before running the merge method.Interpolation is auto-selected when a dimension mismatch is detected. You can change the strategy in the compatibility panel before merging.