Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Local LLM

A small Flutter demo for running language models entirely on-device with flutter_gemma. This app was built as a part of my Medium article about Flutter Gemma: The hidden gem of cross-platform local AI.

Features

  • Text generation and chat with Qwen3 0.6B
  • Prompt and response analysis
  • Local text embeddings
  • Retrieval-augmented generation (RAG) with a SQLite vector store
  • MediaPipe and LiteRT-LM inference engines

Getting started

Install Flutter with Dart 3.12 or newer, then run:

cp sample.env .env
flutter pub get
flutter run

The default models are public, so no API key is required. A Hugging Face token can be added to .env when using gated models.

On first launch, the app downloads the Qwen3 0.6B model (about 586 MB). The model and application data remain on the device, and inference works offline after the download completes.

About

A small cross-platform mobile app to demonstrate on-device LLMs with Flutter Gemma. It features text generation, classification, entity extraction, RAG capabilities and a chat.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages