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 StragglerDetection and FTlauncher to NeMo2.0 #11117

Closed
wants to merge 38 commits into from

Conversation

ShriyaPalsamudram
Copy link
Collaborator

@ShriyaPalsamudram ShriyaPalsamudram commented Oct 31, 2024

What does this PR do ?

Add StragglerDetection and FTlauncher to NeMo2.0

Collection: [Note which collection this PR will affect]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

Copy link
Contributor

github-actions bot commented Nov 1, 2024

[🤖]: Hi @ShriyaPalsamudram 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully

So it might be time to merge this PR or get some approvals

I'm just a bot so I'll leave it you what to do next.

//cc @pablo-garay @ko3n1g

@ericharper
Copy link
Collaborator

@maanug-nv to introduce abstraction to reduce number of files changed to add a callback for all recipes.

Copy link
Contributor

github-actions bot commented Nov 5, 2024

[🤖]: Hi @ShriyaPalsamudram 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully

So it might be time to merge this PR or get some approvals

I'm just a bot so I'll leave it you what to do next.

//cc @pablo-garay @ko3n1g

assert any(
map(
lambda callback: (
callback.__fn_or_cls__ == PreemptionCallback if '__fn_or_cls__' in dir(callback) else False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does Nsys not work with Preemption? is this supposed to be FaultToleranceCallback ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This assert is part of the ConfigValidationPlugin where we are validating Preemption callback. Only change here is to add if '__fn_or_cls__' in dir(callback) else False because there was some other callback that didn't have __fn_or_cls__ and hence this assert was failing.

ShriyaPalsamudram and others added 11 commits November 15, 2024 04:58
Signed-off-by: ShriyaPalsamudram <[email protected]>
Signed-off-by: Shriya Palsamudram <[email protected]>
Signed-off-by: Shriya Palsamudram <[email protected]>
Signed-off-by: ShriyaPalsamudram <[email protected]>
Signed-off-by: Shriya Palsamudram <[email protected]>
Signed-off-by: Shriya Palsamudram <[email protected]>
Signed-off-by: ShriyaPalsamudram <[email protected]>
@ShriyaPalsamudram ShriyaPalsamudram marked this pull request as ready for review November 19, 2024 16:20
assert "Straggler report processing time" in log_content
if args.crash_step:
assert f"Exception: Simulating a crash at step {args.crash_step}!" in log_content

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should somehow confirm that we still finish the training despite the crash, right? Maybe the common.verify_ckpt_dir will be enough, it should ensure that there's a checkpoint for step 20.

Copy link
Contributor

beep boop 🤖: 🚨 The following files must be fixed before merge!


Your code was analyzed with PyLint. The following annotations have been identified:


------------------------------------
Your code has been rated at 10.00/10

Thank you for improving NeMo's documentation!

Copy link
Contributor

beep boop 🤖: 🙏 The following files have warnings. In case you are familiar with these, please try helping us to improve the code base.


Your code was analyzed with PyLint. The following annotations have been identified:

************* Module nemo.lightning.run.plugins
nemo/lightning/run/plugins.py:81:0: C0301: Line too long (145/119) (line-too-long)
nemo/lightning/run/plugins.py:92:0: C0301: Line too long (201/119) (line-too-long)
nemo/lightning/run/plugins.py:102:0: C0301: Line too long (200/119) (line-too-long)
nemo/lightning/run/plugins.py:104:0: C0301: Line too long (127/119) (line-too-long)
nemo/lightning/run/plugins.py:188:0: C0301: Line too long (174/119) (line-too-long)
nemo/lightning/run/plugins.py:264:0: C0301: Line too long (150/119) (line-too-long)
nemo/lightning/run/plugins.py:71:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:112:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:166:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:211:4: C0116: Missing function or method docstring (missing-function-docstring)
nemo/lightning/run/plugins.py:274:4: C0116: Missing function or method docstring (missing-function-docstring)

-----------------------------------
Your code has been rated at 9.16/10

Thank you for improving NeMo's documentation!

@ShriyaPalsamudram
Copy link
Collaborator Author

Close PR as the tests are being added as part of #11406

@ShriyaPalsamudram ShriyaPalsamudram deleted the shriya/resiliency branch December 2, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants