Closed xduan7 closed 3 months ago
Hello, KN does not support batch editing. It requires the location of the knowledge neurons for each input and editing it correspondingly. So we don't recommend you conduct batch editing with KN.
Thank you for the explanation. It makes perfect sense.
I was asking because according to the is_batchable_method
method, KN is a capable of batch editing. Again, thank you for the rapid reply.
First of all, thank you for this awesome toolkit.
I have encountered an issue when I was trying to batch edit with KN on GPT 2:
I got the following message:
It seems that the error comes from this line, where the function returns a function instead of a copied weight in dict format like the other methods, e.g. the fine-tuning method.
Is there any solution to this issue? Thank you in advance.