-
Notifications
You must be signed in to change notification settings - Fork 37
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 arbitrary metric logging from torchmetrics #677
Conversation
6232173
to
c43eff6
Compare
/build-ci |
44e7217
to
a79fc4e
Compare
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #677 +/- ##
=======================================
Coverage ? 86.27%
=======================================
Files ? 119
Lines ? 7249
Branches ? 0
=======================================
Hits ? 6254
Misses ? 995
Partials ? 0 ☔ View full report in Codecov by Sentry. |
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.
I tentatively approve to unblock, but the tests are failing, and I wasn’t able to experiment with it.
sub-packages/bionemo-llm/src/bionemo/llm/model/biobert/model.py
Outdated
Show resolved
Hide resolved
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.
Could we get some tests for these new classes? Would be great to have unit tests around MetricConfig
that show how it's used, as well as a short training run with some simple model that ensures it gets serialized correctly, produces the right results, etc.
sub-packages/bionemo-esm2/tests/bionemo/esm2/scripts/test_finetune_esm2.py
Show resolved
Hide resolved
sub-packages/bionemo-esm2/tests/bionemo/esm2/scripts/test_finetune_esm2.py
Outdated
Show resolved
Hide resolved
sub-packages/bionemo-esm2/tests/bionemo/esm2/scripts/test_finetune_esm2.py
Outdated
Show resolved
Hide resolved
ecc9f67
to
4d61dc6
Compare
### Description Added templates for issues related to bug reporting and feature requesting. Follows guidance in https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository ### Type of changes <!-- Mark the relevant option with an [x] --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Refactor - [ ] Documentation update - [x] Other (please describe): UI ### CI Pipeline Configuration Configure CI behavior by applying the relevant labels: - [SKIP_CI](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#skip_ci) - Skip all continuous integration tests - [INCLUDE_NOTEBOOKS_TESTS](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#include_notebooks_tests) - Execute notebook validation tests in pytest > [!NOTE] > By default, the notebooks validation tests are skipped unless explicitly enabled. ### Usage <!--- How does a user interact with the changed code --> ```python TODO: Add code snippet ``` ### Pre-submit Checklist <!--- Ensure all items are completed before submitting --> - [ ] I have tested these changes locally - [ ] I have updated the documentation accordingly - [ ] I have added/updated tests as needed - [ ] All existing tests pass successfully Signed-off-by: sichu <[email protected]>
skip running our test pipeline on PRs marked as "draft" to save CI resources Signed-off-by: Peter St. John <[email protected]> Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
This reverts commit a180864. Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
Signed-off-by: sichu <[email protected]>
21ecdf9
to
232a162
Compare
Description
Training and validation
torchmetrics.Metric
can is organized byTorchmetricsConfig
. This encapsulates metric class instantiation and naming throughget_metric_name
instead of usingfield_factory
.Currently model parallelism is not supported and will raise
NotImplementedError
.Type of changes