Skip to content

Refactor MPI DDP SFT benchmark and update to midstream runtime image#796

Merged
ChughShilpa merged 1 commit intoopendatahub-io:mainfrom
ChughShilpa:mpi_benchmark
Apr 23, 2026
Merged

Refactor MPI DDP SFT benchmark and update to midstream runtime image#796
ChughShilpa merged 1 commit intoopendatahub-io:mainfrom
ChughShilpa:mpi_benchmark

Conversation

@ChughShilpa
Copy link
Copy Markdown
Contributor

@ChughShilpa ChughShilpa commented Apr 23, 2026

Description

This PR involves

  1. Restructured the kftv2-mpi-ddp-sft benchmark folder by removing the nested 1.5b/ subdirectory to simplify the project structure.
  2. Simplified the runtime name to openmpi-cuda-benchmark to avoid redundant "mpi" terminology.
  3. Updated the benchmark and runtime configurations to use the official midstream openmpi-cuda image: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable

How Has This Been Tested?

Tested locally on a cluster.

  1. ClusterTrainingRuntime is successfully deployed the TrainJob and training completed gradient synchronization successfully across all 4 GPUs using the new runtime image and the MPI communication backend.

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Summary by CodeRabbit

  • Documentation

    • Updated benchmark runtime configuration documentation with latest container image reference.
  • Chores

    • Updated MPI benchmarking runtime to use new container image with CUDA 13.0, PyTorch 2.1.0, and OpenMPI 4.1.
    • Renamed runtime reference for consistency across benchmark configurations.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 23, 2026

Warning

Rate limit exceeded

@ChughShilpa has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 46 minutes and 41 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 46 minutes and 41 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: acc7bac9-69e6-4a41-9c9c-374f5b4dd5ff

📥 Commits

Reviewing files that changed from the base of the PR and between 1c5288f and 9ecc374.

📒 Files selected for processing (4)
  • benchmarks/kftv2-mpi-ddp-sft/README.md
  • benchmarks/kftv2-mpi-ddp-sft/mpi-runtime.yaml
  • benchmarks/kftv2-mpi-ddp-sft/train_sft_ddp.py
  • benchmarks/kftv2-mpi-ddp-sft/trainjob.yaml
📝 Walkthrough

Walkthrough

The changes update benchmark configuration files to reference a different MPI runtime and container image. The training runtime is renamed from mpi-cuda-openmpi-benchmark to openmpi-cuda-benchmark, and the container image is updated from quay.io/ksuta/odh-mpi-cuda:0.0.14 to quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable across README, runtime configuration, and training job manifests.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the main changes: runtime refactoring and migration to the midstream image, aligning with the primary objectives of the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
benchmarks/kftv2-mpi-ddp-sft/mpi-runtime.yaml (1)

36-58: ⚠️ Potential issue | 🟠 Major

Mutable :odh-stable tag undermines benchmark reproducibility and integrity (CWE-494 / CWE-1357).

Both container specs pin the image by a floating tag (odh-stable) rather than an immutable digest. Two concrete consequences:

  1. Supply-chain integrity: a compromised or accidentally-overwritten odh-stable tag would silently propagate to every TrainJob that applies this runtime, with no way for consumers to detect drift (CWE-494: Download of Code Without Integrity Check).
  2. Benchmark validity: performance numbers produced against odh-stable today are not comparable to runs next week — the CUDA/Torch/OpenMPI stack can change under the same tag, which is exactly the kind of variance a benchmark must hold constant.

Pin by digest (and optionally keep the tag as a comment for humans):

🔒 Proposed fix
-                - image: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable
+                # Tag at time of pinning: odh-stable
+                - image: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41@sha256:<DIGEST>
-                  image: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable
+                  # Tag at time of pinning: odh-stable
+                  image: quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41@sha256:<DIGEST>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@benchmarks/kftv2-mpi-ddp-sft/mpi-runtime.yaml` around lines 36 - 58, The YAML
uses a mutable image tag
"quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable"
in both container specs (groupName/name "node" template spec and the earlier
container entry); replace each image tag with the corresponding immutable digest
form (quay.io/...@sha256:<digest>) so the runtime is pinned, and optionally
retain the human-readable ":odh-stable" as a comment next to the image entries
for clarity; update both occurrences in the container specs under the
template->spec->template->spec->containers and the earlier container block so
every container uses the digest-pinned image.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@benchmarks/kftv2-mpi-ddp-sft/mpi-runtime.yaml`:
- Around line 36-58: The YAML uses a mutable image tag
"quay.io/opendatahub/odh-training-cuda130-torch210-py312-openmpi41:odh-stable"
in both container specs (groupName/name "node" template spec and the earlier
container entry); replace each image tag with the corresponding immutable digest
form (quay.io/...@sha256:<digest>) so the runtime is pinned, and optionally
retain the human-readable ":odh-stable" as a comment next to the image entries
for clarity; update both occurrences in the container specs under the
template->spec->template->spec->containers and the earlier container block so
every container uses the digest-pinned image.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 308152c3-c296-405b-8f6e-44ed1f9c20c4

📥 Commits

Reviewing files that changed from the base of the PR and between 894c006 and 1c5288f.

📒 Files selected for processing (4)
  • benchmarks/kftv2-mpi-ddp-sft/README.md
  • benchmarks/kftv2-mpi-ddp-sft/mpi-runtime.yaml
  • benchmarks/kftv2-mpi-ddp-sft/train_sft_ddp.py
  • benchmarks/kftv2-mpi-ddp-sft/trainjob.yaml

@sutaakar
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Apr 23, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 23, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kapil27, sutaakar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ChughShilpa ChughShilpa merged commit 4cae98f into opendatahub-io:main Apr 23, 2026
3 checks passed
@ChughShilpa ChughShilpa deleted the mpi_benchmark branch April 23, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants