Swiftpack.co - owkin/GrAIdient as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by owkin.
owkin/GrAIdient v0.3.1
GrAIdient is a deep learning framework that aims at challenging the way we train and run models in computer vision.
⭐️ 68
🕓 29 weeks ago
.package(url: "https://github.com/owkin/GrAIdient.git", from: "v0.3.1")

Ready for the grAIt descent?

GrAIdient is a framework that allows deep learning models to be developed using the internal GPU of a Mac, unlocking researchers to more easily train and run AI models on their own computers.

GrAIdient exposes the graph of layers, providing a unique way to design deep learning models for greater understanding, control and reproducibility.

Though deeply grounded to the data driven pipeline, the goal is to challenge the very understanding of deep learning models and inject human intelligence where relevant; to transition from black box models to white box models, and all the gradients in between.

Check out this toy VGG example and its documentation to get started with GrAIdient today!

✨ Key Features

  • direct access to the graph of layers and to the backward pass
  • run natively on Mac GPU (Intel GPU, eGPU, Apple Silicon)
  • written in Swift: a compiled language with strong typing
  • gradient checking to validate backward operations
  • PyTorch interoperability
  • gradients per batch & per sample (needed for differential privacy)
  • debug at the neuron level

📦 Swift Package Manager

Add the following dependency to your Package.swift manifest:

.package(url: "https://github.com/owkin/GrAIdient.git", .branch("main")),

📚 Documentation

The documentation is divided into several sections:

👨‍💻 Contributing

Read below to learn how to take part in improving GrAIdient.


All notable changes to GrAIdient will be documented in the changelog.

Contributing Guide

Read our contributing guide to learn about our development process and how to build and test your changes to GrAIdient.

Code of Conduct

GrAIdient has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.


GrAIdient, GrAITestsUtils and GrAITests are MIT licenced.

GrAIExamples and GrAITorchTests both depend on PythonKit and are Apache 2.0 licensed.


Stars: 68
Last commit: 4 days ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

29 weeks ago

0.3.1 (2023-08-09)

Bug Fixes

🐛 fix: input GPU check (#106)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics