-
Notifications
You must be signed in to change notification settings - Fork 511
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
Adding ONNX support for ImageGPT #819
Adding ONNX support for ImageGPT #819
Conversation
…_ONNX_Support_for_ImageGPT_Model
Hello, I believe I have completed adding ONNX support for ImageGPT. I ran the tests mentioned here (but using imagegpt instead of resnet) and they pass:
Please do let me know if everything is good with this PR! |
…_ONNX_Support_for_ImageGPT_Model
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @adit299! It looks very good, just a few more things to do and we will be able to merge it :)
if self._behavior is ConfigBehavior.DECODER: | ||
common_inputs["encoder_outputs"] = {0: "batch_size", 1: "encoder_sequence_length"} | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code quality test didn't pass. Can you run the command make style
in the root of the Optimum repo (you'll need to have the right packages installed with pip install -e .[dev,exporters]
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -59,6 +59,7 @@ | |||
"gptj": "hf-internal-testing/tiny-random-GPTJModel", | |||
"groupvit": "hf-internal-testing/tiny-random-groupvit", | |||
"ibert": "hf-internal-testing/tiny-random-IBertModel", | |||
"imagegpt": "hf-internal-testing/tiny-random-ImageGPTModel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add an entry below in PYTORCH_EXPORT_MODELS_LARGE
for this model for instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the addition!
What does this PR do?
Fixes #555
Before submitting