搜索插件、代码仓与 APP 分类

插件详情v1.11.4

flutter_gemma

一个用于在 Android、iOS、Web 和桌面端本地运行 Gemma 及其他 LLM 的 Flutter 插件。支持多模态视觉、音频、函数调用、思考模式、GPU 加速、文本嵌入以及设备端 RAG。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4.1万
喜欢数
436
Pub 分数
130

安装插件

flutter pub add flutter_gemma

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Flutter_Gemma 是一个 Flutter 插件,可在 Android、iOS、Web 和桌面平台上本地运行 Gemma 及其他大型语言模型(LLMs)。它支持高级功能,如多模态输入(视觉和音频)、函数调用、思维模式、GPU 加速、文本嵌入以及设备端检索增强生成(RAG)。专为注重隐私的应用程序设计,可在设备上完全离线运行模型,无需依赖云服务。非常适合需要实时、安全且离线运行能力的 AI 应用开发。

适合场景

  • 离线AI聊天应用
  • 注重隐私的内容生成
  • 多模态图像和音频处理
  • 设备端RAG系统
  • 应用中的实时函数调用
  • 本地 LLM 推理用于移动和桌面

主要特点

  • 在所有平台上本地运行大语言模型
  • 支持视觉和音频多模态输入
  • GPU 加速以提升性能
  • 函数调用和思维模式
  • 文本嵌入和设备端RAG
  • 安全、保护隐私的推理

适合对象

  • 开发私有 AI 应用的开发者
  • 需要离线大语言模型功能的团队
  • 需要低延迟推理的应用程序
  • 专注于数据隐私的项目
  • 跨平台人工智能解决方案

使用建议

  • 大型模型的内存使用量过高
  • 需要兼容的硬件以获得最佳性能
  • 模型大小影响应用包大小
  • 仅限支持的模型架构
  • 初始设置可能需要特定于平台的配置

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Edge AI

pub package License: MIT

On-device AI for Flutter on Android, iOS, Web, macOS, Windows and Linux. Run any model a registered engine runs, or the model the operating system already ships, with text, vision, audio, function calling, embeddings, RAG and speech. No server, no cloud.

Website · Docs · Models · Codelabs · pub.dev

The core package is small: it installs models and hands them to engines. Every runtime, store and feature is a separate opt-in package, so an app ships only what it uses. Start with the core README or Getting started.

Packages

Package What it does Docs
flutter_edge_ai Core: model installation, the engine registry, sessions and chat. Required by every package except diagnostics and genkit_hybrid. pub.dev · site
Engines
flutter_edge_ai_litertlm LiteRT-LM (.litertlm) through dart:ffi on the five native platforms plus web; CPU, GPU and NPU; the LiteRT embedding backend. pub.dev · site
flutter_edge_ai_mediapipe MediaPipe (.task) on Android, iOS and web. Google's LLM Inference API is maintenance-only; new apps should use .litertlm. pub.dev · site
flutter_edge_ai_llama llama.cpp (.gguf) through llamadart on Android, iOS, macOS, Windows, Linux and web; native LoRA. pub.dev · site
flutter_edge_ai_onnx ONNX Runtime: GenAI inference and embeddings natively, Transformers.js and onnxruntime-web on web. pub.dev · site
flutter_edge_ai_builtin_ai The OS model, nothing to download: Gemini Nano (Android), Apple Foundation Models (iOS, macOS), Windows AI Foundry, the browser Prompt API. pub.dev · site
Embeddings and RAG
flutter_edge_ai_embeddings Embedding tokenizers (Gemma SentencePiece, BERT WordPiece) for .tflite and .onnx embedders. pub.dev · site
flutter_edge_ai_rag On-device RAG: RagIndex, embedding profiles, filters and the vector-store contract. pub.dev · site
flutter_edge_ai_sqlite SQLite (sqlite-vec) vector store on every platform, web included. pub.dev · site
flutter_edge_ai_qdrant Qdrant Edge vector store on native platforms. pub.dev · site
Speech, agents, diagnostics
flutter_edge_ai_speech Speech-to-text, text-to-speech and the VoiceSession voice loop. pub.dev · site
flutter_edge_ai_agent Agent skills (SKILL.md) the model picks and runs: text, JS, native intents and MCP tools. pub.dev · site
flutter_edge_ai_diagnostics Process memory diagnostics on Android, iOS, macOS, Linux and Windows. pub.dev · site
Genkit
genkit_flutter_edge_ai Genkit Dart plugin: on-device models and embedders as Genkit models. pub.dev · site
genkit_hybrid Hybrid routing for Genkit: on-device and cloud models behind one routing policy. Depends only on genkit. pub.dev · site

Which package you need for which task, and how they fit together: Packages and Capabilities.

Maintainers

Maintainer Looks after
Sasha Denisov (@DenisovAV) Lead maintainer: the core API, the engines, the native builds and every release
Jhin Lee (@leehack) flutter_edge_ai_llama
Francesco Vezzani (@kekko7072) flutter_edge_ai_builtin_ai
Samarthsinh Vala (@samarthsinh2660) flutter_edge_ai_diagnostics
Daisuke Majima (@john-rocky) The Hugging Face integration: installing a model straight from its repository

Everyone else who has contributed, and more about each maintainer: flutteredge.ai/contributors.

Repository

More: Migration guide · Desktop support · Contributing. The family shipped as flutter_gemma* up to core 1.11.4; those names stay published as they are.

License

MIT — see LICENSE.

所属分类

依赖

依赖清单 12 项

源码仓库

使用此插件的项目

暂无相关数据。

所在榜单