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

Switch to FSDP #51

Closed
MichaelClifford opened this issue Oct 2, 2024 · 6 comments
Closed

Switch to FSDP #51

MichaelClifford opened this issue Oct 2, 2024 · 6 comments

Comments

@MichaelClifford
Copy link
Collaborator

FSDP is toolkit for distributed model training. It is an alternative to Deepspeed. The InstructLab team has added support for FSDP in addition to DeepSpeed in their training repo and we would like to implement FSDP instead of DeepSpeed here.

Please see instructlab/training#235 for the relevant changes.

Hopefully this change should not impact our code base significantly, and should primarily consist of updating our TrainingArgs here:
https://github.com/redhat-et/ilab-on-ocp/blob/8748546911c5188ca392a4166d7a2a5231b2b4e3/training/run_main_ds.py#L153-L154

Since this script is included in our PytorchJob image, the image will also need to be rebuilt to fully implement this change.

@astefanutti
Copy link
Collaborator

@MichaelClifford Do you think I can help on this one?

@MichaelClifford
Copy link
Collaborator Author

@astefanutti Thanks. I don't think this issue is relevant to the standalone script we are working on since its about modifying a custom run_main_ds.py script that wont be included in (at least the first iteration of) the standalone script. If you would like to help with the current training work, please take a look at #74, we can likely incorporate FSDP implementation in this PR.

@astefanutti
Copy link
Collaborator

@MichaelClifford thanks, that's a bit clearer to me now :)

Has the switch to FSDP already be completed in the training repository, or there are still some work to do?

@MichaelClifford
Copy link
Collaborator Author

@astefanutti yes, it has recently been added to the training repo

@astefanutti
Copy link
Collaborator

@MichaelClifford awesome, I've just seen #81, you guys are too fast 😃!

@MichaelClifford
Copy link
Collaborator Author

closed by #81

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

2 participants