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

Improve overflow handling in ZeRO #6976

Open
wants to merge 75 commits into
base: master
Choose a base branch
from
Open

Improve overflow handling in ZeRO #6976

wants to merge 75 commits into from

Conversation

tjruwase
Copy link
Contributor

@tjruwase tjruwase commented Jan 28, 2025

Fix #5241: Improve overflow handling

  • ZeRO 1
  • ZeRO 2
  • ZeRO 3
  • BF16Optimizer

Enable pydantic configuration for mixed precision

  • bf16
  • fp16

@tjruwase
Copy link
Contributor Author

@delock, @inkcherry, can you please help investigate the failing xpu-max1100 CI? Thanks!

@delock
Copy link
Collaborator

delock commented Feb 5, 2025

@delock, @inkcherry, can you please help investigate the failing xpu-max1100 CI? Thanks!

@tjruwase thanks! Our engineer is looking into it.

fabiendupont and others added 12 commits February 6, 2025 13:02
NVIDIA Blackwell GPU generation has number 10. The SM code and
architecture should be `100`, but the current code generates `1.`,
because it expects a 2 characters string.

This change modifies the logic to consider it as a string that contains
a `.`, hence splits the string and uses the array of strings.

Signed-off-by: Fabien Dupont <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Logan Adams <[email protected]>
Signed-off-by: Fabien Dupont <[email protected]>
Co-authored-by: Fabien Dupont <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
1. update intel oneAPI basekit to 2025.0
2. update torch/ipex/oneccl to 2.5

Signed-off-by: Olatunji Ruwase <[email protected]>
Same as [this PR](#6922).
[affeb88](affeb88)
I noticed the CI updated the DCO check recently. Using the suggested
rebase method for sign-off would reintroduce many conflicts, so I opted
for a squash merge with sign-off instead. thanks: )

Signed-off-by: inkcherry <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
@tjruwase tjruwase requested a review from hwchen2017 as a code owner February 7, 2025 14:57
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.

[BUG] Zero2 offload overflow
9 participants