Skip to content

Building for Android #7

@torphix

Description

@torphix

Hi! Thanks for the great lib.

With respect to building for android im building using:
$ mkdir build-android
$ cd build-android
$ export NDK=<your_ndk_directory>
$ cmake -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23 -DCMAKE_C_FLAGS=-march=armv8.4a+dotprod ..
$ make

And the libllama.so file is successfully loading, however the model file isn't loading from the assets/models/<model_name>.gguf file
I've tested with linux build and the model successfully loads

Do you know if its a problem with how I am building the .so file for android or is it perhaps the location of my model needs to be different on android?

I'd appreciate any pointers in the right direction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions