Skip to content

fix imbalance autotp issue#31

Merged
delock merged 1 commit intodelock:gma/run-opt-branchfrom
Yejing-Lai:lyj/balance_autotp
Nov 16, 2023
Merged

fix imbalance autotp issue#31
delock merged 1 commit intodelock:gma/run-opt-branchfrom
Yejing-Lai:lyj/balance_autotp

Conversation

@Yejing-Lai
Copy link

fix [mlp_module, lm_head, embed_out] tp_shard imbalance issue.

if rank == None:
rank = dist.get_rank()
if num_kv_heads != None and total_size % num_kv_heads == 0:
if num_kv_heads != None and total_size % num_kv_heads == 0 and "mlp" not in str(name) and str(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the evaluation of this line if name == None?

Copy link
Owner

@delock delock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@delock delock merged commit 09a348c into delock:gma/run-opt-branch Nov 16, 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