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

Question about one deepspeed-config: contiguous_gradients #531

Open
williechai opened this issue Nov 20, 2024 · 1 comment
Open

Question about one deepspeed-config: contiguous_gradients #531

williechai opened this issue Nov 20, 2024 · 1 comment
Assignees

Comments

@williechai
Copy link

For the code:

contiguous_gradients: false
, contiguous_gradients is deepspeed memory optimization, which is default True. I am very curious why is it set False in CogvideoX sft procedure? And we accidentally discovered that when it is set to True, the loss will become abnormally large when training on more than 128 GPUs; so what is your motivation for disabling it? Could you please share it?

Reference:
image
(according to https://www.deepspeed.ai/docs/config-json/#bfloat16-training-options)

@yzy-thu
Copy link
Contributor

yzy-thu commented Nov 20, 2024

Sorry, we didn't pay attention to this setting before. We've always used it this way. Hope someone can provide an explanation.

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

4 participants