Skip to content

Test pinning DCGM version 4.5.0#5189

Draft
saara-tyagi27 wants to merge 3 commits intoGoogleCloudPlatform:developfrom
saara-tyagi27:test-pinning
Draft

Test pinning DCGM version 4.5.0#5189
saara-tyagi27 wants to merge 3 commits intoGoogleCloudPlatform:developfrom
saara-tyagi27:test-pinning

Conversation

@saara-tyagi27
Copy link
Contributor

Submission Checklist

NOTE: Community submissions can take up to 2 weeks to be reviewed.

Please take the following actions before submitting this pull request.

  • Fork your PR branch from the Toolkit "develop" branch (not main)
  • Test all changes with pre-commit in a local branch #
  • Confirm that "make tests" passes all tests
  • Add or modify unit tests to cover code changes
  • Ensure that unit test coverage remains above 80%
  • Update all applicable documentation
  • Follow Cluster Toolkit Contribution guidelines #

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @saara-tyagi27, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a change to how the NVIDIA Data Center GPU Manager (DCGM) packages are managed within the A3 Ultra GPU Slurm blueprint. The primary goal is to ensure stability and reproducibility by explicitly pinning the DCGM version and preventing automatic updates, which is crucial for maintaining consistent environments, especially in machine learning setups.

Highlights

  • DCGM Version Pinning: The datacenter-gpu-manager (DCGM) packages are now explicitly installed with version 1:4.5.0-1 in the a3ultra-slurm-blueprint.yaml configuration.
  • Package Holding: After installation, the datacenter-gpu-manager-4-cuda12, datacenter-gpu-manager-4-dev, and datacenter-gpu-manager-4-core packages are marked to be held, preventing unintended automatic upgrades.
Changelog
  • examples/machine-learning/a3-ultragpu-8g/a3ultra-slurm-blueprint.yaml
    • Modified the installation process for datacenter-gpu-manager packages to specify version 1:4.5.0-1.
    • Added apt-mark hold commands to prevent future automatic upgrades of the DCGM packages.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request pins the version of DCGM packages to ensure stability, which is a good practice. My review focuses on improving the maintainability of the installation script by consolidating commands and removing commented-out code, aligning with guidelines for keeping inline scripts concise.

Comment on lines 161 to 173
apt install -y cuda-toolkit-12-8
apt install -y datacenter-gpu-manager-4-cuda12
apt install -y datacenter-gpu-manager-4-dev
# apt install -y datacenter-gpu-manager-4-cuda12
# apt install -y datacenter-gpu-manager-4-dev
apt install -y \
datacenter-gpu-manager-4-cuda12=1:4.5.0-1 \
datacenter-gpu-manager-4-dev=1:4.5.0-1 \
datacenter-gpu-manager-4-core=1:4.5.0-1

# 2. Hold ALL components
apt-mark hold \
datacenter-gpu-manager-4-cuda12 \
datacenter-gpu-manager-4-dev \
datacenter-gpu-manager-4-core
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The script for installing CUDA and DCGM can be made more concise and readable. The commented-out lines should be removed, and the apt install commands can be consolidated into a single command. Additionally, the comment for apt-mark hold could be more descriptive. This improves maintainability by reducing redundancy and clarifying the script's intent.

          apt install -y \
              cuda-toolkit-12-8 \
              datacenter-gpu-manager-4-cuda12=1:4.5.0-1 \
              datacenter-gpu-manager-4-dev=1:4.5.0-1 \
              datacenter-gpu-manager-4-core=1:4.5.0-1

          # Hold DCGM components to prevent unintended upgrades
          apt-mark hold \
              datacenter-gpu-manager-4-cuda12 \
              datacenter-gpu-manager-4-dev \
              datacenter-gpu-manager-4-core
References
  1. Per the style guide (line 6), code should be maintainable. Consolidating the package installation into a single apt install command and removing the commented-out code improves readability and makes the script easier to modify in the future. (link)
  2. Per Rule: Inline shell scripts within YAML configurations are acceptable for minor, declarative additions. Making this script more concise and readable helps ensure it remains minor and declarative, aligning with the guideline to keep inline scripts manageable.

@saara-tyagi27 saara-tyagi27 changed the title Test pinning DCGM version Test pinning DCGM version 4.5.0 Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant