dockerrun--rm-it--gpusall\--cap-add=SYS_ADMIN\-eNVIDIA_MIG_CONFIG_DEVICES=all\ubuntu
# in the container# Create two `3g.20gb` GPU instances (GI) and corresponding compute instances (CI)nvidia-smimig-cgi9,3g.20gb-C
# List the available CIs and GIsnvidia-smimig-lgi;nvidia-smimig-lci;# Destroy all the CIs and GIsnvidia-smimig-dci;nvidia-smimig-dgi;
This should also work on A30/H100/H200 by substituting the MIG profile to a supported one.
Note: --runtime=nvidia, -e NVIDIA_VISIBLE_DEVICES=all, and -e NVIDIA_DRIVER_CAPABILITIES=all may be required depending on your environment and use cases.