Commit 557ffaa
authored
fix: update Dockerfile and requirements-dev.txt for MONAI 1.6 tutorial compatibility (#8912)
## Summary
- Rebase Docker image from `nvcr.io/nvidia/pytorch:24.10-py3` to
`25.03-py3` to support RTX 5090 (Blackwell, SM_120/CUDA 12.8); remove
the now-obsolete `torch.patch` ONNX revert which was specific to 24.10
- Pin `mlflow<3.0` — mlflow 3.x is broken on Python 3.12 due to a
relative import in `mlflow.utils.uv_utils` (`from .. import zipp` fails
at top-level scope); this caused 4 tutorial notebooks to fail in our CI
run
- Pin `transformers<5.0` — transformers 5.x references
`torch.float8_e8m0fnu` which does not exist in the nv25.03 build of
PyTorch 2.7; this caused the HuggingFace tutorial to fail
- Add `aim` and `lightning>=2.0` as declared dependencies in
`requirements-dev.txt` (were previously undeclared but required by
tutorial notebooks)
- Rebuild the NVIDIA pip constraint file to retain `numpy==1.26.4`
(nv25.03 PyTorch compiled against NumPy 1.x) and add `setuptools<71`
(newer setuptools dropped `pkg_resources` needed by legacy `setup.py` in
git-sourced packages like MetricsReloaded and segment-anything)
- Remove `python_version <= '3.10'` caps from `cucim`, `onnxruntime`,
and `transformers` — these restrictions were keeping packages out of the
Python 3.12 image unnecessarily
- Install `papermill`, `jupytext`, `autopep8`, `autoflake`, and
`ipywidgets` directly in the Dockerfile so the tutorial runner is
self-contained
## Context
These changes were identified by running the full MONAI tutorial test
suite in a fresh Docker build against a MONAI 1.6 dev branch and
comparing results with a native conda reference run (Eric's run,
`eccefc57`). The rerun with stderr captured
(`runner_output_our_only.logs`) confirmed the specific error for each
notebook group.
## Type of change
- [x] Bug fix
- [ ] Feature
- [ ] Hotfix
- [ ] Spike / exploration
- [ ] Documentation
- [ ] Refactor
## Test plan
- [ ] Rebuild Docker image with `docker build -t monai_1_6:latest .`
- [ ] Re-run `bash run_our_only.sh 2>&1 | tee runner_output_v2.logs`
inside the container
- [ ] Verify mlflow notebooks pass (R1: 4 notebooks)
- [ ] Verify `hugging_face/hugging_face_pipeline_for_monai.ipynb` passes
(R3)
- [ ] Verify `experiment_management/spleen_segmentation_aim.ipynb`
passes (R6)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Signed-off-by: R. Garcia-Dias <rafaelagd@gmail.com>1 parent 03338b2 commit 557ffaa
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments