Back to Runanywhere Sdks

runanywhere_mlx

sdk/runanywhere-flutter/packages/runanywhere_mlx/README.md

0.20.121.1 KB
Original Source

runanywhere_mlx

Apple MLX backend for the RunAnywhere Flutter SDK — on-device LLM, VLM, speech, and embeddings on physical iOS 17.5+ devices.


Installation

yaml
dependencies:
  runanywhere: 0.20.12
  runanywhere_mlx: 0.20.12

Requires Xcode 26+ and a physical iOS device for MLX execution. See the Flutter SDK README for Podfile setup.


Usage

dart
import 'package:runanywhere/runanywhere.dart';
import 'package:runanywhere_mlx/runanywhere_mlx.dart';

final registered = await MLX.register(); // false on simulator / unsupported targets
if (registered) {
  await RunAnywhere.initialize();
  // Model registration, download, load, and inference via core RunAnywhere APIs
}

See the Flutter SDK README for full examples.


Support


License

RunAnywhere License. See LICENSE.