Skip to content

Fix dotnet publish // LLamaSharp conflicts#500

Merged
dluc merged 2 commits intomicrosoft:mainfrom
dluc:fixllama
May 18, 2024
Merged

Fix dotnet publish // LLamaSharp conflicts#500
dluc merged 2 commits intomicrosoft:mainfrom
dluc:fixllama

Conversation

@dluc
Copy link
Copy Markdown
Collaborator

@dluc dluc commented May 18, 2024

Motivation and Context (Why the change? What's the scenario?)

LLamaSharp doesn't allow to include multiple backends at once in a packaged .NET app, requiring to build once for each backend (CPU, CUDA11, CUDA12, etc). The current code fails to "publish" due to concurring backends.

See also https://github.com/microsoft/kernel-memory/issues/498

High level description (Approach, Design)

Solve the "publish" issue by removing all LLamaSharp backends, leaving it to the end user/developer to choose one.

The need to build multiple times, once per LLamaSharp backend, persists, due to how LLamaSharp is designed. (if anyone knows of a workaround please let us know!)

@dluc dluc merged commit 8cc78e6 into microsoft:main May 18, 2024
@dluc dluc deleted the fixllama branch May 18, 2024 01:48
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

Successfully merging this pull request may close these issues.

1 participant