litertlm_dart 0.19.1+2
litertlm_dart: ^0.19.1+2 copied to clipboard
LiteRT-LM in pure Dart, no Flutter dependency: dart:ffi bindings, a native build hook, open sessions with rewind, NPU stacks, EmbeddingGemma 2, and web via @litert-lm/core.
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+2Alternatively, 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';