mlx 0.1.0
mlx: ^0.1.0 copied to clipboard
Dart bindings for Apple's MLX array framework on Apple Silicon: tensors, neural-network layers, FFT, quantization, and safetensors — via FFI to mlx-c.
Changelog #
0.1.0 - 2026-07-19 #
Initial release: Dart FFI bindings to mlx-c for Apple's MLX on Apple Silicon.
- Core: the
MlxArraytensor type withDType, lazyeval, streams, and memory helpers (cache clearing, peak-memory tracking). - Ops: elementwise math and operators,
matmul, the softmax family, reductions and orderings, array creation, indexing / shape manipulation, and channels-last convolutions. - FFT: real-input
rfft/irfft. - fast: fused kernels — scaled dot-product attention, layer norm, RMS norm, and RoPE.
- random: keyed sampling —
randomKey,randomNormal,categorical, and seeding. - Quantization: group-wise affine
quantize/dequantize/quantizedMatmul. - nn: an MLXNN-style neural-network layer with a
Modulebase; linear / conv / embedding / norm / RNN layers; activations; a KV-cache; and quantization machinery whose registered parameter names match MLX-converted checkpoints 1:1. - I/O: safetensors loading.