Remove strict comparison of tensors against golden values in evo2 test#901
Merged
balvisio merged 1 commit intoJun 4, 2025
Merged
Conversation
trvachov
reviewed
May 30, 2025
Collaborator
trvachov
left a comment
There was a problem hiding this comment.
I think this is fine but can we have the "add notebook golden value comparisons" in this PR as well? or has that been merged already?
jstjohn
reviewed
May 30, 2025
Collaborator
jstjohn
left a comment
There was a problem hiding this comment.
Please see #905 which I think should also land. We need to check that changes work with a downstream task such as AUC on BRCA1. cc @dorotat-nv @trvachov.
41475f9 to
d70f94c
Compare
Collaborator
Author
|
/ok to test d70f94c |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #901 +/- ##
==========================================
- Coverage 84.21% 84.19% -0.02%
==========================================
Files 143 143
Lines 9044 9044
==========================================
- Hits 7616 7615 -1
- Misses 1428 1429 +1 |
0385690 to
7e0158c
Compare
Collaborator
Author
|
/ok to test 7e0158c |
Collaborator
Author
|
@trvachov and @dorotat-nv ping for review. Thank you! |
trvachov
approved these changes
Jun 2, 2025
dorotat-nv
reviewed
Jun 3, 2025
jstjohn
approved these changes
Jun 3, 2025
7e0158c to
6b01b17
Compare
afe572e to
d413a5e
Compare
Signed-off-by: Bruno Alvisio <balvisio@nvidia.com>
d413a5e to
46fa3ab
Compare
Collaborator
Author
|
/ok to test 46fa3ab |
camirr-nv
pushed a commit
that referenced
this pull request
Jun 26, 2025
#901) ### Description <!-- Provide a detailed description of the changes in this PR --> The pytorch 25.04 has CUDA 12.9 installed: ``` Build cuda_12.9.r12.9/compiler.35813241_0 ``` while pytorch 25.01 has 12.8 ``` Cuda compilation tools, release 12.8, V12.8.61 Build cuda_12.8.r12.8/compiler.35404655_0 ``` This seems to be causing numerical differences so that strict checking of tensor values fails. ### 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): Remove a strict tensor comparison that doesn't hold across CUDA version. ### 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 - [INCLUDE_SLOW_TESTS](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#include_slow_tests) - Execute tests labelled as slow in pytest for extensive testing > [!NOTE] > By default, the notebooks validation tests are skipped unless explicitly enabled. #### Authorizing CI Runs We use [copy-pr-bot](https://docs.gha-runners.nvidia.com/apps/copy-pr-bot/#automation) to manage authorization of CI runs on NVIDIA's compute resources. * If a pull request is opened by a trusted user and contains only trusted changes, the pull request's code will automatically be copied to a pull-request/ prefixed branch in the source repository (e.g. pull-request/123) * If a pull request is opened by an untrusted user or contains untrusted changes, an NVIDIA org member must leave an `/ok to test` comment on the pull request to trigger CI. This will need to be done for each new commit. ### 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 --> - [x] I have tested these changes locally - [x] I have updated the documentation accordingly - [x] I have added/updated tests as needed - [ ] All existing tests pass successfully Signed-off-by: Bruno Alvisio <balvisio@nvidia.com> Signed-off-by: Ubuntu <camirr@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The pytorch 25.04 has CUDA 12.9 installed:
while pytorch 25.01 has 12.8
This seems to be causing numerical differences so that strict checking of tensor values fails.
Type of changes
Remove a strict tensor comparison that doesn't hold across CUDA version.
CI Pipeline Configuration
Configure CI behavior by applying the relevant labels:
Note
By default, the notebooks validation tests are skipped unless explicitly enabled.
Authorizing CI Runs
We use copy-pr-bot to manage authorization of CI
runs on NVIDIA's compute resources.
automatically be copied to a pull-request/ prefixed branch in the source repository (e.g. pull-request/123)
/ok to testcomment on the pull request to trigger CI. This will need to be done for each new commit.Usage
Pre-submit Checklist