question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Community contribution - `BetterTransformer` integration for more models!

See original GitHub issue

BetterTransformer 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 🖊️ :

Vision models 📷 :

Audio models 🔉 :

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!

cc @michaelbenayoun @fxmarty

https://github.com/huggingface/transformers/issues/20372

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
younesbelkadacommented, Nov 19, 2022

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 💪

2reactions
younesbelkadacommented, Nov 21, 2022

Hi @Sumanth077 , I have just replied on your PR, let’s continue the discussion there 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found