Graphics processing units (GPUs) and other hardware accelerators can dramatically reduce the time taken to train complex machine learning models. In this lab, you will take control of a p2.xlarge instance equipped with an NVIDIA Tesla K80 GPU to perform a CPU vs GPU performance analysis for Amazon Machine Learning. The instance is based on the AWS deep learning AMI that comes with many machine learning libraries pre-installed. You will create a Jupyter Notebook to write code and visualize results in a single document. The TensorFlow library is used for the CPU and GPU benchmark code.
Upon completion of this Lab you will be able to:
You should be familiar with:
Before completing the Lab instructions, the environment will look as follows:
After completing the Lab instructions, the environment should look similar to:
June 28th, 2023 - Resolved the tunnel creation issue
November 28th, 2022 - Updated lab to use EC2 Instance connect
January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab
Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Security Specialist (CKS), Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.