Architecture

GGUF vs Cactus: why we moved to llama.cpp.

Earlier builds relied on Cactus bundles. Current PocketLLM Lite releases run standard GGUF files through llama.cpp while keeping legacy Cactus support intact. Here is why.

Why Cactus alone hit a ceiling

Early versions of PocketLLM Lite used the Cactus Flutter plugin for on-device inference. In July 2026, Cactus Flutter 1.3 was archived upstream. At the same time, most open-weight community releases land first on Hugging Face in standard GGUF quantizations such as Q4_K_M, not custom Cactus directories.

Rather than breaking older installs or locking users into a single catalog format, PocketLLM Lite isolated Cactus behind an adapter and adopted llama.cpp (via llamadart 0.21.0) as the primary local engine.

What GGUF via llama.cpp gives you

  • Any GGUF from storage or Hugging Face: browse GGUF quantizations in the Model Store, download one of 10 pinned starter models (checked by byte size and SHA-256), or import a .gguf file you already copied to your phone.
  • Predictable context & RAM guards: llama.cpp runs with a 4,096-token default context, replies up to 1,536 tokens, automatic 2,048-token fallback on tight memory, and system memory-pressure auto-unload.
  • Thermally conservative defaults: GPU backends such as Android Vulkan are experimental and off by default; CPU execution is the safer baseline across diverse phones.

How ABIs affect the runtime

Not every Android APK carries the same native libraries. In the current split-ABI builds:

  • arm64-v8a: bundles both libllama.so and legacy libcactus.so.
  • x86_64: bundles llama.cpp only (for desktop emulators and x86 tablets).
  • armeabi-v7a: omits native model runtimes entirely and connects to remote Ollama/OpenAI endpoints instead.

If you try it on your phone, open a GitHub issue or discussion with the model and device you ran — real hardware reports help everyone.

Sources

Ready when you are. Bring your own GGUF.

Download a pinned starter model or import any GGUF file straight from phone storage.

Latest v1.0.61Android 7.0+Install guide & all builds