-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Added support for neptune logger #8210
Conversation
Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com>
for more information, see https://pre-commit.ci
@@ -195,6 +195,36 @@ def test_trainer_loggers(self, tmp_path): | |||
) | |||
assert isinstance(test_trainer.logger, pl.loggers.WandbLogger) | |||
|
|||
@pytest.mark.unit | |||
def test_trainer_neptune_logger(self, tmp_path): | |||
pytest.importorskip("neptune", reason="could not import `neptune`, use `pip install neptune` to run this test") |
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.
Added conditional test case skip if neptune is not installed.
if "api_key" not in neptune_kwargs and not os.getenv("NEPTUNE_API_TOKEN", None): | ||
raise ValueError( | ||
"either api_key should be set in neptune_kwargs or NEPTUNE_API_TOKEN should be set in environment variable for neptune_logger" | ||
) |
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.
Havent checked for import error here, as PyTorchLightning by default checks for the same within its NeptuneLogger wrapper.
Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com>
… into nemo_main Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com>
jenkins |
Hi @titu1994 what would be the next process to get this merged to the main trunk ? |
Could you avoid merging the main branch with this PR, I need to see the tests pass. It is fine if the branch is out of date with the main branch. |
jenkins |
I guess the automation is completed and all checks have passed. |
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.
Thanks for the PR !
* Added support for neptune logger Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed config indentation in example config Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> --------- Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Added support for neptune logger Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed config indentation in example config Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> --------- Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: stevehuang52 <heh@nvidia.com>
* Added support for neptune logger Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed config indentation in example config Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> --------- Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: Sasha Meister <ameister@nvidia.com>
* Added support for neptune logger Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed config indentation in example config Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> --------- Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: Pablo Garay <pagaray@nvidia.com>
* Added support for neptune logger Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed config indentation in example config Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> --------- Signed-off-by: Harishankar G <harishankar.gopalan@ymail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
What does this PR do ?
Adds Neptune logging support to NeMo which is already exposed by the PTL trainer.
Collection: Core, NLP
Changelog
Usage
# Add a code snippet demonstrating how to use this
Jenkins CI
To run Jenkins, a NeMo User with write access must comment
jenkins
on the PR.Before your PR is "Ready for review"
Pre checks:
PR Type:
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.
@titu1994
Additional Information