optimum
optimum copied to clipboard
Add support for siglip models
What does this PR do?
This PR adds support for exporting SigLIP models to ONNX. WIP for this 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?
- [x] Did you write any new necessary tests?
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.
Got it working 🥳 https://github.com/xenova/transformers.js/pull/473
https://github.com/huggingface/transformers/pull/26522 Is now merged into transformers!
@xenova can you push to this branch so that the CI is rerun?
Done ✅ (merged main)
Thanks! Not sure why we have
=========================== short test summary info ============================
FAILED exporters/onnx/test_onnx_export.py::OnnxExportTestCase::test_all_models_tested - AssertionError: Not testing all models. Missing models: {'siglip-text-with-projection', 'siglip-text-model'}
Hey @xenova, any status on this? Can we get it merged? :)
I feel that this model is highly relevant and needs optimized inference :)