-
Notifications
You must be signed in to change notification settings - Fork 392
Closed
Labels
Description
Context / Scenario
I'm using Kernel-memory with LLamaSharp. Despite having a RTX 3080 and the latest CUDA drivers installed, CUDA is not used.
Question
Not sure if this is a bug or I'm missing something, so here's a question instead:
The LlamaSharp.csproj contains
<PackageReference Include="LLamaSharp.Backend.Cpu"/>
<PackageReference Include="LLamaSharp.Backend.Cuda12"/>
I found out that if both Cpu
and Cuda12
back-ends are referenced, only the CPU is being used even if the CUDA DLL is loaded.
If I remove the reference to LLamaSharp.Backend.Cpu
, then the CUDA back-end will start to be used.
It might be a "latest version thing", I don't know. But here you are.