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

Add support for Amazon S3 URI in predictor serialization #3171

Open
juliangrueber opened this issue May 20, 2024 · 0 comments
Open

Add support for Amazon S3 URI in predictor serialization #3171

juliangrueber opened this issue May 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@juliangrueber
Copy link

Description

The serialisation of the predictor expects a Path from Pathlib:

def serialize(self, path: Path) -> None:
# serialize Predictor type
with (path / "gluonts-config.json").open("w") as fp:

Passing an S3 URI causes the method to fail. The reason is the usage of Pathlib

from pathlib import Path
Path("s3://my-bucket") / "my_file"

results in PosixPath('s3:/my-bucket/my_file')

I'm using AutuGluon on SageMaker Studio where I am limited in disk size and I want to track all my experiments on Amazon S3. Storing everything on S3, I easily can access the Tensorflow board without using SageMaker Studio. Therefore, it would be great if this method would also support S3 URIs.

CC: @shchur

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

1 participant