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

fix serialization of RunningMoments on multiple GPUs #1892

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

claralp
Copy link
Contributor

@claralp claralp commented Aug 1, 2024

This issue is related to PR #1869

When training in a distributed setup, the collected count of the RunningMoments class ended up being a tensor, not an integer. This led to errors in json serializtion.

This fixes the type of xs_count in distributed trainings.
Previous fix (see c220350) caused tests to fail and was therefore reverted by @kashif. Also @seanexp

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@kashif
Copy link
Collaborator

kashif commented Aug 1, 2024

thanks @claralp could you kindly run the pre-commit to fix the formatting?

@claralp claralp force-pushed the bco_checkpointing_fix branch from 03a713f to a1e7613 Compare August 1, 2024 20:10
@kashif kashif merged commit 2004d62 into huggingface:main Aug 4, 2024
4 of 9 checks passed
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.

3 participants