P3 Instance has GPU, use it to train deep learning model is good. Always select the right instance to do things.
This is an example.
m5d.24xlarge 4 x 900 NVMe SSD $5.424 per Hour
p3.2xlarge $3.06 per Hour
Use p3 to train model is way faster than m5d instance and cheaper.
These are the tool list in the AWS deep learning AMI