Skip to main content

dianoia 0.5.0 copy "dianoia: ^0.5.0" to clipboard
dianoia: ^0.5.0 copied to clipboard

On-device LLM inference orchestrated in Dart, with native CPU kernels and Metal or Vulkan GPU kernels. Runs LFM3 for chat, tool calling and image chat.

example/lib/main.dart

/// A simple chat with an on-device model selected at launch.
///
/// Model bundles can be downloaded in the app or copied into the app's
/// documents; see README.md.
library;

import 'package:material_ui/material_ui.dart';

import 'src/model_selection_page.dart';

void main() => runApp(const DianoiaExampleApp());

class DianoiaExampleApp extends StatelessWidget {
  const DianoiaExampleApp({super.key});

  @override
  Widget build(BuildContext context) => MaterialApp(
    title: 'Dianoia',
    theme: ThemeData(colorSchemeSeed: Colors.indigo),
    darkTheme: ThemeData(
      colorSchemeSeed: Colors.indigo,
      brightness: Brightness.dark,
    ),
    home: const ModelSelectionPage(),
  );
}
0
likes
160
points
1.32k
downloads

Documentation

API reference

Publisher

verified publisheratrac613.com

Weekly Downloads

On-device LLM inference orchestrated in Dart, with native CPU kernels and Metal or Vulkan GPU kernels. Runs LFM3 for chat, tool calling and image chat.

Repository (GitHub)
View/report issues

Topics

#llm #inference #ffi #metal #vulkan

License

MIT (license)

Dependencies

code_assets, crypto, hooks, image, logging, native_toolchain_c

More

Packages that depend on dianoia