Skip to content

[BUG]Load predictor from S3 path failed #4733

@suzhoum

Description

@suzhoum

Bug Report Checklist

  • I provided code that demonstrates a minimal reproducible example.
  • I confirmed bug exists on the latest mainline of AutoGluon via source install.
  • I confirmed bug exists on the latest stable version of AutoGluon.

Describe the bug
Reported from an internal user:

I'm trying to load the autogluon model by using
TabularPredictor.load('s3://bucket/trained_models/AutogluonModels/marketplace/1/20240812-190220231201_20240801/', require_version_match = False)
but return an error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ec2-user/SageMaker/s3:/bucket/trained_models/AutogluonModels/marketplace/1/20240812-190220231201_20240801/predictor.pkl'
I validated that my file does exist by calling
aws s3 ls s3_path.
I have never run into this issue before. Is it because of autogluon version update? I'm using autogluon 1.2.0 in sagemaker notebook.

It also throw the following warning at the same time even though the predictor i'm trying to load was fit with autogluon version > 1.0.0

WARNING: Could not find version file at "/home/ec2-user/SageMaker/s3:/ab-risk-score-992382825495/trained_models/AutogluonModels/marketplace/3/20240924-031020240101_20240901/predictor.pkl/version.txt". This means that the predictor was fit in an AutoGluon version <=0.3.1.

Expected behavior

To Reproduce

Screenshots / Logs

Installed Versions

# Replace this code with the output of the following:
from autogluon.core.utils import show_versions
show_versions()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions