Closed SH9959 closed 3 months ago
Actually, the edited_model
is a reference (address) to model
, so they are essentially the same.
😆Yes. But my question is that the weights of the specific layer in edited_model
are recovered by weight_copy
which records the origin value of origin model. So the edited_model
gets the same weights as the origin model. I'm confused about whether the return value is what we expect. 🤔
👍Yes, your understanding is correct. In the past editing literature, the measurements were the results of a single edit, so it was necessary to roll back after each evaluation. However, in EasyEdit, you can enable continuous editing by setting keep_original_weights = False
, more details in the issue #220
Oh, I see. Thanks for your reply!😆
Dear EasyEdit team, I may have found a seeming contradiction
line 307: EasyEdit/easyeditor/editors/editor.py