Skip to content

[FEATURE/ISSUE for timm] Can we use symbolic link instead of hard link when save the checkpoint? #340

@SleepyTT

Description

@SleepyTT

Hi rwightman,

Thank you for providing the timm tool which is very useful!

When I use CheckpointSaver in timm.utils to save checkpoint, I met this issue:

os.link(last_save_path, save_path) OSError: [Errno 38] Function not implemented: './output/train/20210105-001029-tf_efficientdet_d0/last.pth.tar' -> './output/train/20210105-001029-tf_efficientdet_d0/checkpoint-0.pth.tar'

it seems my filesystem does not support creating a hard link using os.link() function. But I have tried that the os.symlink() works in my scenario. It is impossible for me to change the filesystem since it's configured by cloud training platform, so I am wondering if it is possible to use the symbolic link instead of the hard link in timm?

Looking forward to your reply! Thanks in advance!

@rwightman

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions