EasyEdit icon indicating copy to clipboard operation
EasyEdit copied to clipboard

MEMIT error

Open GuodongFan opened this issue 1 year ago • 2 comments

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

Image

Expected behavior

None

GuodongFan avatar Sep 17 '25 14:09 GuodongFan

I also encountered the same issue, which I resolved by installing transformers==4.51.3 and torch==2.1.0

zeta-zl avatar Sep 18 '25 12:09 zeta-zl

Hi, we didn't meet your error. Maybe you can check the environment and try again. @zeta-zl Thanks for your comments.

littlefive5 avatar Sep 20 '25 00:09 littlefive5