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

Remove 2 failing ONNX conversion tests #22660

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Remove 2 failing ONNX conversion tests #22660

merged 1 commit into from
Apr 11, 2023

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Apr 7, 2023

What does this PR do?

After ##22212, two tests start to fail.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

This is a legacy script, users are supposed to use optimum now.

@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 7, 2023

OK. But should we do something like removing CI regarding this? Currently failing tests pop up.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 7, 2023

The documentation is not available anymore as the PR was closed or merged.

@sgugger
Copy link
Collaborator

sgugger commented Apr 7, 2023

I think you can remove the tests as well.

@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 7, 2023

@sgugger Just to confirm, we want/could remove all things like

  • ConvertCommand in src/transformers/commands/transformers_cli.py
  • export_with_transformers in src/transformers/onnx/__main__.py
  • the file src/transformers/onnx/convert.py and any test using this fle

also cc @michaelbenayoun @fxmarty

@sgugger
Copy link
Collaborator

sgugger commented Apr 7, 2023

No we're not removing code, just the tests if they start failing.

@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 7, 2023

OK, glad I ask!

@@ -267,7 +267,7 @@ class FeaturesManager:
onnx_config_cls="models.deberta_v2.DebertaV2OnnxConfig",
),
"deit": supported_features_mapping(
"default", "image-classification", "masked-im", onnx_config_cls="models.deit.DeiTOnnxConfig"
"default", "image-classification", onnx_config_cls="models.deit.DeiTOnnxConfig"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we just need to remove the model architecture (task) that cause problem after #22212

@ydshieh ydshieh changed the title (Uglyyy) Fix 2 OnnX CIs Remove 2 failing ONNX conversion tests Apr 8, 2023
@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 11, 2023

Ping @sgugger again to draw a bit of his attention.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@ydshieh ydshieh merged commit ff73dee into main Apr 11, 2023
@ydshieh ydshieh deleted the fix_onnx_ci branch April 11, 2023 13:26
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
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.

3 participants