-
Notifications
You must be signed in to change notification settings - Fork 667
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
Support for logging with aim. #534
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #534 +/- ##
=======================================
Coverage 83.71% 83.71%
=======================================
Files 9 9
Lines 350 350
=======================================
Hits 293 293
Misses 57 57
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@tesfaldet Thank you for the feature! |
I slighlty changed formatting for consistency with the template. Also uncommented the |
I noticed that when I do Do you also experience this issue? |
So it's not just me. I've been experiencing this as well. I'll have to think about what may be causing this issue. It might be some thread-locking-related issue due to how Lightning, Aim, and Hydra are interacting. Could be a Hydra task function thing, or a Lightning logging thing, or Aim logging... They all potentially use multiple threads IIRC |
Maybe we can add some aim closing call to lightning-hydra-template/src/utils/utils.py Lines 197 to 207 in ed7dea4
|
Oh wow I missed that utility function. That would be a perfect place to test that idea out. I believe Aim exposes such a function. Will check later today. |
An update on this. I found what's causing the issue and it'll take some time to address, but I'm continuing to look into it. There's an infinite loop that gets caused by Aim's run status reporter, where the line This will require me creating a PR for Aim's logger btw. I have a line of communication with the Aim folks so I can try to quickly ask them to verify what's going on before creating a PR for their lightning logger. |
An update: my hypothesis was correct :) I found a fix and will update this PR soon. |
Issue created here aimhubio/aim#2550 |
Hi @ashleve! So there's a temporary workaround for the above issue: aimhubio/aim#2550 (comment). However, considering that this issue is not really something that is to be solved by this PR—because it's an issue with Aim and not the PR—and that there is a temporary workaround, would it be okay to just incorporate that workaround into this PR and to continue the thread of conversation of merging this PR? The workaround has the compromise of disabling Aim's ability to capture console logs and show them in the UI (or at least I think so). |
@tesfaldet from what I understand, for now we just need to add |
Yeah I believe so! I haven't tested it out yet so I'll try that later today and make the necessary changes if I verify it works. After that, you can try it on your end to see if it works for you. Then we should be done if it all works out :) I'll be sure to put a comment next to |
@ashleve apologies for the hold-up! It should be ready for you to test out yourself now :) |
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.
@tesfaldet That was a long PR, thank you for all the effort you put!
Thank you for this awesome template! I'm glad I could be of some help :) |
* Support for logging with Aim (#534) * Update template to Lightning 2.0 (#548) * Update pre-commit hooks (#549) * Refactor utils (#541) * Add option for pytorch 2.0 model compilation (#550) * Update `README.md` (#551) --------- Co-authored-by: Mattie Tesfaldet <[email protected]> Co-authored-by: Johnny <[email protected]>
What does this PR do?
Integrating support for logging with Aim. See this example that shows how to use its lightning integration. More information on Aim's PyTorch Lightning adapter here.
Before submitting
pytest
command?pre-commit run -a
command?Did you have fun?
Yar