Skip to main content

Lattica Studio

lattica-studio is the control-plane client for Lattica homomorphic workloads.

It handles model lifecycle operations:

  • deploy and compile encrypted pipelines
  • start and stop worker sessions
  • create and manage query tokens
  • coordinate first-time encrypted query setup

Encrypted inference requests are executed by lattica-query after this setup.

Requirements

  • Python >=3.11
  • A valid Lattica account license key

Install

Published package:

pip install lattica-studio

Quickstart

Set your license key:

export LATTICA_LICENSE_KEY="<your-license-key>"

Run the end-to-end MNIST example:

python -m lattica_studio.example

The example in lattica_studio/example.py builds a pipeline artifact, deploys it, starts a worker, creates a token, generates keys, and sends encrypted queries.

Core workflow

Use this sequence in production and development:

  1. Deploy and compile a model pipeline.
  2. Start a worker session for that model.
  3. Create a query token (owner/admin step).
  4. In query clients, generate keys and upload evaluation key (EK).
  5. Send encrypted queries and decrypt responses client-side.

Practical iteration strategy

Worker runtime is billed while active, so keep workers up only when needed.

Recommended staged iteration:

  • Stage A (pipeline changes): deploy and compile.
  • Stage B (one-time per compiled context): create token, generate keys, register EK.
  • Stage C (repeated queries): start worker only for query windows, then stop.

If the pipeline architecture changes, treat it as a new encrypted context: redeploy, create a fresh token, and regenerate keys.

Resource inspection helper

Use the table-printing helper to inspect account resources:

python -m lattica_studio.list_and_display models
python -m lattica_studio.list_and_display workers
python -m lattica_studio.list_and_display tokens
python -m lattica_studio.list_and_display all

list_and_display reads LATTICA_LICENSE_KEY by default, or accepts --license-key.

More docs

License

Distributed under the Lattica Studio License: internal, non-commercial, research, or evaluation use only.

Copyright (c) LatticaAI Inc. All rights reserved.

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_studio-0.1.3-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file lattica_studio-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lattica_studio-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cd6cd23a3397147448df1b7012654b5f1c2d96d217c5e4ddb6d555c9aad7abbc
MD5 ae9f06b2350080f31a9708b4dae2dd35
BLAKE2b-256 49db9e83810c2f3c5b66752f56f25e2aad427a76c70b0ade7cea43d1bfc28c72

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 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