-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update base image to 25.12 #8738
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
Open
KumoLiu
wants to merge
13
commits into
Project-MONAI:dev
Choose a base branch
from
KumoLiu:update-image
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f9d39da
update base image
KumoLiu 15044de
fix transchex error
KumoLiu 264c012
try fix
KumoLiu 7378f03
remove patch
KumoLiu 0258508
remove --uninstall
KumoLiu cfe21f3
fix
KumoLiu d23acbe
fix tolerence issue and remove pin for onnxruntime
KumoLiu 6b1ba1f
temp skip TestPerceptualLoss
KumoLiu 2167bbf
fix
KumoLiu 6fb0669
temp skip test_perceptual_loss
KumoLiu 4726aa5
patch back apex in 25.12
KumoLiu 69b7eac
try skip downlaod fail
KumoLiu 4bf4960
temp skip
KumoLiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -57,6 +57,8 @@ | |||||||||||||||
| nib, _ = optional_import("nibabel") | ||||||||||||||||
| http_error, has_req = optional_import("requests", name="HTTPError") | ||||||||||||||||
| file_url_error, has_gdown = optional_import("gdown.exceptions", name="FileURLRetrievalError") | ||||||||||||||||
| hf_http_error, has_hf_hub = optional_import("huggingface_hub.errors", name="HfHubHTTPError") | ||||||||||||||||
| hf_local_entry_error, _has_hf_local = optional_import("huggingface_hub.errors", name="LocalEntryNotFoundError") | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| quick_test_var = "QUICKTEST" | ||||||||||||||||
|
|
@@ -70,6 +72,10 @@ | |||||||||||||||
| DOWNLOAD_EXCEPTS += (http_error,) | ||||||||||||||||
| if has_gdown: | ||||||||||||||||
| DOWNLOAD_EXCEPTS += (file_url_error,) | ||||||||||||||||
| if has_hf_hub: | ||||||||||||||||
| DOWNLOAD_EXCEPTS += (hf_http_error,) | ||||||||||||||||
| if _has_hf_local: | ||||||||||||||||
| DOWNLOAD_EXCEPTS += (hf_local_entry_error,) | ||||||||||||||||
|
|
||||||||||||||||
|
Comment on lines
+75
to
79
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Unless there's a case where one exception may be missing and the other present we can do this. |
||||||||||||||||
| DOWNLOAD_FAIL_MSGS = ( | ||||||||||||||||
| "unexpected EOF", # incomplete download | ||||||||||||||||
|
|
||||||||||||||||
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
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
Oops, something went wrong.
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.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 133
🏁 Script executed:
Repository: Project-MONAI/MONAI
Length of output: 2564
🌐 Web query:
PyTorch 2.6 torch.onnx.export dynamo default behavior ScriptModule support💡 Result:
PyTorch 2.6 default behavior:
torch.onnx.export(..., dynamo=...)exists, but it is not the default in 2.6. The ONNX docs note thatdynamoonly becameTrueby default in PyTorch 2.9, implying that in 2.6–2.8 you must opt in withdynamo=True. [1]What
dynamo=Truedoes (2.6+): it uses the new exporter path based ontorch.export.ExportedProgram(rather than the legacy TorchScript-based ONNX exporter). It is described as the recommended approach and returns anONNXProgram. [1]torch.jit.ScriptModule/ TorchScript support withdynamo=True:torch.export-based exporter does not fully support TorchScript-specific models/behaviors.torch.onnx.export(..., dynamo=True)may need to “auto-fallback” to the TorchScript-based exporter when the input is atorch.jit.ScriptModule/torch.jit.ScriptFunction, because those are TorchScript-oriented and not reliably handled by the dynamo path. [2]ScriptModule, expect best support withdynamo=False(legacy/TorchScript exporter), and treatdynamo=Trueas potentially unsupported unless you confirm it works for your specific model/operators. [2]Sources: PyTorch ONNX API docs (notes on
dynamodefault change in 2.9 and exporter behavior) [1], PyTorch issue discussing lack of TorchScript (ScriptModule) support indynamo=Truepath and proposed fallback [2].The code comment about PyTorch 2.6 torch.onnx.export defaults is incorrect.
PyTorch 2.6–2.8 do not default to dynamo-based exporter;
dynamobecame the default only in PyTorch 2.9. In 2.6–2.8, you must explicitly setdynamo=True. Additionally, dynamo does not fully support ScriptModule. Correct the comment to accurately reflect this versioning, and reconsider the version logic—simply passing the raw model for >= 2.6 may not achieve the intended behavior.🤖 Prompt for AI Agents