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
Would love to be able to use gradient checkpointing on VisionEncoderDecoder model.
model.gradient_checkpointing_enable()
Traceback (most recent call last):
File "", line 1, in
File "/opt/conda/lib/python3.8/site-packages/transformers/modeling_utils.py", line 1418, in gradient_checkpointing_enable
raise ValueError(f"{self.class.name} does not support gradient checkpointing.")
ValueError: VisionEncoderDecoderModel does not support gradient checkpointing.
Motivation
Gradient checkpointing always helps increase the accessibility of larger models - HuggingFace is awesome!!!
Your contribution
Happy to take a stab at this if someone can point me to a previous example of this working with an EncoderDecoder model.
The text was updated successfully, but these errors were encountered:
Feature request
Would love to be able to use gradient checkpointing on VisionEncoderDecoder model.
Motivation
Gradient checkpointing always helps increase the accessibility of larger models - HuggingFace is awesome!!!
Your contribution
Happy to take a stab at this if someone can point me to a previous example of this working with an EncoderDecoder model.
The text was updated successfully, but these errors were encountered: