Skip to content

[QEff Finetune]: Added support for gradient checkpointing in the finetuning script. - #338

Merged
Swati Allabadi (quic-swatia) merged 11 commits into
qualcomm:mainfrom
quic-meetkuma:grad_checkpointing
Apr 11, 2025
Merged

Swati Allabadi (quic-swatia) merged 11 commits into
qualcomm:mainfrom
quic-meetkuma:grad_checkpointing

Conversation

@quic-meetkuma

Copy link
Copy Markdown
Contributor

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has "supports_gradient_checkpointing" attribute set to True.

@quic-mamta Mamta Singh (quic-mamta) changed the title Added support for gradient checkpointing in the finetuning script. [QEff Finetune]: Added support for gradient checkpointing in the finetuning script. Apr 9, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add eager team's code reference for qaic_debug API changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix couple of comments.

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
@quic-swatia
Swati Allabadi (quic-swatia) merged commit b88b758 into qualcomm:main Apr 11, 2025
Dhiraj Kumar Sah (quic-dhirajku) pushed a commit that referenced this pull request Apr 16, 2025
…tuning script. (#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Meet Patel (quic-meetkuma) added a commit to vbaddi/efficient-transformers that referenced this pull request Apr 21, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Erick Platero (eplatero97) pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Erick Platero (eplatero97) pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Erick Platero (eplatero97) pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: eplatero <quic_eplatero@quicinc.com>
Erick Platero (eplatero97) pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>
Signed-off-by: eplatero <quic_eplatero@quicinc.com>
Erick Platero (eplatero97) pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>

Signed-off-by: eplatero <quic_eplatero@quicinc.com>
Erick Platero (eplatero97) pushed a commit to eplatero97/efficient-transformers that referenced this pull request Apr 29, 2025
…tuning script. (qualcomm#338)

Added --gradient_checkpointing new CLI flag to enable this feature.
Currently this is enabled for all the HF models which has
"supports_gradient_checkpointing" attribute set to True.

---------

Signed-off-by: Meet Patel <quic_meetkuma@quicinc.com>

Signed-off-by: eplatero <quic_eplatero@quicinc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants