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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DiT ONNX export #1612

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add support for DiT ONNX export #1612

wants to merge 3 commits into from

Conversation

xenova
Copy link
Contributor

@xenova xenova commented Dec 24, 2023

What does this PR do?

Not sure if this is actually needed, since DiT uses the same architecture as BeiT, but it adds it to the list 馃憤

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@fxmarty
Copy link
Collaborator

fxmarty commented Jan 26, 2024

@xenova

Can you fix

FAILED exporters/onnx/test_onnx_export.py::OnnxExportTestCase::test_all_models_tested - AssertionError: Not testing all models. Missing models: {'dit'}
2023-12-24T18:41:32.3343756Z FAILED onnxruntime/test_modeling.py::ORTModelForImageClassificationIntegrationTest::test_pipeline_ort_model_01_dit - KeyError: 'dit'
2023-12-24T18:41:32.3344416Z FAILED onnxruntime/test_modeling.py::ORTModelForImageClassificationIntegrationTest::test_compare_to_transformers_01_dit - KeyError: 'dit'

@xenova xenova marked this pull request as draft January 26, 2024 12:26
@xenova
Copy link
Contributor Author

xenova commented Jan 26, 2024

Converted to draft and will mark as ready when I've added back the unit tests. @fxmarty once again, it requires a tiny model - do you have a script to easily create these?

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.

None yet

3 participants