swift-models  by tensorflow

Collection of Swift ML models/examples, demonstrating Swift for TensorFlow's capabilities

created 7 years ago
647 stars

Top 52.5% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a collection of machine learning models, datasets, and examples built using Swift for TensorFlow. It serves as a demonstration of the platform's capabilities and a resource for developers looking to build ML applications in Swift.

How It Works

The project leverages Swift's strong type system and performance characteristics for machine learning tasks. It includes pre-built models for image classification, text processing, and generative tasks, along with wrappers for common datasets. A generalized training loop abstraction and TensorBoard integration are provided to streamline the ML development workflow.

Quick Start & Requirements

  • Install/Run: swift run -c release [Example] [Options] (or swift run -Xswiftc -use-ld=lld -c release [Example] [Options] on Windows).
  • Prerequisites: Swift compiler toolchain (specifically, a version compatible with the chosen branch, e.g., tensorflow-0.12 for release 0.12). CMake 3.16+ and Ninja build tool are recommended for development.
  • Resources: Release builds are highly recommended for performance.
  • Docs: tensorflow/swift

Highlighted Details

  • Comprehensive library of pre-built models including DenseNet, EfficientNet, LeNet-5, MobileNet, ResNet, VGG, BERT, and GPT-2.
  • Swift wrappers for numerous datasets like CIFAR-10, ImageNet, MNIST, and MovieLens.
  • Includes components for image loading/saving (stb_image, experimental libjpeg-turbo), model checkpointing, and TensorBoard integration.
  • Offers benchmarks and unit tests to validate Swift for TensorFlow API functionality.

Maintenance & Community

  • The Swift for TensorFlow project was archived in February 2021. Active development on this repository is no longer occurring.
  • Community discussion occurs on the swift@tensorflow.org mailing list.

Licensing & Compatibility

  • The repository's license is not explicitly stated in the README. However, the parent project, tensorflow/swift, is Apache 2.0 licensed. Compatibility for commercial use or closed-source linking would require clarification of the specific license for this repository's contents.

Limitations & Caveats

  • The Swift for TensorFlow project has been archived, meaning this repository is no longer actively maintained or developed.
  • The design and interfaces of components may have changed regularly due to its experimental nature.
Health Check
Last commit

5 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 90 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), and
45 more.

tensorflow by tensorflow

0.1%
191k
Open-source ML framework
created 9 years ago
updated 16 hours ago
Feedback? Help us improve.