I don't want a list of general info, I want a direct back and forth, one topic at a…
- User
I don't want a list of general info, I want a direct back and forth, one topic at a time, so I can answer so you know what to explain, and I can ask specific questions or request clarifications, starting from the beginning. I already have some experience with merging models, today with mecha merge in ComfyUI, I did some crossover merging, and distributed crossover, which worked well for models closely aligned, but not with models further apart, I did end on doing slerp merges at 0.2, merging a few similar models in a chain with my own merged model.
- Assistant
Great! It sounds like you have a solid understanding of merging models, especially with your experience in ComfyUI. To start, would you like to dive deeper into a specific merging technique (like slerp or crossover), talk about model compatibility, or perhaps something else related to your merging process? Let me know where you want to focus!
- User
I kind of want to truly understand what I am doing, like I understand for example, a weighted sum merge, where it takes a ratio of the values from each model, like I assume if I do a weighted sum merge of 0.5, it will take the unet and text encoders of both models, and take the middle for each weight, so if model a has 1.0, and the same weight in model b is 0.5, the merged model would get 0.75? But it would be nice to be able to try and predict what that means for an AI diffusion model. Because all I have done is try a merge with no real understanding, then generate images from text prompts, using same seed, samplers and steps, for the models and the resulting merged model, and compare the results myself, manually, but if I don't test absolutely everything, which is impossible, I have no idea if I lost a concept, impacted a concept negatively, or properly gained a concept. And I don't have a solid way of saying I want my model to pick up X concept from a model, and then merge it to learn that concept.
- Assistant
Your understanding of weighted sum merges is on the right track! In a weighted sum merge, you're indeed taking a ratio of the values from each model's components (like UNet and text encoder). For your example: if model A has a weight of 1.0 and model B has 0.5 for the same parameter, then a 0.5 weighted average would yield:
- User
I guess I need more specific examples, though going back to what I said earlier about doing merges using slerp, at 0.2, I think due to the slerp algorithm, it seems to perform better than weighted sum, but I don't understand the why, or if it isn't just some kind of placebo effect, a coincidence for my specific tests that I performed. This is why I want to gain a better understanding, but I don't really know where to start to fill in the gaps of what I know.
- Assistant