-
Notifications
You must be signed in to change notification settings - Fork 456
Description
Right now, to switch backends, I have to uninstall one nuget package, and then reinstall another. -- This means that if I make an app, I would have to create different builds for every configuration.
Instead I'd rather just give someone a dropdown box in a UI and let them pick the backend, and have the app switch on the fly to whatever they have selected.
Ideally this would just be an enum in the ModelParams, something like Backend = LLamaSharp.Cuda
, or Backend = LLamaSharp.Cpu
, etc. (Heck, even if it has to be a global static parameter, that's better than having to make separate builds.)
One possible way it could be implemented is by shipping all of the libllama.dll files in the output directory with a slightly different name (i.e. libllama-cuda.dll, libllama-avx.dll, etc.) and dynamically loading the DLL into memory based on which backend is being requested.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status