Skip to main content

orion-v2-compiler

Orion FHE compiler — traces, fits, and compiles PyTorch neural networks for encrypted inference using the CKKS scheme.

Part of the Orion FHE framework.

Usage

import orion_compiler.nn as on
from orion_compiler import Compiler, CKKSParams

class MLP(on.Module):
    def __init__(self):
        super().__init__()
        self.flatten = on.Flatten()
        self.fc1 = on.Linear(784, 128)
        self.act1 = on.Quad()
        self.fc2 = on.Linear(128, 10)

    def forward(self, x):
        x = self.flatten(x)
        x = self.act1(self.fc1(x))
        return self.fc2(x)

net = MLP()
compiler = Compiler(net, CKKSParams(logn=14, logq=[55, 40, 40, 40], logp=[61, 61], log_default_scale=40))
compiler.fit(dataloader)
compiled = compiler.compile()
model_bytes = compiled.to_bytes()

Modules

  • orion_compiler — Compiler, CKKSParams, CompiledModel, Graph, GraphNode, GraphEdge, KeyManifest, CompilerConfig, CostProfile
  • orion_compiler.nn — FHE-compatible layers (cleartext-only forward)
  • orion_compiler.core — Compilation algorithms (tracer, packing, level assignment, auto-bootstrap, galois)

Metadata

Release files for orion-v2-compiler 2.1.8

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

Source distribution (sdist)

Source distribution for orion-v2-compiler 2.1.8
File Size Uploaded Provenance Actions
orion_v2_compiler-2.1.8.tar.gz 45.8 kB With provenance Details for orion_v2_compiler-2.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for orion-v2-compiler 2.1.8
File Interpreter ABI Platform Actions
orion_v2_compiler-2.1.8-py3-none-any.whl Python 3 none any Details for orion_v2_compiler-2.1.8-py3-none-any.whl

Total release size: 101.3 kB

Release files / orion_v2_compiler-2.1.8.tar.gz

Download URL orion_v2_compiler-2.1.8.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ceada4ee39f8905531012c8442eb73b3a6f502f26ef78fff0268dd342667fc93
BLAKE2b-256 checksum
How to use checksums
7ccea6d1749693194689bb4456220b67a5e03942589e3c3172e13886e04c6bd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 17, 2026.

Transparency log

Release files / orion_v2_compiler-2.1.8-py3-none-any.whl

Download URL orion_v2_compiler-2.1.8-py3-none-any.whl
Size 55.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3c4acba9208554f69957cdaab147afb192043d4919aa5f6b7c926f4104fdb1f
BLAKE2b-256 checksum
How to use checksums
1fae608f6d7aecf5571c2606ceec365ef638009bfa805769c7de5abc05a8f47c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 17, 2026.

Transparency log

Security for orion-v2-compiler 2.1.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for orion_v2_compiler-2.1.8.tar.gz

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 May 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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