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

[Feature] Asyncronous Serialization #87

Open
xrsrke opened this issue Mar 2, 2024 · 0 comments
Open

[Feature] Asyncronous Serialization #87

xrsrke opened this issue Mar 2, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@xrsrke
Copy link
Member

xrsrke commented Mar 2, 2024

Move checkpoints from device memory to host memory asynchronously, and write to disk in the background => not blocking the training

In the second stage, a background process takes over, asynchronously transferring the state from the host mem- ory to a distributed file system (HDFS in our deployment) for centralized maintenance. This decoupling of operations into two stages allows the GPU workers to resume training almost immediately after dumping their state, while the more time-consuming process of writing to HDFS is offloaded to a separate, non-blocking process.

Reference: MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUs, page 7

@xrsrke xrsrke added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant