-
-
Notifications
You must be signed in to change notification settings - Fork 654
Create get_clearml_task for Ignite.contrib.handlers.ClearMLLogger #2898
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
Conversation
Hello @vfdev-5, for test cases I ran both tests locally and they worked, but they failed the Github checks. The error message says ClearML is not configured on the machine for running GitHub checks. And there doesn't seem to be any unit test that sets bypass mode to False except for the two I mentioned above. But still, I wonder if there is a way to test this scenario by bypassing the ClearML configuration? Any advice is appreciated! |
@sallycaoyu thanks for the PR, I'll check in details your above message and answer. Meanwhile, please remove unrelated files from the PR, there 41 files in this PR where majority are your local machine stuff. |
@vfdev-5 Thanks for the reply! Have removed the local machine stuff as suggested. |
from enum import Enum | ||
from typing import Any, Callable, DefaultDict, List, Mapping, Optional, Tuple, Type, Union | ||
|
||
from clearml import Task |
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.
We should use a lazy import here instead. See line 117, https://github.com/pytorch/ignite/pull/2898/files#diff-833e2ffb3025440eee9f6edb419659ce7460b9d263c23186d7c260218c9b8e1fR117
@sallycaoyu I left few comments about the code. Let's only test when bypass is True. Also, please address point 1 from the issue description ("Like TensorboardLogger"), #2888 (comment) |
@vfdev-5 Thank you for your comments! I have addressed point 1 & 2 in #2888. I have changed the method name to Also, if to test |
Thanks for the updates @sallycaoyu !
I think it is OK with
It is OK that |
@vfdev-5 Thanks for the explanation! Have added a test case for |
@sallycaoyu I just checked clearml docs and there is built-in "offline" option: https://clear.ml/docs/latest/docs/clearml_sdk/task_sdk#offline-mode |
@vfdev-5 Thanks for the suggestion! I have changed the task in bypass mode from a |
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 update @sallycaoyu !
Just a minor comment to address and it seems to be good to go
…o clearmllogger-task Update to the new version.
@vfdev-5 Thanks for the review! I have removed the "return". |
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.
LGTM, thanks for the PR @sallycaoyu !
@sallycaoyu there is something strange with CI now. Seems like updated clearml tests from PR influence distributed tests.
If the execution hangs then we can reproduce the issue. @jkhenning can you please also check the updated tests and confirm that everything is ok. Thanks |
@vfdev-5 tests look good to me |
@vfdev-5 In
This initializes the current task to an object(), not of the clearml.Task type, so I changed it to:
After the change, running the command you provided passed all tests locally. |
Fixes #2888
Description:
get_clearml_task
for theIgnite.contrib.handlers.ClearMLLogger
class.Check list: