Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ml-explore/mlx-c
C API for MLX
https://github.com/ml-explore/mlx-c
mlx
Last synced: 6 days ago
JSON representation
C API for MLX
- Host: GitHub
- URL: https://github.com/ml-explore/mlx-c
- Owner: ml-explore
- License: mit
- Created: 2023-12-12T23:50:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-02T17:43:34.000Z (20 days ago)
- Last Synced: 2024-12-02T18:51:08.520Z (20 days ago)
- Topics: mlx
- Language: C++
- Homepage: https://ml-explore.github.io/mlx-c
- Size: 4.22 MB
- Stars: 83
- Watchers: 14
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# MLX C
MLX C is a C API for [MLX](https://github.com/ml-explore/mlx).
MLX is an array framework for machine learning on Apple silicon. MLX C expands
MLX to the C language, making research and experimentation easier on Apple
silicon.MLX C can be used standalone or as a bridge to bind other languages to
MLX. For example, the [MLX Swift](https://github.com/ml-explore/mlx-swift/)
package uses MLX C to provide a Swift API to MLX.For more information see the [docs](https://ml-explore.github.io/mlx-c).
## Install
CMake is required to build MLX C. You can install it with [Homebrew](https://brew.sh/):
```shell
brew install cmake
```To build, run the following commands:
```shell
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
```From the `build/` directory, you can run an [example](examples/example.c)
that uses MLX C with `./example`.## Contributing
Check out the [contribution guidelines](CONTRIBUTING.md) for more information
on contributing to MLX C. See the
[docs](https://ml-explore.github.io/mlx/build/html/install.html) for more
information on building from source, and running tests.We are grateful for all of [our
contributors](ACKNOWLEDGMENTS.md#Individual-Contributors). If you contribute
to MLX C and wish to be acknowledged, please add your name to the list in your
pull request.