-
Notifications
You must be signed in to change notification settings - Fork 67
Update performance scripts #1478
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
base: llmb-r0.2.0
Are you sure you want to change the base?
Conversation
5f17628 to
9a00e84
Compare
f2856bc to
0af5c29
Compare
| layout_map = { | ||
| (1, 1): None, | ||
| (4, 1): [["embedding"] + ["decoder"] * 16, ["decoder"] * 16, ["decoder"] * 16, ["decoder"] * 13 + last_layer], | ||
| (8, 1): [["embedding"] + ["decoder"] * 8] + [["decoder"] * 8] * 6 + [["decoder"] * 5 + last_layer], | ||
| (4, 2): [["embedding"] + ["decoder"] * 8] + [["decoder"] * 8] * 6 + [["decoder"] * 5 + last_layer], | ||
| (16, 1): [["embedding"] + ["decoder"] * 4] + [["decoder"] * 4] * 14 + [["decoder"] + last_layer], | ||
| (8, 2): [["embedding"] + ["decoder"] * 4] + [["decoder"] * 4] * 14 + [["decoder"] + last_layer], | ||
| (4, 4): [["embedding"] + ["decoder"] * 4] + [["decoder"] * 4] * 14 + [["decoder"] + last_layer], | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the source material for this layout map? It appears to be unique to ds v3 recipe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had to set this layout again because of the issue mentioned here: #1502
- Megatron-Bridge creates the recipe with default values.
- If user passes parallelism configs it overrides the recipe attributes with user given ones.
- The layout needs to be updated with the final PP-VP setting. This code block handles that.
Signed-off-by: Sanju C Sudhakaran <[email protected]>
Signed-off-by: Sanju C Sudhakaran <[email protected]>
Signed-off-by: Sanju C Sudhakaran <[email protected]>
0af5c29 to
648fe39
Compare
Signed-off-by: Sanju C Sudhakaran <[email protected]>
No description provided.