Skip to content

FSDP2 with Ghost Clipping and Fast Gradient Clipping prototyping #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

aparna-aketi
Copy link
Contributor

Summary:
Integrating FSDP2 with Opacus

First Prototype:

  1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
  2. No freezing/unfreezing of parameters in between the training.

Design Doc: Opacus Ghost Clipping and FSDP2

Differential Revision: D70533184

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 14, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

facebook-github-bot pushed a commit that referenced this pull request May 14, 2025
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

facebook-github-bot pushed a commit that referenced this pull request Jun 4, 2025
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
facebook-github-bot pushed a commit that referenced this pull request Jun 4, 2025
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
facebook-github-bot pushed a commit that referenced this pull request Jun 4, 2025
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

@pytorch pytorch deleted a comment from facebook-github-bot Jun 4, 2025
@pytorch pytorch deleted a comment from facebook-github-bot Jun 4, 2025
facebook-github-bot pushed a commit that referenced this pull request Jun 6, 2025
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
facebook-github-bot pushed a commit that referenced this pull request Jun 6, 2025
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

aparna-aketi added a commit that referenced this pull request Jun 10, 2025
Summary:
Pull Request resolved: #761

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@pytorch pytorch deleted a comment from facebook-github-bot Jun 10, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

aparna-aketi added a commit that referenced this pull request Jun 10, 2025
Summary:
Pull Request resolved: #761

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

aparna-aketi added a commit that referenced this pull request Jun 10, 2025
Summary:
Pull Request resolved: #761

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

aparna-aketi added a commit that referenced this pull request Jun 10, 2025
Summary:
Pull Request resolved: #761

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

aparna-aketi added a commit that referenced this pull request Jun 10, 2025
Summary:
Pull Request resolved: #761

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
3. No freezing/unfreezing of parameters in between the training.

Design Doc: [Opacus Ghost Clipping and FSDP2](https://docs.google.com/document/d/1MHqIMKBAXhkUZYQ9kkHCmUs3iLq_G5Q25uS1u3g7Asw/edit?tab=t.0#heading=h.eqambyjwzqsu)

Differential Revision: D70533184
Summary:

Integrating FSDP2 with Opacus

First Prototype:
1. FSDP is supported only if all the layers with trainable parameters are supported by ghost clipping or fast gradient clipping.
2. No freezing/unfreezing of parameters in between the training.

Differential Revision: D70533184
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70533184

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a478ad5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants