Skip to content
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

Allow FSDP prefetch to be configurable #307

Open
RobotSail opened this issue Oct 25, 2024 · 0 comments
Open

Allow FSDP prefetch to be configurable #307

RobotSail opened this issue Oct 25, 2024 · 0 comments

Comments

@RobotSail
Copy link
Member

To optimize training times, FSDP allows you to overlap computation by either prefetching parameters before the current set of parameters' gradient computation. While fast, this adds to the total memory used by FSDP. There are three total prefetch policies provided by FSDP, which are documented here

Since this setting affects the total memory used by FSDP, we should allow this to be a configurable setting within the FSDPOptions object.

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

No branches or pull requests

1 participant