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
  [FREE] OffSec PEN-200 (OSCP course) 2025 version - PDF + videos Tamarisk 1,708 171,454 1 hour ago
Last Post: vlka
  ⚡BEST HACKING TOOLS ⚡ ssrf 1,233 65,523 1 hour ago
Last Post: walther0lu
  [TUTORIAL] how to ban Instagram Accounts Piplup 2,136 133,658 1 hour ago
Last Post: Knavesxd
  Google Dorking - Advanced Guide pokerface 733 36,937 3 hours ago
Last Post: robertozamora2008
  [#2] MAKE REAL MONEY USING TIKTOK | EXPLAINED | SCREENSHOTS | UNSATURABLE PARADIES 173 6,997 4 hours ago
Last Post: rottenmaster

Forum Jump:


 Users browsing this forum: 1 Guest(s)