Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LlamaSharp Backend Cuda not being used #184

Open
gkapellmann opened this issue Oct 20, 2023 · 1 comment
Open

LlamaSharp Backend Cuda not being used #184

gkapellmann opened this issue Oct 20, 2023 · 1 comment

Comments

@gkapellmann
Copy link

In the Webstarter project by default we can find LlamaSharp.Backend.Cuda11 dependency.

When I added the LlamaSharp.Backend.CPU dependency to the project, it works well.

I have installed the CUDA libraries directly from Nvidia, and there is a RTX 2060 in my pc, and it has been properly detected.

However, the Webstarter project still doesnt seem to accept the Cuda support. I have also tried with LlamaSharp.Backend.Cuda12, but no luck.

Is there a setting that needs to be set?

I get the following error:

System.TypeInitializationException: The type initializer for 'LLama.Native.NativeApi' threw an exception.
---> LLama.Exceptions.RuntimeError: The native library cannot be found. It could be one of the following reasons:

  1. No LLamaSharp backend was installed. Please search LLamaSharp.Backend and install one of them.
  2. You are using a device with only CPU but installed cuda backend. Please install cpu backend instead.
  3. The backend is not compatible with your system cuda environment. Please check and fix it. If the environment is expected not to be changed, then consider build llama.cpp from source or submit an issue to LLamaSharp.
  4. One of the dependency of the native library is missed.
@AsakusaRinne
Copy link

Hi, it should be an issue of LLamaSharp. Are you still meeting this issue when using the latest release of LLamaSharp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants