Opacus is a library that enables training PyTorch models with differential privacy. It supports training with minimal code changes required on the client, has little impact on training performance, and allows the client to online track the privacy budget expended at any given moment. Vectorized per-sample gradient computation that is 10x faster than micro batching. Supports most types of PyTorch models and can be used with minimal modification to the original neural network. Open source, modular API for differential privacy research. Everyone is welcome to contribute. ML practitioners will find this to be a gentle introduction to training a model with differential privacy as it requires minimal code changes. Differential Privacy researchers will find this easy to experiment and tinker with, allowing them to focus on what matters.

Features

  • Differential Privacy researchers will find this easy to experiment and tinker with
  • Train your model with differential privacy
  • The MNIST example shows an end-to-end run using Opacus
  • Opacus 1.0 introduced many improvements to the library
  • This code is released under Apache 2.0
  • ML practitioners will find this to be a gentle introduction to training a model with differential privacy

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Opacus

Opacus Web Site

Other Useful Business Software
Catch Bugs Before Your Customers Do Icon
Catch Bugs Before Your Customers Do

Real-time error alerts, performance insights, and anomaly detection across your full stack. Free 30-day trial.

Move from alert to fix before users notice. AppSignal monitors errors, performance bottlenecks, host health, and uptime—all from one dashboard. Instant notifications on deployments, anomaly triggers for memory spikes or error surges, and seamless log management. Works out of the box with Rails, Django, Express, Phoenix, Next.js, and dozens more. Starts at $23/month with no hidden fees.
Try AppSignal Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Opacus!

Additional Project Details

Programming Language

Python

Related Categories

Python Machine Learning Software, Python Neural Network Libraries

Registered

2022-08-17