ml-explore

    ml-explore/mlx-swift-examples

    Examples using MLX Swift

    ios
    mlx
    Swift
    MIT
    2.7K stars
    432 forks
    2.7K GitHub watchers
    Updated Oct 30, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 379 days ago, with 58 contributors on GitHub.

    Peaked at #55 in the weekly ranking the week of Sep 21, its best in the past year.

    Use Cases & Benefits

    • Provides example Swift programs demonstrating usage of MLX Swift libraries for machine learning tasks including LLMs, VLMs, embeddings, and stable diffusion.
    • Offers ready-to-run, platform-compatible examples that simplify integrating and experimenting with various MLX models on iOS, macOS, and visionOS.
    • Use for learning how to implement and train digit recognition models like LeNet on MNIST datasets in Swift.
    • Use for building chat applications that leverage large language and vision language models with simplified APIs.
    • Use for generating images from text prompts using stable diffusion models directly within Swift applications.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Developers can use these examples in their own programs -- just import the swift package!

    See also MLXLMCommon. You can easily use a wide variety of open weight LLM and VLMs in your code. You can use this simplified API:

    Or use the underlying API to control every aspect of the evaluation.

    Excerpt from the ml-explore/mlx-swift-examples README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    432+15

    Open issues

    43+4

    Compared with peers in iOS

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    ml-explore/mlx-swift-examples compared with iOS repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    vercel-labs/agent-desktop17.0K+13.3K33today
    nightly-labs/openbot5.8K+2.0K45today
    rustdesk/rustdesk128.3K+839654 days ago
    crmne/zapfast3.1K+839602 days ago
    makecindy/cindy9.3K+77145today
    ml-explore/mlx-swift-examples2.7K—45379 days ago
    Category median9.3K+83945—

    Also by ml-explore

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description