ml-explore/mlx-swift
Swift API for MLX
What it solves
MLX Swift provides a native Swift API for the MLX array framework, enabling developers to perform machine learning research and experimentation directly within the Swift language on Apple silicon.
How it works
It acts as a Swift expansion of the MLX framework, allowing users to build and train models using Swift. It supports multiple build systems including Xcode, SwiftPM, and CMake, and provides backends for Metal (on macOS/iOS) and CUDA (on Linux).
Who it’s for
Swift developers and ML researchers who want to leverage Apple silicon's performance for machine learning tasks on macOS, iOS, and Linux.
Highlights
- Native Swift API for the MLX array framework.
- Supports LLM and VLM implementations via the complementary
mlx-swift-lmpackage. - Cross-platform support for macOS, iOS, and Linux.
- Includes examples for training LeNet on MNIST, running chat apps with LLMs/VLMs, and generating images with Stable Diffusion.
Related
- Project
- Project
- Project
- Project
- Project