#8787th of 126 in Training and fine-tuning
opacus
PyTorch library for training models with DP-SGD differential privacy
Watch puts opacus on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.opacus is on your watch list. Its new releases and problems show there.
- Stars
- 2k
- License
- Apache-2.0
- Last commit
- Sep 2026
- Last release
- May 2026
- Language
- Python
1,918 on 28 Apr 20261,972 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Opacus trains PyTorch models with differential privacy. You create a PrivacyEngine and call make_private() on the model, optimizer and data loader, setting noise_multiplier and max_grad_norm, and it tracks the privacy budget spent during training. It also includes Fast Gradient Clipping and Ghost Clipping to cut DP-SGD memory use.
Who it is for: ML engineers and DP researchers training PyTorch models on sensitive data
Strengths
- Minimal code change: wrap model, optimizer and data loader with PrivacyEngine.make_private()
- Tracks the privacy budget spent online during training
- Fast Gradient Clipping and Ghost Clipping reduce DP-SGD memory requirements
- Tutorials cover BERT, image and LSTM classifiers, and LoRA with peft
Weaknesses
- PyTorch only; no support for other frameworks
- Module Validator and Fixer imply some layers need changes for DP training
- Privacy guarantees depend on noise and clipping values the user chooses
- Training-time library only; no serving or inference features
What it needs
- Needs PyTorch
- Models: PyTorch models
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Training and fine-tuning
See all 126| Rank | Project | Score |
|---|---|---|
| #85 | stable-audio-toolsTraining and inference code for diffusion-based audio generation models | 45 out of 100 |
| #86 | axlearnJAX-based library for training large-scale deep learning models | 44 out of 100 |
| #88 | paddlenlpLLM training, fine-tuning, compression and inference toolkit on PaddlePaddle | 42 out of 100 |
| #89 | ml-hypersimSynthetic indoor-scene dataset with per-pixel labels, plus a V-Ray rendering toolkit | 42 out of 100 |
| #90 | qwen-vl-series-finetuneFine-tuning scripts for Qwen2-VL, Qwen2.5-VL, Qwen3-VL and Qwen3.5 | 41 out of 100 |