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
  Ways to f**k up someone's life / make their life a living hell? Piplup 2,326 170,121 08-26-2026, 08:49 PM
Last Post: Erazgara
  how to make gmail accounts without phone number solitaryElite 266 26,427 08-21-2026, 10:12 AM
Last Post: rfdfrdgdrg
  Make money and spread malware with cheats. SPARK 465 29,798 08-20-2026, 01:41 AM
Last Post: itsinvisible
  [#1] MAKE REAL MONEY USING DISCORD | EXPLAINED | SCREENSHOTS | UNSATURABLE PARADIES 499 35,817 08-15-2026, 09:48 PM
Last Post: LuckyBear178
  [EPIC] MAKE $20 Every HOUR With AI [LONGTERM PASSIVE METHOD] barw 99 12,098 08-15-2026, 08:54 AM
Last Post: FishBiologist44



 Users browsing this thread: 1 Guest(s)