UnityLlamaCpp icon indicating copy to clipboard operation
UnityLlamaCpp copied to clipboard

DLL Not found

Open sonnyky opened this issue 2 years ago • 7 comments

When I run the Test.prefab, I get the error: DLL not found. When the Editor launches it always shows an error saying llama.dll is not loaded because of missing dependencies. I'm on Windows 11. Can you share the native code as well?

sonnyky avatar Mar 23 '24 06:03 sonnyky

If you just add a package via unity Package Manager as per readme instructions, it will care about everything.

If you are manually cloning the repo, make sure git lfs is installed. git lfs install To fetch files from git lfs git lfs fetch

Most git ui like Git Kraken or SourceTree or will do this automatically.

mrtrizer avatar Mar 23 '24 06:03 mrtrizer

Thanks for the response. The title may be misleading. The dll file is there, but Unity is not loading it because of "missing dependencies" image

If we go ahead and run the project, it will spawn the dll not found error. image

sonnyky avatar Mar 23 '24 15:03 sonnyky

I'm having the same issue.

brwinkle avatar Mar 23 '24 21:03 brwinkle

How was this DLL generated or is it just the one from llama.cpp from the official build ? Which llama.cpp commit ?

batmanonline avatar Apr 26 '24 13:04 batmanonline

@batmanonline it is the dll that came from the official build, when doing the install from the git URL. I assume it is the master branch? since I just followed the instructions to install from the git URL.

sonnyky avatar May 01 '24 13:05 sonnyky

Sorry everyone, for my response taking so long. I had no free time recently due to becoming a father :)

How was this DLL generated or is it just the one from llama.cpp from the official build ? Which llama.cpp commit ?

The version is b1536 any dll from that version will work, I hope I'll have some time to update the bridge. But I recommend using https://github.com/SciSharp/LLamaSharp it has much better support that I can provide.

@batmanonline it is the dll that came from the official build, when doing the install from the git URL. I assume it is the master branch? since I just followed the instructions to install from the git URL.

The version was b1536 and current master have different struct layouts, so if you take dll from the newest version, it won't work

mrtrizer avatar May 11 '24 07:05 mrtrizer

@sonnyky My bad, I forgot to add ggml_shared.dll Fixed

mrtrizer avatar May 11 '24 08:05 mrtrizer