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

Add test for exporters.onnx CLI #573

Merged
merged 4 commits into from
Dec 13, 2022

Conversation

fxmarty
Copy link
Contributor

@fxmarty fxmarty commented Dec 12, 2022

As per title.

Simply check that the CPI does not raise errors.

Next PR: testing on various shapes, slow and fast tests.

Before submitting

  • Did you write any new necessary tests?

@fxmarty fxmarty marked this pull request as ready for review December 12, 2022 09:53
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@michaelbenayoun michaelbenayoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -0,0 +1,58 @@
PYTORCH_EXPORT_MODELS_TINY = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be the occasion to get rid of the PYTORCH_EXPORT_MODELS in test_onnx_export.py and use this everywhere, wdty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I want to do it in a next PR where we'll have nightly tests for the ONNX export with various shapes, potentially a bit larger models, while the normal (on PR and main) exporters tests would use this TINY dict!

Copy link
Contributor

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @fxmarty 🔥

@fxmarty
Copy link
Contributor Author

fxmarty commented Dec 13, 2022

Will merge and fix the failing tests in an other PR.

@fxmarty fxmarty merged commit a94801f into huggingface:main Dec 13, 2022
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

Successfully merging this pull request may close these issues.

4 participants