llama_cpp_flutter 0.1.0
llama_cpp_flutter: ^0.1.0 copied to clipboard
On-device LLM inference for Flutter, backed by llama.cpp: a vendored xcframework with a Pigeon bridge on iOS/macOS, wllama on web, plus GGUF chat clients for the agents framework and memory-aware mult [...]
Changelog #
0.1.0 #
Initial release.
- Cross-platform
LlamaRuntime/LlamaSessionAPI over llama.cpp:- iOS / macOS via a vendored Metal-enabled
llama.xcframework(downloaded from official llama.cpp releases duringpod install) with a typed Pigeon bridge. All native calls run on a dedicated worker isolate so model loading and token streaming never block the UI. - Web via
@wllama/wllama, with the matchingwllama.wasmshipped as a Flutter asset.
- iOS / macOS via a vendored Metal-enabled
ChatClientimplementations for theagentsframework, backed by local GGUF models.- Chat format layer with auto-detection from GGUF metadata: ChatML, Gemma, LFM2, Llama 3, Mistral, and Qwen templates, including streaming tool-call decoding (Hermes-style and model-specific markers).
- GGUF utilities: metadata reader, split-model (
-00001-of-0000N) support, and a resumable Hugging Face model downloader. - Memory-aware multi-agent orchestration over a single loaded model: memory estimation and budget planning, runtime memory monitoring, session snapshot store, and artifact staging.
- MTP speculative decoding on iOS/macOS via the
LlamaExtShimstaging ABI, with a CI ABI-drift check. - Prompt inspector diagnostics for examining rendered prompts.