Skip to content

Invalid cross-device link #1827

@siemdejong

Description

@siemdejong

Over at Lightning-AI/pytorch-lightning#20270 (full traceback: Lightning-AI/pytorch-lightning#20270 (comment)) the following error is raised

OSError: [Errno 18] Invalid cross-device link: '/tmp/tmp657zwu1c' -> '/path/to/checkpoint.ckpt'

and during handling of the above exception

PermissionError: [Errno 1] Operation not permitted

if trying to save checkpoints via lightning's _atomic_save function that now uses a transaction whereas there were no issues before the transaction was used.

An example of a source and target device interaction is saving training checkpoints from a compute node to a slow storage device.

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