Skip to content

add dinov2 onnx optimizer support#2227

Merged
IlyasMoutawwakil merged 2 commits into
huggingface:mainfrom
EFord36:support-dinov2-optimization
Apr 24, 2025
Merged

add dinov2 onnx optimizer support#2227
IlyasMoutawwakil merged 2 commits into
huggingface:mainfrom
EFord36:support-dinov2-optimization

Conversation

@EFord36

@EFord36 EFord36 commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

Following the addition of Dinov2 Onnx export support in #2001 , this PR seeks to enable optimiser support for DinoV2.

I thought I'd have a go at this since I could see ViT was supported, and DinoV2 is just a ViT backbone.

I think this is working - when I run the test locally, it actually fails, but the output is visually identical, and the test for vit fails for me in the same way. I suspect this is something about my environment - opening the PR to see how it behaves on CI, I can debug further when I get a chance.

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?

Who can review?

Onnx runtime related, so:
@fxmarty, @echarlaix, @JingyaHuang, @michaelbenayoun

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@IlyasMoutawwakil

Copy link
Copy Markdown
Member

hi, can you please rebase your branch, I will retrigger the tests afterwards.

@EFord36

EFord36 commented Apr 23, 2025

Copy link
Copy Markdown
Contributor Author

hi, can you please rebase your branch, I will retrigger the tests afterwards.

Done, thanks!

@EFord36

EFord36 commented Apr 23, 2025

Copy link
Copy Markdown
Contributor Author

Looks to me like the two failing checks fail with the same errors in the latest commit to main

@IlyasMoutawwakil
IlyasMoutawwakil merged commit 7e3f3c3 into huggingface:main Apr 24, 2025
@IlyasMoutawwakil

Copy link
Copy Markdown
Member

Thanks @EFord36 🤗

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