litertlm_dart 0.19.1+1
litertlm_dart: ^0.19.1+1 copied to clipboard
LiteRT-LM in pure Dart, no Flutter dependency: dart:ffi bindings, patched native builds fetched by a build hook, open sessions with rewind, NPU stacks and EmbeddingGemma 2.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add litertlm_dartWith Flutter:
$ flutter pub add litertlm_dartThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
litertlm_dart: ^0.19.1+1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:litertlm_dart/litertlm_dart.dart';