acoustic-van-30942
04/14/2023, 10:37 PMp2.xlarge instance type and the Sagemaker training job is using the ml.p2.xlarge instance type. Configuration for both was set the same. Any clue as to why the Sagemaker training job is slightly faster?ancient-application-36103
04/14/2023, 11:04 PM@conda - that can potentially add ~30s to runtime - which shouldn't matter for longer training runsancient-application-36103
04/14/2023, 11:04 PMml.p2.xlarge is 25% more expensive than p2.xlargeacoustic-van-30942
04/14/2023, 11:06 PM@conda_base , and that's about 3-5 minutes but only counts as overhead at the startancient-application-36103
04/14/2023, 11:08 PMancient-application-36103
04/14/2023, 11:08 PMacoustic-van-30942
04/14/2023, 11:08 PMancient-application-36103
04/14/2023, 11:09 PMacoustic-van-30942
04/14/2023, 11:09 PMacoustic-van-30942
04/14/2023, 11:09 PMancient-application-36103
04/14/2023, 11:10 PM@resources ?ancient-application-36103
04/14/2023, 11:11 PMacoustic-van-30942
04/14/2023, 11:14 PMgpu=1, memory=24000ancient-application-36103
04/14/2023, 11:15 PMp2.xlarge supports 4 vcpus and 60G RAMancient-application-36103
04/14/2023, 11:16 PM@batch(gpu=1, cpu=4, memory=60000)acoustic-van-30942
04/14/2023, 11:17 PMancient-application-36103
04/14/2023, 11:18 PMcpu=4 in the @batch (or @resources) decorator, by default the job will only use 1 vcpuacoustic-van-30942
04/14/2023, 11:18 PMancient-application-36103
04/14/2023, 11:20 PMacoustic-van-30942
04/14/2023, 11:22 PMancient-application-36103
04/14/2023, 11:24 PM@resources and @batch decorator dictate how much resources of a single ec2 instance are allocated to a job. You can fit multiple jobs on a single instance - which will lead to further (and drastic) cost reductions compared to Sagemaker.acoustic-van-30942
04/14/2023, 11:25 PMacoustic-van-30942
04/18/2023, 4:03 PM@batch(gpu=1, cpu=4, memory=60000) and each epoch still took about 10.6 minutes in comparison to Sagemaker Training's 9.15 minutes per epoch.