-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Bug Report] TypeError: Model._create_sagemaker_model() got an unexpected keyword argument 'predictor_cls' #4703
Comments
@anadeem445 This issue seems to be due to an incompatibility or a change in the SageMaker SDK.
plz let me know, if the above helps |
@catica The error you're encountering, modify your code to exclude the predictor_cls argument from the model.deploy method. Instead, after deploying the model, you can instantiate the Predictor class separately. sample snippet:-
Let me know, if it works |
Thanks for your quick reply @Siddharth-Latthe-07 . I've got a different error:
|
@catica The new error possible solutions:-
Plz let meknow, if you find error logs |
I am not sure I understand these problems with S3 accesses as I am trying to use the provided pytorch-SSD model (not my own model). And I'm not trying to access any of my own S3 buckets, I believe. I've followed your debugging suggestion and changed the region to Ps. The CICD checks are failing in the notebook above.
|
I have the same problem as @catica. I can download the tar file from the S3 bucket and can read the files in the base_model_uri folder (in the terminal as user ec2-user). So permissions are set correct. @Siddharth-Latthe-07 , do you have more tips? |
@pietervosnl yeah sure Here are some additional steps and suggestions to help you troubleshoot and resolve this issue
Sample snippet for checking the URIs and the region consistency:-
Hope this helps, Thanks |
Link to the notebook
Example Notebook
Describe the bug
We were trying to test Amazon SageMaker's semantic segmentation feature. So we used this example notebook from sagemaker jumpstart and tried to run it in aws sagemaker notebook instance.
But we received a weird error:
TypeError: Model._create_sagemaker_model() got an unexpected keyword argument 'predictor_cls'
To reproduce
Logs
![image (1)](https://private-user-images.githubusercontent.com/145438775/347462994-48dd91e5-561d-4b90-bbd3-b0935a4c2f12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMzU3NzMsIm5iZiI6MTcyNjEzNTQ3MywicGF0aCI6Ii8xNDU0Mzg3NzUvMzQ3NDYyOTk0LTQ4ZGQ5MWU1LTU2MWQtNGI5MC1iYmQzLWIwOTM1YTRjMmYxMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQxMDA0MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04NjQwOTE5YmQ0MTYyMTAxODc3YzU1ZDQzMzIxNzBkNjcxYTNkMmExYTM2M2U2ZTg2ZTgzMzhlNTFhOWJjZTZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oBlAHXHjZLA4vURq7xNBeMfW08muD--sttFLlZLOJ10)
The text was updated successfully, but these errors were encountered: