Community contribution - `BetterTransformer` integration for more models!
See original GitHub issueBetterTransformer
integration for more models!
BetterTransformer
API provides faster inference on CPU & GPU through a simple interface!
Models can benefit from very interesting speedups using a one liner and by making sure to install the latest version of PyTorch. A complete guideline on how to convert a new model has been created on the BetterTransformer documentation!
Here is a list of models that could be potentially supported, pick one of the architecture below and let’s discuss about the conversion!
Text models 🖊️ :
- FSMT - FSMTEncoderLayer / @Sumanth077 https://github.com/huggingface/optimum/pull/494
- MobileBERT - MobileBertLayer / @raghavanone https://github.com/huggingface/optimum/pull/506
- MBart - MBartEncoderLayer + M2M100EncoderLayer / https://github.com/huggingface/optimum/pull/516 @ravenouse
- ProphetNet - ProphetNetEncoderLayer
- RemBert - RemBertLayer
- RocBert - RocBertLayer
- RoFormer - RoFormerLayer
- Tapas - TapasLayer / https://github.com/huggingface/optimum/pull/520
Vision models 📷 :
- Detr - DetrLayer
- Flava - FlavaLayer
- GLPN - GLPNLayer
- ViLT - ViLTLayer / https://github.com/huggingface/optimum/pull/508
Audio models 🔉 :
- Speech2Text - Speech2TextLayer
- NEW: Audio Speech Transformer - ASTLayer
Let us also know if you think that some architectures can be supported that we missed. Note that for encoder-decoder based models below, we expect to convert the encoder only.
Support for decoder-based models coming soon!
Issue Analytics
- State:
- Created 10 months ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
`BetterTransformer` integration for more models! · Issue ...
BetterTransformer API provides faster inference on CPU & GPU through a simple ... Community contribution - BetterTransformer integration for more models!
Read more >Overview - Hugging Face
Optimum provides an integration with BetterTransformer , a stable API from ... you want more models to be supported, or check out the...
Read more >[P] BetterTransformer: PyTorch-native free-lunch speedups for ...
Hi everyone, In the latest PyTorch stable release 1.13, the BetterTransformer feature was marked as stable! It is a free-lunch optimization to ...
Read more >younes (@younesbelkada) / Twitter
Community contribution - `BetterTransformer` integration for more models! ... Issue #20372 · huggin... BetterTransformer integration for more models!
Read more >BetterTransformer, Out of the Box Performance for Hugging ...
Hugging Face meets PyTorch to integrate 'BetterTransformer' in its ecosystem ... How to contribute and add support for more models. The integration of ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @Sumanth077 , thanks a bunch for your interest in this issue! 🚀 Would love to assist you for the integration and let’s try to make this happen! I have updated the table above, and attaching you the contribution tutorial here 😉 Would you mind forking this repo and start opening a draft pull request so that I can start guiding you there? Also please do not hesitate to ping us here for any issue you are facing for the integration 💪
Hi @Sumanth077 , I have just replied on your PR, let’s continue the discussion there 😉