Skip to main content

litertlm_dart 0.19.1+1 copy "litertlm_dart: ^0.19.1+1" to clipboard
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_dart

With Flutter:

 $ flutter pub add litertlm_dart

This 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+1

Alternatively, 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';
1
likes
140
points
24
downloads

Documentation

API reference

Publisher

verified publishersashadenisov.dev

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

Topics

#litert #llm #ffi #on-device #gemma

License

MIT (license)

Dependencies

code_assets, crypto, ffi, hooks, meta, mutex, yaml

More

Packages that depend on litertlm_dart