Closed threeFeetCat123 closed 4 months ago
您好,IKE方法属于保留模型参数的编辑方法,没有修改模型参数,模型还是原来的模型,详情参见论文https://arxiv.org/abs/2305.12740
Do you have any further questions?
那请问我如何将模型保存下来,自己评测编辑效果,而不是通过EasyEdit的evaluation来评测编辑效果。
我想自动化地自行测试,而不是像下面这种自己手动嵌入demonstration,毕竟论文也不是这样评测编辑效果的
感谢。
EasyEdit only provides specific evaluation methods. If you want to customize your own evaluation method, I recommend you modify this function:https://github.com/zjunlp/EasyEdit/blob/2cff1a72c88900eb3522325d4121161502118e4a/easyeditor/evaluate/evaluate.py#L164
ok, thanks.
你好,
我使用IKE方法,编辑了qwen-7b-chat的模型,结果保存在这里。
但当我单独运行编辑后的模型,它没有任何变动,没有编辑成功。但evaluation的结果告诉我,编辑得十分成功。
当我看 EasyEdit/tutorial-notebooks 的其他示例时,发现他们都没有保存模型以及demonstration,而是直接将demonstration嵌入到prompt进行测试。
最后,我发现在results下有经过embedding处理的demonstration,demonstration和model并没有在连接在一起发挥作用,导致编辑没有效果。
不知道是我的代码缺少一些东西,还是目前EasyEdit还不支持保存经过IKE编辑的模型。
下面是我使用IKE编辑qwen的代码。
十分感谢,你能看到这里! 祝你身体健康。