Who this is for. Anyone who has merged two fine-tunes with mergekit or a similar tool and wonders whether the result is better than what they started with. The background section explains the terms used later, so you need no more than that.
Background: four ideas you need
1. Merging: arithmetic on weights
A model is a very large list of numbers, its weights. A fine-tune starts from a base model's weights and trains them further for one job, so two fine-tunes of the same base have the same shape and differ only in how their numbers moved. Merging combines them with arithmetic, number by number, into one model, without training. The methods PSI's Commons offers:
| Method | What it does, roughly |
|---|---|
| average, weighted | the mean of the parents' numbers, equal or with a strength per parent |
| trimmed mean | the mean after dropping the extreme values |
| TIES, DARE-TIES | keep each parent's largest changes from the base, choose one sign per number, and average the changes that agree (DARE-TIES first drops a random share of each change) |
| task arithmetic | base + λ × the sum of each parent's change (for public Hugging Face models) |
| layer graft | each layer taken whole from one parent, the parents in turn |
2. Distance between parents
Commons measures how far each parent's weights sit from their base: 0 is identical, a light fine-tune is a few hundredths away. Parents far from the base (0.5 and above) are more like separate models of the same shape, and tend to break when merged.
3. A recipe makes the merge checkable
A recipe names each parent by hash, the method by the hash of its code, and the hash the result must have. Because every method is canonical (fixed arithmetic in a fixed order), building the same recipe gives the same bytes on any computer, and the build is refused if a hash does not match. That is what makes your test one that anyone can repeat.
4. Held-out tests, a rule set in advance, and intervals
A held-out test set is one no model in the comparison was trained on. A score on it is a share of items right, and with a few hundred items it has noise: a 95% interval is the range the true score is likely in. "49.5% (95% interval 42.6 to 56.4)" means a second test set of the same size could easily have given 45% or 54%; two scores whose intervals overlap widely are not shown to differ. Writing down what counts as success before you look keeps the result from being argued into a win afterwards.
What you need
- PSI installed. See Install.
- Two models of the same shape, each good at one thing. For small models, the stories260K seed line in Commons runs on a CPU. For Qwen-sized models from Hugging Face, you need the GPU memory of the models involved, Python with PyTorch, and a Hugging Face token in Settings > Hugging Face (the Hugging Face parts of Commons stay hidden until one is saved and confirmed).
- Held-out test sets for both things, plus, if you can make one, a model trained jointly on both tasks.
- Your success rule, written down, and a table to fill in:
| Model | Task A score (95% interval) | Task B score (95% interval) |
|---|---|---|
| Specialist A | ||
| Specialist B | ||
| Joint training | ||
| The merge |
Steps
Step 1. Screen the parents
- Open Commons in the left menu (under Beta), and its Recipes tab.
- For public models, scroll to section 5, type the base (for example
Qwen/Qwen2.5-0.5B) and press Find models that merge with it. PSI lists the base's public fine-tunes and marks which ones have the same shape; the others cannot be ticked. - Tick both parents, choose a method and λ, and press Make the recipe. PSI downloads each model once (each file checked against its hash), merges them on the processor, and checks the recipe: the from base column of the table is each parent's distance from its base, and a parent far from it gets a warning beginning Far from the base.
Parents far apart (0.5 and above) tend to break when merged; the screen predicted the Qwen Instruct plus Coder failure before it happened.
Step 2. Build a recipe
- For branches of a seed line trained in PSI, use section 4, make a recipe from branches here: tick the branches, choose the method (average, weighted, trimmed mean, TIES, DARE-TIES or layer graft), name it and press Make the recipe. (For public models, step 1 already made the recipe.)
- In section 2, your recipes: check, then build, press Check on the recipe, then Build it. Tick also write a GGUF to run the result in the other views.
- Done looks like this: Built: the same bytes the recipe expects. The recipe pins both parents by hash and records the expected output hash, so anyone can rebuild it.
Step 3. Set the rule in advance
Write down what counts as success before you look: for example, within 2 points of each specialist on its own test.
Step 4. Test against the right alternatives
Score the merge on both held-out sets beside the specialists themselves, and a model trained jointly on both tasks if you can make one. The base model is not the comparison; a merge beats the base trivially.
Step 5. Report with intervals
A 95% interval on each score, from the held-out set, is the difference between a result and an anecdote. Fill in the table, then apply the rule from step 3.
What we saw
If your merge loses ground on one skill the way ours did, your test is working as ours did; compare your table with these numbers.
Two specialists, addition at 80.5% and word reversal at 100%, merged into one model that does both. Addition fell to 49.5% (95% interval 42.6 to 56.4), below the specialist and below joint training at 86%. A medical fine-tune merged with Qwen Instruct landed between its parents. So far, merging buys one model instead of two; it does not buy quality.
What it will not tell you
Whether your merge fails the same way. That is the point: the recipe makes your test reproducible, and the rule set in advance keeps you honest about the result.
Share it either way
Push the recipe to Hugging Face with the psi-recipe tag. A negative result with a recipe is worth more to the next person than a positive one without.
Questions people ask
Does merging two fine-tuned models make a better model?
Not in these tests. Two specialists, addition at 80.5% and word reversal at 100%, merged into one model that does both, but addition fell to 49.5% (95% interval 42.6 to 56.4), below the specialist and below joint training at 86%; so far merging buys one model instead of two, not quality.
Can I predict whether a model merge will fail?
Partly: the distance screen in PSI's Commons measures each parent against its base, and parents far apart (0.5 and above) tend to break when merged. The screen predicted the Qwen Instruct plus Coder failure before it happened.
What should I compare a merged model against?
The specialists themselves, and a model trained jointly on both tasks if you can make one; not the base model, which a merge beats trivially. Write the success rule down before you look, and report each score with a 95% interval from a held-out set.
What does a merge recipe mean, in plain words?
A recipe is a short, checkable description of how a merged model is made: each parent named by the hash of its files, the merge method named by the hash of its code, and the hash the result must have. In PSI's Commons, building the same recipe gives the same bytes on any computer, so anyone can rebuild a merge and repeat a test of it.