FLUTTER ECOSYSTEM

llama_cpp_dart

Dart binding for llama.cpp --- high level wrappers for both Dart and Flutter

Latest version
0.2.2
30-day downloads
3.6K
Likes
82
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart binding for llama.cpp that provides high-level wrappers for both Dart and Flutter applications. It enables local inference with large language models (LLMs) directly on mobile, desktop, and web platforms. The package simplifies integration of LLMs into apps without relying on external APIs, supporting offline operation and enhanced privacy. Built on the efficient llama.cpp C++ backend, it delivers fast performance across Android, iOS, macOS, Windows, and Linux.

Use cases
  • Local LLM inference in mobile apps
  • Offline chat applications
  • Privacy-focused AI tools
  • Custom AI assistants in Flutter
  • On-device text generation
Key features
  • Cross-platform support
  • High-level Dart API
  • Offline model execution
  • Integration with Flutter
  • Lightweight and fast
Suitable for
  • Developers building private AI apps
  • Flutter apps needing on-device LLMs
  • Projects requiring no internet-dependent AI
  • Teams prioritizing data privacy
  • Prototyping local AI features
Considerations
  • Requires compatible LLM models
  • Higher memory usage for large models
  • Limited to llama.cpp-supported models
  • Initial setup may require native dependencies
  • Performance varies by device hardware
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add llama_cpp_dart

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects

No data available yet.