-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Apply packed sequence params change for fused rope compatibility #11506
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
Changes from all commits
3346acb
055f9e1
4920196
9eca847
8b370dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| import os | ||
| from dataclasses import dataclass | ||
|
|
||
| import torch | ||
| from megatron.core.optimizer import OptimizerConfig | ||
|
|
||
| from nemo import lightning as nl | ||
|
|
@@ -55,6 +56,8 @@ def get_args(): | |
| strategy = nl.MegatronStrategy( | ||
| tensor_model_parallel_size=args.tp_size, | ||
| pipeline_model_parallel_size=args.pp_size, | ||
| # Pipeline dtype is coupled with the bf16 mixed precision plugin | ||
| pipeline_dtype=torch.bfloat16, | ||
|
Comment on lines
+59
to
+60
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fyi @hemildesai @BoxiangW for the parallelism setting refactor. this requirement is coming after #10954 which validates that the pipeline dtype is now set here. there are multiple paths to set this:
setting it in multiple places feels wrong, especially since users have to make 2 hops in the codebase to figure this out:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a better way than hardcoding |
||
| ) | ||
|
|
||
| trainer = nl.Trainer( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.