omnibias-torch
PyTorch backend for the omnibias closed-form n-th derivative framework.
Why this is fast
All numbers float64, identical answers to autodiff up to ≤ 10⁻¹⁵. Full
derivation in docs/complexity.md.
- Laplacian overhead is
O(1)in input dimensionD(0.167 → 0.211 ms atD = 3 → 240on GPU,H = 256,B = 4096). - At
D = 240, the closed-form Laplacian is 199× faster thantorch.func.hessian+ trace and uses 108× less memory. - Iterated Laplacian
Δᵏis flat inkandD: closed-form stays at ~0.1 ms where folx-nested OOMs atk = 4. - Bit-identical to
omnibias-jaxandomnibias-keras(same sharedomnibias.corepolynomial coefficients).
Install
pip install omnibias-torch
# or:
pip install omnibias-torch[examples,test]
omnibias-torch depends on omnibias-core (pure-Python math) and
torch>=2.0.
Public API
import torch
from omnibias.torch import (
OMBU, OperatorBlock, cmbLinear, cmbConv1d, cmbConv2d,
GrowableOMBU, get_activation, list_activations, register_activation,
BankSpec, BiasScan, MultiPackUnit,
)
# Trainable scalar-operator primitive (drop-in for an activation):
ombu = OMBU(num_channels=4, K=2, base="tanh")
out = ombu(torch.zeros(3, 4))
# Operator-typed block. Six roles: identity | grad | laplacian | derivative
# | band | integral. grad/laplacian/derivative are closed-form sigma^(n);
# integral is the closed-form antiderivative window S(z+b_hi)-S(z+b_lo), S'=sigma.
block = OperatorBlock(channels=8, op="grad", base="sigmoid")
# CmbLinear: drop-in for nn.Linear with an inline operator block:
linear = cmbLinear(in_features=128, out_features=64, op="identity", base="tanh")
# 23 registered activations, every Riccati-class one with closed-form
# derivatives at every order:
print(list_activations())
Wave-1 primitives: MultiPackUnit (heterogeneous Birkhoff
packs, 01-01, shipped) and BiasScan / BankSpec (transverse scan along w, 01-02, shipped).
BiasScan templates reuse the six OperatorBlock roles; equivariance is an
interior lattice shift, not a circular wrap. Soft-argmax gamma is not
delta -> 0. See docs/api/multipack.md and
docs/api/scan.md.
Shipped Wave-3 architectures: ScanNet (on-lattice equivariance, not
R^D; G4 leftover-recorded), JetKAN (exactness of the model jet; the
KA theorem does not justify; G2 leftover-recorded), EquivariantScan
(gaussian-family steering; discrete C_L; G5 leftover-recorded), and
hierarchical_scan (1-D offsets; eta=0 bit-identical to dense), and
LadderNet (Rodrigues reweight required; G4 leftover-recorded).
See
docs/api/scannet.md,
docs/api/jetkan.md,
docs/api/ladder.md,
docs/api/equivariant_scan.md, and
docs/api/hierarchy.md.
See docs/theory.md and the cookbook for end-to-end PINN, CmbNet, and CvxLayer examples.
Activation dictionary
23 real-valued activations registered, plus 3 complex-valued (NQS).
See omnibias.STABILITY.md (sanitized for the public docs site as
docs/stability.md) for the full table of supported derivative orders
per activation.
License
Apache-2.0. See LICENSE and ../../LICENSING.md.
You never need a commercial licence for this package.
Release files for omnibias-torch 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| omnibias_torch-0.4.0.tar.gz | 294.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omnibias_torch-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 549.8 kB
Release files / omnibias_torch-0.4.0.tar.gz
| Download URL | omnibias_torch-0.4.0.tar.gz |
|---|---|
| Size | 294.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee68376a6fd8c02b4ae71b23a15544b36eab032ff960cb91ca4910c0003c95dc
|
|
BLAKE2b-256 checksum How to use checksums |
4e0a9e181dca03a6e0fc9c5d9bbc73309427b3bb5299b649e1b0a8ab442d3f11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Sep 13, 2026.
Transparency logRelease files / omnibias_torch-0.4.0-py3-none-any.whl
| Download URL | omnibias_torch-0.4.0-py3-none-any.whl |
|---|---|
| Size | 255.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2f742634f8cf2f7bd282b534c7a37786e79ed619576afa3195e2392f7823e0f
|
|
BLAKE2b-256 checksum How to use checksums |
da0ce753ed034f4054283df31d3436c377ee63bfa42b92273e452e836b2cb4b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Sep 13, 2026.
Transparency log