Stable Diffusion¶
To generate a Stable Diffusion model repository inside a Triton container:
Make sure you have access to gated repository Stable Diffusion
huggingface-clilogin can be done before you run the script or,--auth_tokenoption can be passed while running the script eg:python generate_SD_repo.py --auth_token=<hf_token>Run the
generate_SD_repo.pyscript. The script is located at “/opt/qti-aic/integrations/triton/release-artifacts/stable-diffusion-ensemble”, which creates anensemble-stable-diffusionmodel repository.
Start the Triton server:
/opt/tritonserver/bin/tritonserver -model-repository=/path/to/ensemble-stable-diffusionTriton server takes about 2 minutes to start on the first go as it needs to compile QPC.
Use
client_example.pyfor testing.