Make Inference faster on GPU
by roastedcabbage - Saturday June 1, 2024 at 04:05 AM
#1
Recently nvidia has released a new library called optimum-NVIDIA that will boost inference performance up to 28x to the baseline.
You have to replace only one line of code and you are good to go. Thought i would share if anyone missed this.

Check out the repo here - https://github.com/huggingface/optimum-nvidia
Reply
#2
Which line of code do you have to change?
[Image: intelfetch-render.gif]
Reply
#3
If you are using transformers library from huggingface you have to replace that with optimum.nvidia

for example if you have the following code:

from transformers.pipelines import pipeline

you have to replace the above as below

from optimum.nvidia.pipelines import pipeline

and rest remains the same.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make money with hacking ssrf 1,241 71,344 Today, 04:51 AM
Last Post: cookky1
  [EPIC] MAKE $20 Every HOUR With AI [LONGTERM PASSIVE METHOD] barw 97 5,874 07-05-2026, 10:36 AM
Last Post: Holyxx
  Faster Google Dorking global2141 41 3,290 06-25-2026, 11:49 AM
Last Post: slzep
  Ways to f**k up someone's life / make their life a living hell? Piplup 2,306 104,335 06-19-2026, 06:37 PM
Last Post: notmrlgn
  how to make gmail accounts without phone number solitaryElite 263 17,940 03-28-2026, 11:45 AM
Last Post: tetttettte



 Users browsing this thread: