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.jsonhom_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.zipexists,- command prints a JSON summary including members
hom_pipeline.jsonandhom_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
- Build and serialize a pipeline with
lattica-build. - Pass the artifact to
lattica-studio. - Use
lattica-studiofor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lattica_build-0.1.2-py3-none-any.whl.
File metadata
- Download URL: lattica_build-0.1.2-py3-none-any.whl
- Upload date:
- Size: 286.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0af8eb25b6b8d8a00578a6744f52adb8335834df480f2010a18827cf54ea508
|
|
| MD5 |
fd949218a6bf55e4694d56d614c65d76
|
|
| BLAKE2b-256 |
30621bce9e1030ebba6fff267869d621a237eaafce18388ed7b77f0c28462375
|