Skip to content

_validate_snapshot_available() failing although torchsnapshot is available #876

@nubertj

Description

@nubertj

🐛 Describe the bug

When running my code with torchtnt and the TorchSnapshotSaver (torchsnapshot_saver.py), I get the following error after construction of the class:

RuntimeError: TorchSnapshotSaver support requires torchsnapshot. Please make sure ``torchsnapshot`` is installed. Installation: https://github.com/pytorch/torchsnapshot#install

This line can be found here.
However, torchsnapshot can be imported.

Versions

I tried installing torchsnapshot and torchtnt from conda, pypi, and directly from the github repos. I always get this result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions