Enable a real-time session of interacitve run on GPUs.
22/tcp
is exposed for SSH and 8888/http
is exposed for JupyterLab.
ports
field takes a list, so you can specify multiple ports if necessary. Also if you want to specify a TCP port, you can append /tcp
to the port number; otherwise, /http
is used implicitly.
image=nvcr.io/nvidia/pytorch:22.10-py3
is utilized, and a V100 GPU (resources.preset=v1.v100-1.mem-52
) is allocated for the run. The interactive run is designed to run for 24 hours (interactive.max_runtime: 24h
) and the Streamlit demo will be accessible via port 8501.
The run commands first execute a bash script from a remote location (bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
), followed by the execution of webui.sh
.
This configuration provides an example of setting up an interactive run for executing a GPU-accelerated demo with real-time user interaction facilitated via a specified port.