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

Tensor Parallel #153

Merged
merged 32 commits into from
Aug 29, 2023
Merged

Tensor Parallel #153

merged 32 commits into from
Aug 29, 2023

Conversation

zkh2016
Copy link
Collaborator

@zkh2016 zkh2016 commented Aug 23, 2023

PR主要修改点:

  1. 添加tensor parallel模式:Support Tensor Parallel #149
  2. 修改topology以支持PP,TP,ZERO组合
  3. 修改parameter相关代码,适配TP模式
  4. PP去除单独切分参数的逻辑,复用CheckpointBlock的参数切分
  5. save/load适配TP模式

TODO:

  1. 优化linear,反向通信可以overlap

@zkh2016 zkh2016 requested a review from Achazwl August 23, 2023 11:37
bmtrain/nn/__init__.py Outdated Show resolved Hide resolved
bmtrain/nn/column_parallel_linear.py Outdated Show resolved Hide resolved
bmtrain/nn/embedding.py Outdated Show resolved Hide resolved
bmtrain/parameter.py Outdated Show resolved Hide resolved
bmtrain/param_init.py Outdated Show resolved Hide resolved
bmtrain/block_layer.py Outdated Show resolved Hide resolved
bmtrain/block_layer.py Outdated Show resolved Hide resolved
bmtrain/init.py Outdated Show resolved Hide resolved
bmtrain/init.py Outdated Show resolved Hide resolved
bmtrain/init.py Outdated Show resolved Hide resolved
@zkh2016 zkh2016 changed the title [WIP]Tensor Parallel Tensor Parallel Aug 24, 2023
bmtrain/init.py Outdated Show resolved Hide resolved
@zkh2016 zkh2016 merged commit df43d6d into OpenBMB:dev Aug 29, 2023
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.

2 participants