fastembed icon indicating copy to clipboard operation
fastembed copied to clipboard

fastembed-gpu and 'CUDAExecutionProvider' not working as expected:

Open Gautam-Rajeev opened this issue 1 year ago • 1 comments

Hi! Just raising this as an issue just in case it gets lost.

Have tried it fastembed-gpu in collab and it doesn't seem to be using GPU (only the CPU mem usage is increasing, GPU is remaining 0)

Have attached the collab link here - https://colab.research.google.com/drive/1I4Z547eE0utHmp2pxIgaLx0PXQhNFWdj?usp=sharing

Thanks a lot!

Gautam-Rajeev avatar May 22 '24 09:05 Gautam-Rajeev

Hi @GautamR-Samagra , yes, it requires some tweaking because colab has cuda 12.x. You would need to install onnxruntime-gpu separately with a url, and then install fastembed, you can find instructions in readme

joein avatar May 22 '24 09:05 joein

did as in instruction. still does not use GPU

amkazan avatar May 23 '24 10:05 amkazan

Hi @amkazan, I'll provide a notebook

joein avatar May 23 '24 10:05 joein

@GautamR-Samagra @amkazan It seems like the recent update of onnxruntime-gpu has broken the link, I think it will be fixed on their side soon. I had to fix onnxruntime-gpu to 1.17.1, here is a working notebook

joein avatar May 23 '24 12:05 joein

@GautamR-Samagra @amkazan It seems like the recent update of onnxruntime-gpu has broken the link, I think it will be fixed on their side soon. I had to fix onnxruntime-gpu to 1.17.1, here is a working notebook

Thank you so much, works on GPU crazy fast!

Gautam-Rajeev avatar May 23 '24 12:05 Gautam-Rajeev

https://github.com/microsoft/onnxruntime/issues/20745

joein avatar May 31 '24 18:05 joein