-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(train): create single entrypoint #553
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #553 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 128 128
Lines 4284 4284
=========================================
Hits 4284 4284 ☔ View full report in Codecov by Sentry. |
num_nodes: int = 1, | ||
nproc_per_node: int = 1, | ||
retry_count: int = 3, | ||
local_run: bool = False, |
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.
probably should be True
by default
torch_launcher_api.elastic_launch(config, _parse_spec_and_train)() | ||
|
||
|
||
def _lightning_train( |
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.
maybe rename to _lightning_train_local
"full_state_ckpt_path": full_state_ckpt_path, | ||
} | ||
|
||
_create_ddp_master_job( |
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.
maybe rename to _lightning_train_remote
|
||
train_spec = { | ||
"@type": "lightning_train", | ||
"regime": regime, |
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.
should prolly use [builder lookup here
"regime": builder.get_initial_builder_spec(regime), | ||
"trainer": builder.get_initial_builder_spec(trainer), | ||
"train_dataloader": builder.get_initial_builder_spec(train_dataloader), | ||
"val_dataloader": builder.get_initial_builder_spec(val_dataloader), |
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.
I think we gotta check if any of these are None here
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.
💯
No description provided.