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 allreduce latency and memory usage calculation when using tp #28

Merged
merged 2 commits into from
Nov 13, 2024
Merged

Conversation

cli99
Copy link
Owner

@cli99 cli99 commented Nov 13, 2024

What does this PR do?

This PR makes the following changes:

  1. In get_memory_optimizer_state_and_gradient_per_layer, updatingmemory_optimizer_state_others_per_layer given layernorm is not sharded across the tensor parallel processes.
  2. In get_latency_fwd_per_tp_comm, using get_intra_node_bandwidth which is adjusted by intra_node_memory_efficiency in allreduce latency calculation.

What issue(s) does this change relate to?

Related to #27

@cli99 cli99 merged commit d841e40 into main Nov 13, 2024
1 check passed
@cli99 cli99 deleted the fix-tp branch November 13, 2024 22:41
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.

1 participant