Back to Runanywhere Sdks

@runanywhere/mlx

sdk/runanywhere-react-native/packages/mlx/README.md

0.20.121.0 KB
Original Source

@runanywhere/mlx

Apple MLX backend registration for the RunAnywhere React Native SDK — iOS-only; model lifecycle and inference live in @runanywhere/core.


Installation

bash
npm install @runanywhere/[email protected] @runanywhere/[email protected]
cd ios && pod install && cd ..

Requires Xcode 26+ and a physical iOS 17.5+ device. MLX.register() returns false on simulator. See the React Native SDK README.


Usage

typescript
import { RunAnywhere } from '@runanywhere/core';
import { MLX } from '@runanywhere/mlx';

const registered = await MLX.register();
if (registered) {
  await RunAnywhere.initialize();
  // Register, download, load, and infer via @runanywhere/core
}

See the React Native SDK README for full examples.


Support


License

RunAnywhere License. See LICENSE.