llama_cpp_dart icon indicating copy to clipboard operation
llama_cpp_dart copied to clipboard

Submodules not included on pub.dev

Open hacker1024 opened this issue 1 year ago • 6 comments

This project includes llama.cpp as a submodule, and it is used when running an Android build.

The submodule is not included in the published package on pub.dev, though, leading to errors.

CMake Error at CMakeLists.txt:16 (add_subdirectory):
  add_subdirectory given source "./llama.cpp" which is not an existing
  directory.

hacker1024 avatar Dec 13 '24 05:12 hacker1024

Exactly the same error here

ArachnaDigitalLtd avatar Dec 13 '24 13:12 ArachnaDigitalLtd

@hacker1024 as a workaround, I have put the whole llama.cpp repo in:

"C:\Users****\AppData\Local\Pub\Cache\hosted\pub.dev\llama_cpp_dart-0.0.8\src\llama.cpp"

Not ideal, but it works for now.

ArachnaDigitalLtd avatar Dec 13 '24 14:12 ArachnaDigitalLtd

if you can make a PR, I would love to merge it

netdur avatar Dec 13 '24 21:12 netdur

As far as I'm aware, this isn't really something code-related as it is more that something went wrong while running pub publish.

hacker1024 avatar Dec 14 '24 12:12 hacker1024

I need to manually cd into the package from under ~/.pub_cache to clone the llama.cpp into its /src folder to make it run

ndnam198 avatar Dec 25 '24 10:12 ndnam198

I checked the .gitmodules why are you using two versions of the llama.cpp library? Do you know the binaries from the releases e.g. https://github.com/ggerganov/llama.cpp/releases/tag/b4493 ?

My guess that using them would also save a lot of time.

rekire avatar Jan 16 '25 19:01 rekire