Skip to content

CUDA Out Of Memory issue #348

@emil-peters

Description

@emil-peters

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions