Skip to main content

Build, deploy, generate keys, and query an encrypted pipeline

Lattica Studio is a workspace for the lifecycle of a homomorphic pipeline. You build it from Lattica's operators and deploy it to the Lattica Platform, where you can manage resources and user access. Encrypted queries are processed without decryption, and the result remains encrypted until it is returned to the user.

The lifecycle​

Four stages, in order. To get started, you need a Lattica license and an installation of Lattica Studio. Open any stage to see its steps.

on your machine · the part you write
1
Compose with HomOps
operators shaped like standard ML ops, with extra parameters for FHE
2
Set the structure
arrange your HomOps into the computation graph
3
Define parameters
shapes, weights, and encryption params
studio.deploy_pipeline()

On upload or compile error, fix the pipeline and deploy again from Build.

1
Register or reuse
create a model, or redeploy into the same name
2
Upload
pipeline + params
3
Compile
the backend turns it into an FHE circuit
tokens.create + keys.ensure
1
Create access token
studio.tokens.create, saved locally for this model name
2
Register keys
secret key stays; evaluation key uploads and registers; no worker needed
query loop
1
Start worker
credits begin for the query session
2
Load existing key
keys.ensure() reuses local artifacts; worker loads registered EVK
3
query.encrypted()
repeat as many times as you need
×N
4
Stop worker
credits stop

Click a stage to collapse or open it. Build and key generation run on your machine; Deploy registers and compiles on the platform, and Query uses a worker.

Where it runsYour machineLattica Studio + platformToken and keysWorker
Studio and Query Client can be together, but they do not have to be.

For development and testing, the Query Client can run in the same environment as Lattica Studio. In production, it can run in a separate environment, allowing encrypted queries to be sent from wherever the end user is running their application.

Before starting a worker, make sure your account has enough credits.

Where to go next​

Read the concepts first if homomorphic pipelines are new to you. Otherwise, start at the stage you care about.