Add inference_rocm.json overlays for Vista3D and SwinUNETR (AMD - MI300X)#1
Open
nilapate wants to merge 1 commit into
Open
Add inference_rocm.json overlays for Vista3D and SwinUNETR (AMD - MI300X)#1nilapate wants to merge 1 commit into
nilapate wants to merge 1 commit into
Conversation
Enable fast ROCm/MI300X inference via channels_last_3d + bf16 autocast +
whole-model torch.compile. Applied as a config overlay on top of the base
inference.json; no changes to bundle scripts.
Usage:
python -m monai.bundle run \
--config_file "['configs/inference.json', 'configs/inference_rocm.json']" ...
soumitra-chatterjee-tech
approved these changes
Jul 3, 2026
soumitra-chatterjee-tech
left a comment
There was a problem hiding this comment.
If I understand correctly, these are not specific to MI300X, right? These would apply equally for MI355X as well? If so, you should update the PR description to make it generic instead of narrowing it to MI300X (you can still clarify that this is only validated on MI300X). If not, we would need to rename the inference_rocm.json to something more MI300X specific, say inference_rocm_mi300x.json.
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.
Enable fast ROCm inference via channels_last_3d + bf16 autocast + whole-model torch.compile. Applied as a config overlay on top of the base inference.json;
Usage:
python -m monai.bundle run
--config_file "['configs/inference.json', 'configs/inference_rocm.json']"
Description
Adds
inference_rocm.jsonconfig overlays for Vista3D and SwinUNETR bundles to enable optimized inference on AMD MI300X GPUs. The overlays apply three optimizations:channels_last_3dmemory layout, bf16 autocast, and whole-model torch.compile. These configs extend the existinginference.jsonwithout modifying bundle scripts — users opt in by stacking configs at runtime.Status
Ready
Please ensure all the checkboxes:
./runtests.sh --codeformat.versionandchangeloginmetadata.jsonif changing an existing bundle.CONTRIBUTING.md).monai,pytorchandnumpyare correct inmetadata.json.eval_metricsof the provided weights and TorchScript modules.large_file.yml./home/your_name/for"bundle_root").