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

Structure for custom entrypoint inference script and its overridden methods for DJLModel #4182

Open
gdagur opened this issue Oct 11, 2023 · 0 comments

Comments

@gdagur
Copy link

gdagur commented Oct 11, 2023

What did you find confusing? Please describe.
To pass a custom entrypoint inference code different types of framework models support passing a custom script while instantiating them. From what I have observed, for different types of models different methods needs to be overridden in the custom script. For example for HuggingFaceModel script I had to override methods like transform_fn, predict_fn etc, but for TensorflowModel I had to override input_handler, output_handler etc like mentioned here.

Similarly what is the structure looks like of custom entrypoint inference script fo DJLModel

Describe how documentation can be improved
An example in README or in https://github.com/aws/amazon-sagemaker-examples for deploying DJLModel with custom entrypoint script and examples of sample entrypoint script, its structure and overriden methods for DJLModel

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

No branches or pull requests

1 participant