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

BMTrain New Version Release v1.0.0 #182

Merged
merged 62 commits into from
Feb 26, 2024
Merged

BMTrain New Version Release v1.0.0 #182

merged 62 commits into from
Feb 26, 2024

Conversation

MayDomine
Copy link
Collaborator

@MayDomine MayDomine commented Feb 1, 2024

BMTrain New Version Release v1.0.0

Issue Reference

Issue #174

Description

This new version of BMTrain introduces Tensor Parallelism and a significant restructuring of the codebase. We have enhanced flexibility by allowing for more granular control over ZeRO levels and Activation Checkpointing. This control is now achievable at the bmt.Block (alias of bmt.CheckpointBlock) level, enabling targeted optimizations. For instance, it is now possible to apply aggressive ZeRO settings or disable Checkpointing in specific layers as needed. Additionally, the updated BMTrain features a suite of operators designed explicitly for Tensor Parallel training.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

(Describe the tests used to validate the changes. Please provide instructions for reproduction.)

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Additional Information

(Provide any additional information, configuration details, or data necessary for the review.)

Achazwl and others added 30 commits July 21, 2023 22:16
remove  inappropriate import in __init__.py
* using hooks to implement ZeRO and Checkpoint
---------

Co-authored-by: zhangkaihuo <zhangkaihuo@modelbest.cn>
FIX Error: tensor slice in gather()
MayDomine and others added 3 commits February 23, 2024 13:48
Optimizer load gathered state and record delta feature are supported now
Vocab parallel Embedding impl and make example work when tp_size > 1
@MayDomine MayDomine merged commit dd2b5bc into main Feb 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants