LLMLingua icon indicating copy to clipboard operation
LLMLingua copied to clipboard

Getting 'Found no NVIDIA driver on your system ' error.

Open defatoraj opened this issue 2 years ago • 1 comments

Hello!,

Getting the "Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx" error when trying to execute the below code.

from llmlingua import PromptCompressor llm_lingua = PromptCompressor()

defatoraj avatar Dec 27 '23 07:12 defatoraj

Hi @defatoraj, by default, using LLMLingua requires NVIDIA CUDA to be enabled. You can switch to CPU mode with the following settings.

from llmlingua import PromptCompressor
llm_lingua = PromptCompressor(device_map="cpu")

iofu728 avatar Dec 28 '23 02:12 iofu728

Hi, i apologize for the late response. It is still not working for me. Executed: from llmlingua import PromptCompressor llm_lingua = PromptCompressor(device_map="cpu") And got this error: Canceled future for execute_request message before replies were done The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.

defatoraj avatar Jan 08 '24 11:01 defatoraj