Skip to content

fix(docker): replace deprecated pynvml with nvidia-ml-py#1725

Merged
akoumpa merged 1 commit intoNVIDIA-NeMo:mainfrom
ooooo-create:fix/docker-pynvml-deprecation
Apr 8, 2026
Merged

fix(docker): replace deprecated pynvml with nvidia-ml-py#1725
akoumpa merged 1 commit intoNVIDIA-NeMo:mainfrom
ooooo-create:fix/docker-pynvml-deprecation

Conversation

@ooooo-create
Copy link
Copy Markdown
Contributor

@ooooo-create ooooo-create commented Apr 8, 2026

What does this PR do ?

This PR fixes the deprecated pynvml package warning in the Docker container reported in #1722.

pynvml is currently pulled in by deep_ep, so this updates docker/common/deepep.patch to replace it with nvidia-ml-py>=12.0.0 in install_requires. The lower bound matches the compatibility floor already implied by the deprecated pynvml package itself, while switching to the official NVIDIA-maintained NVML bindings.

Fixes #1722

Changelog

  • Add specific line by line info of high level changes in this PR.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?

If you haven't finished some of the above items you can still open "Draft" PR.

Additional Information

Signed-off-by: ooooo <3164076421@qq.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Apr 8, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copilot AI review requested due to automatic review settings April 8, 2026 01:07
@ooooo-create ooooo-create requested a review from a team as a code owner April 8, 2026 01:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Docker build’s DeepEP patch to avoid installing the deprecated pynvml PyPI package (which triggers a PyTorch FutureWarning) by switching DeepEP’s dependency to the official nvidia-ml-py NVML bindings.

Changes:

  • Update docker/common/deepep.patch to replace pynvml with nvidia-ml-py>=12.0.0 in DeepEP’s install_requires.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akoumpa
Copy link
Copy Markdown
Contributor

akoumpa commented Apr 8, 2026

/claude review

@akoumpa
Copy link
Copy Markdown
Contributor

akoumpa commented Apr 8, 2026

Hi @ooooo-create thanks for making this!

Hi @thomasdhc can you review when you get the chance? Thanks 🙇

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

LGTM

@akoumpa
Copy link
Copy Markdown
Contributor

akoumpa commented Apr 8, 2026

/ok to test af7f0a0

@akoumpa akoumpa merged commit 9482d7d into NVIDIA-NeMo:main Apr 8, 2026
59 of 60 checks passed
akoumpa pushed a commit that referenced this pull request Apr 10, 2026
edjson pushed a commit to edjson/Automodel that referenced this pull request Apr 17, 2026
edjson pushed a commit to edjson/Automodel that referenced this pull request Apr 18, 2026
…#1725)

Signed-off-by: ooooo <3164076421@qq.com>
Signed-off-by: Edison <edisonggacc@gmail.com>
linnanwang pushed a commit that referenced this pull request Apr 24, 2026
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.

(small) package deprecation

5 participants