Skip to main content

Lattica Build

lattica-build is the pipeline-construction SDK for Lattica workloads.

Use it to define a homomorphic computation graph, attach required tensors/constants, validate metadata compatibility before execution, and emit a deployable artifact.

This package is for pipeline construction only. Use lattica-studio for deployment and runtime lifecycle operations.

Installation

Requirements:

  • Python >=3.11

Install:

pip install lattica-build

What this produces

The output is a serialized pipeline artifact (zip) containing:

  • hom_pipeline.json
  • hom_pipeline.safetensors

You hand this artifact to lattica-studio.

60-second quickstart

Build the packaged branching example:

lattica-build --pipeline-module lattica_build.examples.advanced.branching --out /tmp/quickstart_branching.zip

Expected result:

  • command exits successfully,
  • /tmp/quickstart_branching.zip exists,
  • command prints a JSON summary including members hom_pipeline.json and hom_pipeline.safetensors.

First-time docs path

Topic Doc
Repository overview and end-to-end workflow ../README.md
Quickstart and runnable examples examples/README.md
Pipeline API and data binding (HomomorphicPipeline, set_data, serialization) base_classes/README.md
Operator composition model operators/README.md
Level/scale budget planning params/README.md

Python API

The same build flow is available without the CLI:

from lattica_build import build
from lattica_build.examples.advanced import branching

artifact = build(
    branching.build_pipeline(),
    branching.build_params(),
    "branching.zip",
    display_graph=True,
)

print(artifact.path)

build(...) returns a BuildArtifact; pass that object directly to LatticaStudio.deploy(...).

Build-to-deploy workflow

  1. Build and serialize a pipeline with lattica-build.
  2. Pass the artifact to lattica-studio.
  3. Use lattica-studio for deployment/runtime lifecycle operations.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lattica_build-0.1.2-py3-none-any.whl (286.6 kB view details)

Uploaded Python 3

File details

Details for the file lattica_build-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lattica_build-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0af8eb25b6b8d8a00578a6744f52adb8335834df480f2010a18827cf54ea508
MD5 fd949218a6bf55e4694d56d614c65d76
BLAKE2b-256 30621bce9e1030ebba6fff267869d621a237eaafce18388ed7b77f0c28462375

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 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