This was compiled on Kaggle with with the Nvidia T4. Used Torch version is:
!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
At the time of writing, the free version of Amazon Sagemaker uses Python 3.9 and Nvidia T4. This would work for Stable Diffusion inside there.
Pick the right one for your Python version (can be seen at the CP38, = Python 3.8)