Swift Machine Learning

Open-source Swift projects categorized as Machine Learning

Top 16 Swift Machine Learning Projects

Machine Learning
  1. Bender

    Easily craft fast Neural Networks on iOS! Use TensorFlow models. Metal under the hood.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. CoreML-in-ARKit

    Simple project to detect objects and display 3D labels above them in AR. This serves as a basic Template for an ARKit project to use CoreML.

  4. NSFWDetector

    A NSFW (aka porn) detector with CoreML

  5. LlamaChat

    Chat with your favourite LLaMA models in a native macOS app

  6. AIToolbox

    A toolbox of AI modules written in Swift: Graphs/Trees, Support Vector Machines, Neural Networks, PCA, K-Means, Genetic Algorithms

  7. Swift-Brain

    Artificial intelligence/machine learning data structures and Swift algorithms for future iOS development. bayes theorem, neural networks, and more AI.

  8. TensorSwift

    A lightweight library to calculate tensors in Swift, which has similar APIs to TensorFlow's

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. SwiftCoreMLTools

    A Swift library for creating and exporting CoreML Models in Swift

  11. CoreMLPlayer

    Try CoreML models on multiple images and videos easily and quickly

  12. Neuron

    A neural network library for Swift (by wvabrinskas)

  13. DL4S

    Accelerated tensor operations and dynamic neural networks based on reverse mode automatic differentiation for every device that can run Swift - from watchOS to Linux

  14. CLIP-Finder2

    CLIP-Finder enables semantic offline searches of images from gallery photos using natural language descriptions or the camera. Built on Apple's MobileCLIP-S0 architecture, it ensures optimal performance and accurate media retrieval.

    Project mention: Homomorphic Encryption in iOS 18 | news.ycombinator.com | 2025-01-15

    Here's an open source iOS app[1] that does that. Incidentally, it's built using Apple's own MobileCLIP[2] models.

    [1]: https://github.com/fguzman82/CLIP-Finder2

  15. Revolver

    A framework for building fast genetic algorithms in Swift.

  16. seeV

    A macOS command line wrapper around the Apple Vision framework

    Project mention: A Picture Is Worth 170 Tokens: How Does GPT-4o Encode Images? | news.ycombinator.com | 2024-06-07

    I also wrote a Swift CLI that wraps over the Vision framework: https://github.com/nexuist/seev

    Text extraction is included (including the ability to specify custom words not found in the dictionary) but there are also utilities for face detection, classification, etc.

  17. swift-ranker

    Easily Score & Rank Codable Objects with ML

  18. sniglet

    Generate sniglets with machine learning!

  19. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Swift Machine Learning discussion

Log in or Post with

Swift Machine Learning related posts

  • Metal-flash-attention: Faster alternative to Metal Performance Shaders

    1 project | news.ycombinator.com | 25 Dec 2023
  • LlamaChat abnormally bad with LLaMa-7B

    1 project | /r/LocalLLaMA | 23 Jun 2023
  • Machine learning modules for swift

    1 project | /r/swift | 25 Oct 2022
  • Should I use accelerate or another library for simple, np.sum-like, matrix operations?

    1 project | /r/swift | 4 May 2022
  • August Review 2021

    3 projects | dev.to | 2 Sep 2021
  • [P] AppleNeuralHash2ONNX: Reverse-Engineered Apple NeuralHash, in ONNX and Python

    4 projects | /r/MachineLearning | 17 Aug 2021
  • Swift on the Server in 2020

    3 projects | news.ycombinator.com | 25 Apr 2021
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 27 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Machine Learning projects in Swift? This list will help you:

# Project Stars
1 Bender 1,800
2 CoreML-in-ARKit 1,679
3 NSFWDetector 1,612
4 LlamaChat 1,495
5 AIToolbox 795
6 Swift-Brain 334
7 TensorSwift 324
8 SwiftCoreMLTools 162
9 CoreMLPlayer 160
10 Neuron 128
11 DL4S 105
12 CLIP-Finder2 73
13 Revolver 29
14 seeV 26
15 swift-ranker 13
16 sniglet 8

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Swift is
the 15th most popular programming language
based on number of references?