Replies: 3 comments 1 reply
-
There isn't a way to know how much a model has changed or what's in a merge in any verifiable way at this time. So yes, you're scenario of someone using 99% of a model is totally possible. |
Beta Was this translation helpful? Give feedback.
-
@JustMaier I asked ChatGPT, and it sounds like there is a way to compare the weights between two models to see how similar they are. It recommended two methods, MSE and MAE. It sounds like MAE might give a better general idea of how similar the weights are overall:
I wonder if this method could be used to see how similar or different two model files are. I tried using ChatGPT to whip up some Python code to check two ckpt files using the MAE method, but my programming skills are insufficient to know how these ckpt files are structured, and how to extract the data for comparison. It recommended extracting the state_dict key and then use this code to compare the weights:
|
Beta Was this translation helpful? Give feedback.
-
@JustMaier Here's a Python tool I just discovered which claims to do the kind of thing I was talking about, compare the similarity of models by percentage: https://huggingface.co/JosephusCheung/ASimilarityCalculatior Civitai could use this tool (or something similar) to help users see how models are related to each other, or show users which models are most similar to any particular model. For example, someone on Reddit used this script to get the similarity of all models in a folder compared to a "base model": |
Beta Was this translation helpful? Give feedback.
-
I wonder if it is possible to tell from a model itself how closely related it is to other models. Can people do a merge of their favorite model with another, at like 99% weighted sum, so it generates a whole new hash, and then upload it to Civitai and call it their own? Is that preventable somehow, or at least will show that 99% of the model is similar to another model already on Civitai? Is there a way to compare models, essentially, in their internal weightings, to see how similar/different they are from each other?
Beta Was this translation helpful? Give feedback.
All reactions