# Ewolucyjne łączenie modeli

EN: **Evolutionary model merging** · id `evolutionarymerge` · aliases: evolutionary model merge, merge recipe search, layer stacking

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Trenowanie i dostrajanie](https://aiatlasgraph.com/t/training.md) › [Łączenie modeli](https://aiatlasgraph.com/t/merging.md) › Ewolucyjne łączenie modeli

## Description

- PL: Algorytm ewolucyjny przeszukuje możliwe proporcje wag lub sposoby składania warstw zamiast polegać na jednym ręcznie dobranym przepisie. W pracy źródłowej pokazano również łączenie modeli wyspecjalizowanych w różnych dziedzinach.
- EN: An evolutionary algorithm searches weight mixtures or layer compositions instead of relying on one hand-designed recipe. The source paper also demonstrates merging models specialised in different domains.

## In one sentence

- PL: To automatyczne szukanie dobrego przepisu na połączenie modeli przez kolejne próby i wybór lepszych wariantów.
- EN: This automatically searches for a useful model-merging recipe through successive trials and selection of better variants.

## Problem it solves

- PL: Możliwych proporcji i układów modeli jest zbyt wiele, żeby ręcznie sprawdzić każdy przepis.
- EN: There are too many possible model proportions and arrangements to check every recipe by hand.

## What it does

- PL: Algorytm zmienia przepisy łączenia, ocenia powstałe modele i rozwija lepiej wypadające kombinacje, podobnie do selekcji kolejnych pokoleń.
- EN: An algorithm varies merging recipes, evaluates the resulting models and develops stronger combinations, like selection across successive generations.

## Everyday example

- PL: Program próbuje różnych proporcji zgodnych wariantów i wybiera te, które lepiej radzą sobie z przygotowanymi zadaniami.
- EN: Software tries different proportions of compatible variants and selects those performing better on prepared tasks.

## This concerns you if you…

- PL: chcesz przeszukać wiele sposobów łączenia
- PL: masz testy pozwalające porównywać powstałe modele
- EN: want to explore many merging recipes
- EN: have tests for comparing the resulting models

## Keywords

Evolutionary Model Merge · CMA-ES · mergekit-evolve · data flow space merging · parameter space merging

## How it works

- PL: Populacja receptur określa współczynniki parametrów lub układ warstw pochodzących z różnych checkpointów. Ewaluacja nadaje fitness, a selekcja i mutacje tworzą kolejne kandydaty, przeszukując przestrzeń scalania bez zwykłej aktualizacji gradientowej wag.
- EN: A recipe population specifies parameter coefficients or layer arrangements from different checkpoints. Evaluation assigns fitness, and selection plus mutations creates successive candidates, searching merge spaces without ordinary gradient-based weight updates.

## Limits

- PL: Ocena wielu kandydatów może być kosztowna i przeuczać zestaw selekcyjny. Przestrzeń receptur ogranicza wynik; zgodność architektur i niezależne testy pozostają konieczne.
- EN: Evaluating many candidates can be expensive and overfit selection sets. Recipe spaces constrain outcomes; architecture compatibility and independent tests remain necessary.

## Key terms

- PL: **fitness**: Wynik oceniający przydatność kandydata według celu przeszukiwania.
- PL: **mutacja receptury**: Zmiana sposobu łączenia parametrów lub warstw w kandydacie.
- EN: **fitness**: A score assessing candidate suitability under the search objective.
- EN: **recipe mutation**: Changing how a candidate combines parameters or layers.

## Know first

- [Przeszukiwanie lokalne (wspinaczka, wyżarzanie) (Local search (hill climbing, simulated annealing))](https://aiatlasgraph.com/t/localsearch.md)
- [Zbiory testowe i regresje (Evaluation datasets and regression tests)](https://aiatlasgraph.com/t/evalsets.md)

## Examples

- PL: ewolucja w przestrzeni wag · składanie warstw z różnych modeli · łączenie międzydziedzinowe
- EN: evolution in weight space · stacking layers from different models · cross-domain merging

## Related topics

Untyped, symmetric "see also" links.

- [Arytmetyka zadań (task vectors, TIES, DARE) (Task arithmetic and task vectors)](https://aiatlasgraph.com/t/taskarithmetic.md)
- [Neuroewolucja (Neuroevolution)](https://aiatlasgraph.com/t/neuroevolution.md)

## Sources

- [Evolutionary Optimization of Model Merging Recipes](<https://arxiv.org/abs/2403.13187>) `sakana-evomerge-2024` · by Takuya Akiba, Makoto Shing, Yujin Tang i in. (Sakana AI)

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/evolutionarymerge · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
