-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSSpec support for TorchSnapshot? #102
Comments
Hi @reyoung, thanks for the detailed description and the thorough research! I think it's a completely reasonable feature request. For context on why we didn't take a hard dependency on
That said, it makes perfect sense for
What do you think? |
That's cool! It seems we can just append
after here. But how to pass some parameters into the StoragePlugin? I found s3 use URL and local config file to read AWS tokens. But in actual production environment, we cannot relay on user's local config files. Maybe we can add The changes like #108 . |
🚀 The feature
Use
fsspec
as TorchSnapshot's backend.Motivation, pitch
FSSpec is the FileSystem abstraction standard of Python in fact. It supports many backends like
s3
,gcs
,webdav
and supportsasyncio
feature, transparent compression and so on.FSSpec is also widely adopted by Torch-related communities, like huggingface/datasets uses
fsspec
as the storage backend.Both Python users and Torch users are familiar with
fsspec
, it could be better theTorchSnapshot
can adoptfsspec
as the storage backend.Alternatives
There are two major alternatives:
TorchSnapshot
repo, howeverfs
backends that may need to be implemented, and each implementation should contain unit tests. It is hard to write and test them all inTorchSnapshot
.TorchSnapshot
. For example, some companies may have customized distributed file systems for saving checkpoints. Should they check in their implementations toTorchSnapshot
?fsspec
's plugin can be an individual package, like oss for Alibaba cloud storage.fsspec
is used by more projects and people. Thefsspec
have documentation about whyPyFilesystem
is bad. Quoted asAdditional context
No response
The text was updated successfully, but these errors were encountered: