You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a shape error if I PEFT the latest Idefics2 model at head with gradient checkpointing. The symptom is identical to this. Seems like the following block isn't compatible with gradient checkpointing.
In my local workspace a fix similar to 91f4b7e removed the shape error but a quick review of the logic from a maintainer would be lovely. Happy to submit PR after. Thanks!
The text was updated successfully, but these errors were encountered:
I get a shape error if I PEFT the latest Idefics2 model at head with gradient checkpointing. The symptom is identical to this. Seems like the following block isn't compatible with gradient checkpointing.
transformers/src/transformers/models/idefics2/modeling_idefics2.py
Lines 1593 to 1596 in e4ea19b
In my local workspace a fix similar to 91f4b7e removed the shape error but a quick review of the logic from a maintainer would be lovely. Happy to submit PR after. Thanks!
The text was updated successfully, but these errors were encountered: