You should be fine with any AMI that has anaconda + cuda installed. PyTorch works pretty much out of the box, just run conda install ... and you’re good to go.
Edit: ofc. if you don’t need gpu, anaconda alone will suffice.