shubham0204/SmolChat-Android

Running any GGUF SLMs/LLMs locally, on-device in Android

What it solves

SmolChat provides a native Android interface for running small language models (SLMs) directly on your mobile device. It removes the need for cloud-based AI services, allowing users to perform local inference while maintaining control over their data and model parameters.

How it works

The application leverages the llama.cpp C++ library, which is compiled for Android using the NDK. It uses JNI (Java Native Interface) bindings to bridge the gap between the Kotlin-based Android UI and the C++ inference engine. Users can import GGUF-format models, configure system prompts, and adjust inference settings like temperature and min-p directly within the app.

Who it’s for

This project is for Android developers and AI enthusiasts who want to experiment with running local, privacy-focused language models on mobile hardware without relying on external APIs.

Highlights

  • Runs SLMs locally on-device using the llama.cpp engine.
  • Supports custom GGUF model imports and configurable inference parameters.
  • Includes a dedicated module for managing chat history and system prompts.
  • Features built-in Markdown rendering and code syntax highlighting for model responses.

Related

  • Project
  • Project
  • Project
  • Project