Back to directory

mlx-rs

mlx-rs provides Rust bindings for Apple's MLX array framework, giving Rust programs access to MLX's lazy evaluation, dynamic computation graphs and unified memory for machine learning on Apple Silicon.

mlx-rs

mlx-rs provides Rust bindings for MLX, Apple's array framework for machine learning on Apple Silicon. It aims to be a safe, idiomatic Rust interface to MLX rather than a reimplementation, so programs get MLX's own performance characteristics from Rust.

Inherited from MLX, arrays use lazy evaluation and are only materialized when needed, computation graphs are built dynamically so changing an argument's shape does not require recompilation, and an array can run on any supported device — currently CPU or GPU — through a unified memory model that avoids copying data between devices. Optional feature flags enable Metal GPU support and the Accelerate framework.

Automatic differentiation works differently than in Python's MLX: because Rust does not implicitly capture and trace variables in closures, arrays that should be traced through a computation must be passed explicitly as function inputs rather than captured from the surrounding scope.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.