-
Notifications
You must be signed in to change notification settings - Fork 248
Open
Description
As far as I understand it, and during some testing I kept on getting Cuda OOM errors while running code with pyinstrument where multiple models were run one after another.
While making sure there was no reference kept to the tensors in the python code, I kept on getting CUDA OOM errors when using pyinstrument
. But once disabled the errors disappeared and my VRAM reset as expected after each reference was deleted.
Is there an option to ensure pyinstrument clears its references to onnx and torch tensors, especially after calling del tensor
.
As I'd like to keep using pyinstrument
but it's not feasible atm.
- Emil
xiaobanni and stas-slxiaobanni
Metadata
Metadata
Assignees
Labels
No labels