fix(geneformer): add nvidia-resiliency-ext>=0.6.0 dependency#1600
Open
svc-bionemo wants to merge 1 commit into
Open
fix(geneformer): add nvidia-resiliency-ext>=0.6.0 dependency#1600svc-bionemo wants to merge 1 commit into
svc-bionemo wants to merge 1 commit into
Conversation
megatron-core now requires nvidia-resiliency-ext>=0.6.0 at import time (via dist_checkpointing.strategies.nvrx.has_nvrx_async_support). The base container image (nvcr.io/nvidia/pytorch:26.04-py3) ships an older version, causing an AssertionError during test collection for all tests that import geneformer.convert (which transitively imports nemo.lightning → megatron.core). Add the explicit dependency pin so pip installs the required version during the Docker build. Signed-off-by: svc-bionemo <267129667+svc-bionemo@users.noreply.github.com>
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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.
Problem
The nightly CI run for
models/geneformerfails with:All 4 failing tests (
test_geneformer_checkpoint_loss,test_geneformer_checkpoint_weight_compatibility,test_te_bert_layer_and_hf_bert_layer_similar_output_values_random_inputs,test_geneformer_model_loss_validity) hit this at import time through the chain:geneformer.convert→nemo.lightning→megatron.core→dist_checkpointing.strategies.nvrx.has_nvrx_async_support()Root Cause
megatron-corenow requiresnvidia-resiliency-ext >= 0.6.0at import time, but the base container image (nvcr.io/nvidia/pytorch:26.04-py3) ships an older version. Since the geneformerpyproject.tomldid not pin this transitive dependency,pip installduring Docker build did not upgrade it.Fix
Add
nvidia-resiliency-ext>=0.6.0as an explicit dependency inbionemo-recipes/models/geneformer/pyproject.toml.CI Run
https://github.com/NVIDIA-BioNeMo/bionemo-framework/actions/runs/26945822391