Skip to content

Nuget references both CPU and CUDA simultaneously #589

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

Closed
xuzeyu91 opened this issue Mar 11, 2024 · 2 comments
Closed

Nuget references both CPU and CUDA simultaneously #589

xuzeyu91 opened this issue Mar 11, 2024 · 2 comments

Comments

@xuzeyu91
Copy link

<PackageReference Include="LLamaSharp" Version="0.10.0" />
<PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.10.0" />
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.10.0" />

When nuget references both CPU and CUDA simultaneously

NativeLibraryConfig
.Instance
.WithCuda(true)
.WithLogs(true);

The setting is not effective, GPU inference can only be used when deleting the nuget of the CPU
I hope to use CPU or GPU inference through configuration, rather than letting users reference different nuget packages themselves or load different nuget packages during packaging.
This may be more convenient for users

@vvdb-architecture
Copy link

Probably a duplicate of #456

@AsakusaRinne
Copy link
Collaborator

Close this issue as a duplicate. please move to #456 and I'll dig at this problem there.

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

3 participants