Skip to content
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

Support cloud filesystems #148

Open
mihaimaruseac opened this issue Mar 22, 2024 · 4 comments
Open

Support cloud filesystems #148

mihaimaruseac opened this issue Mar 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@mihaimaruseac
Copy link
Collaborator

We need to support cloud filesystems to sign models stored in cloud buckets without downloading them locally. This is especially useful if we want to sign large models.

@mihaimaruseac mihaimaruseac added the enhancement New feature or request label Mar 22, 2024
@laurentsimon
Copy link
Collaborator

laurentsimon commented Mar 25, 2024

I'd like if we could have an API that takes as input a file system interface. If we only need to support simple operations like read, write, list dir, do you think it would be viable?

@mihaimaruseac
Copy link
Collaborator Author

Was thinking to maybe do something similar to TF's GFile API and then our API will just have code like

with gfile.open(filepath) as f:
  do_something_with(f)

If the filepath is a local file then the local filesystem would be used, otherwise, the prefix URI scheme would redirect to the corresponding cloud implementation.

But we don't want a dependency on TF, so I'm searching to see if there is another library we can use instead

@mihaimaruseac
Copy link
Collaborator Author

I think we should make this a low priority, given there doesn't seem to exist an OSS dependency that doesn't bring in TF at this point.

@mihaimaruseac
Copy link
Collaborator Author

We can use etils[epath] for this, it implements the API without needing to also depend on TF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants