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

add kill switch file support to gracefully exit training at runtime #412

Merged
merged 11 commits into from
Jul 17, 2024

Conversation

polisettyvarma
Copy link

No description provided.

@@ -678,6 +679,9 @@ def _add_network_size_args(parser):
help='Untie embeddings and output weights.'),
group.add_argument('--embedding-weights-in-fp32', action='store_true',
help='Cast word embedding weights to fp32 before embedding fwd.'),
group.add_argument('--kill-switch-path', type=str, default=None,
help='Path to look for a kill switch. '
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@polisettyvarma, is the kill switch meant to be a file or a folder, or both? Can this be clarified in the help message?

@polisettyvarma polisettyvarma changed the title add kill switch support to gracefully exit training add kill switch support to gracefully exit training at runtime Jul 11, 2024
@polisettyvarma
Copy link
Author

@tjruwase can you please review once

@tjruwase
Copy link

@tjruwase can you please review once

@polisettyvarma, PR looks good to me overall. My question is about the usage as it is currently unclear to me whether a kill switch is a file or a folder. Can you please update the docs to clarify this?

@polisettyvarma
Copy link
Author

@tjruwase can you please review once

@polisettyvarma, PR looks good to me overall. My question is about the usage as it is currently unclear to me whether a kill switch is a file or a folder. Can you please update the docs to clarify this?

@tjruwase i have changed the code, please have a look again. what do you mean by docs here ?

@polisettyvarma polisettyvarma changed the title add kill switch support to gracefully exit training at runtime add kill switch file support to gracefully exit training at runtime Jul 17, 2024
@tjruwase
Copy link

@tjruwase i have changed the code, please have a look again. what do you mean by docs here ?

Thanks for making the changes. Looks great. Sorry for the confusion, by docs I meant the help message.

@tjruwase tjruwase merged commit fc989b8 into microsoft:main Jul 17, 2024
1 check passed
@polisettyvarma polisettyvarma deleted the kill_switch branch July 17, 2024 17: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.

2 participants