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 onnx export function for pix2struct model #1815

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

naormatania
Copy link
Contributor

@naormatania naormatania commented Apr 14, 2024

What does this PR do?

This PR adds an export option to pix2struct model (document vision-language model) by optimizing its ViT encoder

Before submitting

I have tested the export locally and have seen the model outputs the same captions as the original model (exported https://huggingface.co/google/pix2struct-screen2words-base and tested on https://github.com/google-research-datasets/screen2words dataset)
If there is more testing that I need to do or document the change somewhere please let me know

Who can review?

@fxmarty, @echarlaix, @JingyaHuang, @michaelbenayoun

@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 fxmarty merged commit 0b52e3a into huggingface:main Apr 15, 2024
40 of 46 checks passed
young-developer pushed a commit to young-developer/optimum that referenced this pull request May 10, 2024
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