Skip to main content

opake-dpsgd

DP-SGD mechanisms for Opake: Gaussian noise, clipping (fixed, AUTO-S, adaptive), and Poisson subsampling. Functional optimizers (including the universal adamw with optional DP bias correction) live in opake.optimizers.

Install

Install the root package as described in the repository installation guide. opake-dpsgd is included in the default opake package set.

Quick start

from opake.dpsgd.clipping import auto_clipped_grad, clipped_grad
from opake.random import key
from opake.dpsgd.clipping import adaptive_clipped_grad
from opake.dpsgd.noise import gaussian_noise
from opake.dpsgd.sampling import PoissonSampler

Layout

  • opake.dpsgd.noise — gaussian_noise
  • opake.dpsgd.clipping — clipped_grad, auto_clipped_grad, per_group, adaptive_clipped_grad, .types, .fun
  • opake.dpsgd.sampling — PoissonSampler (optional truncated_batch_size)

RNG keys, pytree helpers, distributed plumbing, and serialization live in opake-engine.

Metadata

Release files for opake-dpsgd 0.16.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for opake-dpsgd 0.16.1
File Interpreter ABI Platform
opake_dpsgd-0.16.1-py3-none-any.whl Python 3 none any Details

Release files / opake_dpsgd-0.16.1-py3-none-any.whl

Download URL opake_dpsgd-0.16.1-py3-none-any.whl
Size 49.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
191c5e9d52390fb069cbb7bc6016680efedea349fca13906c47d9f7954ec2243
BLAKE2b-256 checksum
How to use checksums
aae1f41dc72fb99c7fd612567a596a61f85e8eb960ba82834ba1ad05523cab64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.16.1 This release

1 release file

0.16.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page