Skip to content

fix(hybrid-ep): replace deprecated pynvml dependency with nvidia-ml-py#601

Open
ooooo-create wants to merge 1 commit intodeepseek-ai:hybrid-epfrom
ooooo-create:fix/replace-pynvml-with-nvidia-ml-py
Open

fix(hybrid-ep): replace deprecated pynvml dependency with nvidia-ml-py#601
ooooo-create wants to merge 1 commit intodeepseek-ai:hybrid-epfrom
ooooo-create:fix/replace-pynvml-with-nvidia-ml-py

Conversation

@ooooo-create
Copy link
Copy Markdown

This PR replaces the deprecated pynvml package with nvidia-ml-py>=12.0.0 in setup.py.

pynvml is now deprecated and can trigger a FutureWarning in downstream environments when torch.cuda is imported. Since nvidia-ml-py provides the official NVIDIA-maintained NVML bindings and preserves the pynvml module import path, switching the dependency resolves the warning without changing runtime behavior.

The >=12.0.0 lower bound matches the compatibility floor already implied by the deprecated pynvml package itself.

Signed-off-by: ooooo <3164076421@qq.com>
Copilot AI review requested due to automatic review settings April 8, 2026 01:24
Copy link
Copy Markdown
Contributor

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

This PR updates the project’s packaging dependency to avoid downstream FutureWarnings triggered by the deprecated pynvml package while preserving the existing import pynvml runtime behavior via NVIDIA’s maintained bindings.

Changes:

  • Replaced pynvml with nvidia-ml-py>=12.0.0 in setup.py install_requires.

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

@ooooo-create ooooo-create changed the title fix: replace deprecated pynvml dependency with nvidia-ml-py fix(hybrid-ep): replace deprecated pynvml dependency with nvidia-ml-py Apr 8, 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.

2 participants