Skip to content

Conda Installation

Prerequisites

The following packages are required:

sudo apt-get install -y libcurl4 llvm-14-dev g++-aarch64-linux-gnu

Cross compilation allows users to compile for a aarch64 device (say Jetson or Raspberry Pi) on an x86_64 host device (say Intel or AMD CPU). The g++-aarch64-linux-gnu package above enables this cross-compilation support.

1. Set license key

After you receive your license key via email, place it in the following location: ~/.leip/license.key.

If you'd like, export your license key as an environment variable:

export LEIP_LICENSE_KEY=<your-license-key>
And then run:

mkdir -p ~/.leip && echo "$LEIP_LICENSE_KEY" > ~/.leip/license.key
Alternative license key configurations

If you prefer, you can simply set LEIP_LICENSE_KEY as an environment variable. You can also place the key in a .leip/license.key file in your project directory: "$PWD"/.leip/license.key.

2. Set authentication key

To install packages from Latent AI, you'll need to strip the prefix from your license key and set an environment variable for authentication.

export LEIP_LICENSE_KEY=$(cat ~/.leip/license.key)
export LEIP_AUTH_KEY="${LEIP_LICENSE_KEY#key/}"

3. Create and Activate conda Environment

Python version requirement

Please note that Python versions are constrained and must be Python 3.9–3.11.

Copy or download the following environment.yml:

name: latentai
channels:
  - nvidia/label/cuda-12.6.0
  - conda-forge
  - defaults
dependencies:
  - jupyter
  - libstdcxx-ng
  - nvidia::cuda-tools
  - python=3.10
  - pip
  - pip:
      - --extra-index-url https://latentai:${LEIP_AUTH_KEY}@packages.latentai.io/python/
      - leip-design

Then run the following command to create the conda environment:

conda env create -f environment.yml

A new environment will be created in your conda installation called latentai which you can activate with the following command:

conda activate latentai