The Latent AI SDK is available on a set of Docker images. You will need to have Docker installed to continue with this guide. A container with all the required dependencies for the SDK is provided when you are running any of these images. For more information on Docker images and containers, refer to the Docker Overview.
We highly recommend you increase the amount of memory you have allocated to Docker from the default to at least 4GB of memory.
The Supportability Matrix provides a list of the model architectures and frameworks that LEIP supports.
Pulling the Container
Before you begin, you will need your license key and to have been granted access to Latent AI container registry in order to complete the SDK installation process. Please contact firstname.lastname@example.org for assistance if you need access to the registry or a license key.
The LEIP SDK is distributed in a Docker container. Please verify you have Docker 1.19 or greater installed on you target host, and that your host is an x86_64 system. Then, choose the container you would like to use for your development environment. There are multiple options depending on your use case. The latest version will always include the latest tag. Specific versions are also available by replacing the variant’s latest tag with the version number string (for example, registry.latentai.io/leip-sdk/gpu-cuda:2.9.x).
Optimized CUDA GPU Support
# Login to the Latent AI container registry # (for credentials, refer to the instructions that came with your license key) docker login registry.latentai.io # Pull one of the LEIP SDK Docker images from the registry docker pull $variant
Starting the Container
Once you have pulled the container, start it by using your LEIP license.
# Run the container using a valid LEIP license key # and setting the `--gpus all` directive as needed docker run -e LICENSE_KEY=$license-key --name leip -it --gpus all --ipc=host $variant # For a quick overview of the LEIP commands now available to you, type leip --help # TIP: after you exit the container, if you want to return to this container state docker start leip; docker attach leip # use docker rm leip to remove it