mt_llmkit 0.0.1-beta.1 copy "mt_llmkit: ^0.0.1-beta.1" to clipboard
mt_llmkit: ^0.0.1-beta.1 copied to clipboard

A Flutter plugin for running Large Language Models locally on Android and iOS via llama.cpp, with real-time streaming inference and performance metrics.

0.0.1-beta.1 #

Initial beta release of mt_llmkit.

Features #

  • Local GGUF inference — run quantized LLMs entirely on-device via llamadart, with no internet connection required
  • Two execution backendsModelBackend.isolate (default, Dart Isolate, no UI jank) and ModelBackend.inProcess (lighter startup, supports clean())
  • Three generation methods on LocalModel / LlmInterface:
    • sendPrompt — raw token stream
    • sendPromptComplete — full response as a single String
    • sendPromptStream — token stream with live PerformanceMetrics (recommended)
  • Vision / multimodal — supports LLaVA, Gemma 3, Qwen VL, SmolVLM and any libmtmd-compatible model via LlmConfig.mmprojPath and LlamaImageContent
  • Performance metricsPerformanceMetrics with tokensGenerated, durationMs, tokensPerSecond, msPerToken updated on every StreamingChunk
  • Cloud AI chat providers — unified AIChatProvider interface with implementations for OpenAI, Google Gemini, Anthropic Claude, and Mistral AI; automatic retry with exponential back-off
  • Local RAG pipeline — fully on-device RagEngine with document chunking, embedding (via a separate CPU isolate), cosine-similarity vector search, and optional index persistence
0
likes
150
points
12
downloads

Documentation

API reference

Publisher

verified publishermobitouch.net

Weekly Downloads

A Flutter plugin for running Large Language Models locally on Android and iOS via llama.cpp, with real-time streaming inference and performance metrics.

Repository (GitHub)
View/report issues

Topics

#llm #llama-cpp #ai #on-device-ai #flutter-plugin

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, http, llamadart, plugin_platform_interface, web

More

Packages that depend on mt_llmkit

Packages that implement mt_llmkit