-
Notifications
You must be signed in to change notification settings - Fork 343
Expose hardcoded Megatron infrastructure parameters to user config #2230
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: main
Are you sure you want to change the base?
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -134,7 +134,9 @@ def __init__( | |||||
| self.rank = get_rank_safe() | ||||||
|
|
||||||
| # Step 1: Setup distributed | ||||||
| setup_distributed() | ||||||
| setup_distributed( | ||||||
| timeout_minutes=config.get("megatron_cfg", {}).get("distributed_timeout_minutes"), | ||||||
|
Contributor
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. We encourage to set default value in config.yaml instead of in code, so that people can know what feature we have and their default behavior w/o looking into the code. Can you help to:
Suggested change
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. similarly this is cfg.dist.distributed_timeout_minutes in megatron bridge. just chekcing this is fine. |
||||||
| ) | ||||||
|
|
||||||
| # Step 2: Validate and setup model paths | ||||||
| hf_model_name, pretrained_path, pt_checkpoint_exists = validate_model_paths( | ||||||
|
|
||||||
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.
these args are access from megatron as
cfg.checkpoint.async_savebut I don't see the "checkpoint" part here, could you double check this part