搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單