Back to the ticker

Sherpa runs LLaMA on an Android phone through a Flutter chat app

Bip-Rep published Sherpa on March 27, 2023, a Flutter app that runs llama.cpp on the phone itself, so the chat works with no network connection. The README asks users to bring their own weights, Meta’s 7B LLaMA converted to a ggml model file, which the app loads through a file picker, and version 2.1.0 added Vicuna support and macOS builds next to the Android and Windows ones. The project publishes no tokens per second figure and states no minimum memory, and the only device it names is a OnePlus 7 with 8 GB of RAM in the demo video below, which the README says was recorded at real speed. The code is MIT licensed.

Development stopped three weeks after it started. All 43 commits fall between March 27 and April 14, 2023, the last of the seven releases went out on April 14, 2023, and the llama.cpp fork the app builds against was last touched on April 12, 2023, four months before llama.cpp moved to the GGUF format. Sherpa reads the older ggml files rather than the GGUF models that have been standard since, and requests for GGUF support have gone unanswered, with 23 of the 29 issues ever filed still open. A contributor answered one of them by writing that the original developers had abandoned the project, and pointed to his own fork, Maid.

A working chatGPT running on a mobile using llama.cpp

Loading connects your browser to www.youtube-nocookie.com, which may process your IP address and use cookies.

Open externally
Video: tibzejoker.
  1. Georgi Gerganov publishes llama.cpp, LLM inference in plain C and C++
  2. Qualcomm runs Stable Diffusion on an Android phone for the first time
  3. George Hotz starts tinygrad, a framework that ports to an accelerator in about 25 ops