Skip to content

rudrankriyam/MLX-Outil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLX Outil

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."

Platforms Swift MLX

Features

  • 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

Requirements

  • Xcode 15.0+
  • iOS 17.0+
  • macOS 14.0+
  • visionOS 1.0+
  • Swift 6.0
  • MLX Swift (latest version)

Installation

  1. Clone the repository:
git clone https://github.com/rudrankriyam/mlx-outil.git
cd mlx-outil
  1. Open MLXOutil.xcodeproj in Xcode

  2. Ensure you have the necessary permissions set up in your target's capabilities:

    • HealthKit (for workout tracking features)
  3. Build and run the project

Usage

// Initialize view with SwiftUI
MLXOutilView()
    .environmentObject(MLXModel())

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For questions and support, please open an issue in the repository.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages