MLX Outil is a multiplatform Swift project to show tool usage with Qwen 2.5 1.5B and Llama 3 seris model using MLX Swift across iOS, macOS, and visionOS platforms.
The name MLX Outil is derived from the French word outil, which means "tool."
Love this project? Check out my books to explore more of AI and iOS development:
Your support helps to keep this project growing!
- Tool use demonstrations using Llama 3.2 3B model
- Cross-platform support (iOS, macOS, visionOS)
- On-device inference using MLX Swift
- Example tools implementation:
- Weather information (You will have to provide your own bundle identifier which has WeatherKit checked)
- Workout summary data
- Web search with Duck Duck Go
- Xcode 15.0+
- iOS 17.0+
- macOS 14.0+
- visionOS 1.0+
- Swift 6.0
- MLX Swift (latest version)
- Clone the repository:
git clone https://github.com/rudrankriyam/mlx-outil.git
cd mlx-outil
-
Open
MLXOutil.xcodeproj
in Xcode -
Ensure you have the necessary permissions set up in your target's capabilities:
- HealthKit (for workout tracking features)
-
Build and run the project
// Initialize view with SwiftUI
MLXOutilView()
.environmentObject(MLXModel())
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions and support, please open an issue in the repository.