mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #112] [BUG] Pytorch lightning callback #68
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @marios1861 on GitHub (Dec 12, 2023).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/112
Originally assigned to: @XuehaiPan on GitHub.
Required prerequisites
What version of nvitop are you using?
1.3.1
Operating system and version
Ubuntu 20.04.6 LTS
NVIDIA driver version
535.129.03
NVIDIA-SMI
No response
Python environment
poetry environment
Problem description
When using pytorch lightning callback,
model_helpersfunction inlightning.pytorch.utilitiesraisesValueError("Expected a parent"), even thoughshould be the chosen branch,
isinstance(instance, pl.Callback)returns false. After further inspection, the older package pytorch_lightning is being used, which can be replaced without any further changes with lightning.pytorch.Steps to Reproduce
Traceback
Logs
No response
Expected behavior
No response
Additional context
No response
@XuehaiPan commented on GitHub (Dec 12, 2023):
Hi @marios1861, does
lightning.pytorch.callbacks.DeviceStatsMonitorfit your use case? The callback innvitophas not been updated for years. I would rather mark it as deprecated. Because we don't have a release schedule that's aligned with Lightning-AI/lightning. See my previous discussion in https://github.com/XuehaiPan/nvitop/pull/84#issuecomment-1663400377.@XuehaiPan commented on GitHub (Dec 12, 2023):
@marios1861 I guess you are using
lightning.pytorchrather thanpytorch_lightning, right?@marios1861 commented on GitHub (Dec 14, 2023):
Hello @XuehaiPan, yes I am using lightning.pytorch (the package was renamed). lightning.pytorch.callbacks.DeviceStatsMonitor is fine as well, but with adaptor modules (nvitop - lightning in this case) it's not very clear where the responsibility of implementation lies. Since lightning provides the base class for implementing callbacks, I would provide the implementation in nvitop. If that isn't your decision that's fine too.