- Newest
- Most votes
- Most comments
Hello,
I see that you are using XGBoost version = 1.3-1
Looks like the latest xgboost have changed the way the model is saved or loaded.
If you are using pickle to load the model, then try using the previous version of xgboost, such as 1.2-1, which will get loaded successfully.
If you would like to use version 1.3-1, you can load it the following way -
=================
import xgboost as xgb
model = xgb.Booster()
model.load_model('xgboost-model')
=================
If you still continue to face the issue, I would recommend you to open a case with AWS Premium Support SageMaker team so that we can discuss more on the use case along with the implementation required for your use case Open a support case with AWS using the link: https://console.aws.amazon.com/support/home?#/case/create
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
Hi Dani, I'm able to load the XGBoost model trained using a built-in container using the same script you've used above. Can you re-download the pickle file from S3 and try it again? From the error, it looks like it might be an issue with partial file download.