EasyEdit
EasyEdit copied to clipboard
MEMIT error
Describe the bug
ModelEdit/EasyEdit/easyeditor/models/memit/compute_z.py", line 104, in edit_output_fn cur_out[0][idx, i, :] += delta IndexError: too many indices for tensor of dimension 2
To Reproduce
Expected behavior
None
I also encountered the same issue, which I resolved by installing transformers==4.51.3 and torch==2.1.0
Hi, we didn't meet your error. Maybe you can check the environment and try again. @zeta-zl Thanks for your comments.