Skip to content

Replace deprecated pynvml with nvidia-ml-py#27

Merged
NetZissou merged 1 commit into
mainfrom
fix/pynvml-deprecation
Mar 30, 2026
Merged

Replace deprecated pynvml with nvidia-ml-py#27
NetZissou merged 1 commit into
mainfrom
fix/pynvml-deprecation

Conversation

@NetZissou

Copy link
Copy Markdown
Collaborator

Summary

  • Add nvidia-ml-py>=11.5.0 as a core dependency in pyproject.toml
  • The profiling module (src/hpc_inference/utils/profiling.py) imports pynvml but it was never declared as a dependency on main
  • The third-party pynvml PyPI package is deprecated — it's now a shim that installs nvidia-ml-py and emits a FutureWarning on every import
  • Using nvidia-ml-py directly provides the same import pynvml API with no warnings

Note for open PRs

PR #16 (feature/detection) added pynvml>=11.5.0 to dependencies. After this PR merges, #16 should rebase and update its dependency to nvidia-ml-py>=11.5.0 instead.

Closes #26

🤖 Generated with Claude Code

The profiling module imports pynvml but it was not declared as a
dependency. The third-party pynvml package is deprecated and now
just a shim over nvidia-ml-py. Using nvidia-ml-py directly avoids
the FutureWarning while providing the same API.

Closes #26

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@NetZissou NetZissou self-assigned this Mar 30, 2026
@NetZissou NetZissou requested a review from egrace479 March 30, 2026 19:07
@NetZissou NetZissou merged commit e023677 into main Mar 30, 2026
@NetZissou NetZissou deleted the fix/pynvml-deprecation branch March 30, 2026 21:29
NetZissou added a commit that referenced this pull request Mar 30, 2026
- Replace pynvml with nvidia-ml-py in pyproject.toml (aligns with PR #27)
- Fix [yolo] -> [detection] optional extra in base_detector.py and
  all detection SLURM templates (5 files)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Replace deprecated pynvml dependency with nvidia-ml-py

2 participants