Adaptation of the merging method described in the paper - Git Re-Basin: Merging Models modulo Permutation Symmetries (https://arxiv.org/abs/2209.04836) for Stable Diffusion
Even though the position_ids are supposed to be ignored I think the code still converts them to floats/halfs which they shouldn't be, they should be int64.
A quick fix I did was to put this line before the torch.save:
Even though the position_ids are supposed to be ignored I think the code still converts them to floats/halfs which they shouldn't be, they should be int64.
A quick fix I did was to put this line before the torch.save: