kherud / java-llama.cpp

Java Bindings for llama.cpp - A Port of Facebook's LLaMA model in C/C++
MIT License
279 stars 28 forks source link

What's the model path in android? #69

Closed Raffa064 closed 2 months ago

Raffa064 commented 3 months ago

What type of path do it needs on setModelFilePath in android? Absolute, Asset relative, ... ?

kherud commented 3 months ago

Hey @samolego can you maybe answer this?

samolego commented 3 months ago

You need absolute path, make sure you have the permissions for external storage if you have it there.

samolego commented 3 months ago

Though llama.cpp now offers an official android example as well, you might want to look at there.

Raffa064 commented 3 months ago

Though llama.cpp now offers an official android example as well, you might want to look at there.

Where do I found it?

samolego commented 3 months ago

See https://github.com/ggerganov/llama.cpp/tree/master/examples/llama.android