Skip to content

2025-ai-hardware-architectures-and-design-intro-to-training-intro-to-training created by GitHub Classroom

Notifications You must be signed in to change notification settings

hplp/intro-to-training-aishwaryaupadhyay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date Open in Codespaces

Assignment: PyTorch and Intro to Training

Overview

This assignment introduces you to PyTorch and demonstrates the process of training a simple MNIST classification model. You will compare the performance of different hardware configurations (CPU vs. GPU) while executing the tasks in Google Colaboratory (Colab).

Objectives

  1. Gain familiarity with PyTorch for machine learning and deep learning tasks.
  2. Train a simple neural network model to classify the MNIST dataset.
  3. Compare performance differences between CPU and GPU execution.

Part 0: Setting Up

We will use Google Colaboratory (Colab) for this assignment. Colab provides access to Python, GPUs, and TPUs, so you don't need to install anything on your machine. However, the code can also be run locally on Linux (or Windows WSL) with the necessary libraries installed, such as Python, Numpy, Matplotlib, and PyTorch.


Part 1: Learning Resources

Introduction to MNIST

MNIST is a dataset widely used in AI as the "Hello world" of machine learning. To learn more, visit the MNIST Wikipedia page.

PyTorch Tutorials

Go over these resources to familiarize yourself with PyTorch.


Part 2: Assignment Notebook

  1. Open and work through the Colab notebook:
    PyTorch and MNIST Training Colab Notebook
  2. Complete the 10 questions in the notebook. These questions are numbered and bolded.

Part 3: Submission Instructions

Steps to Complete

  1. Finish all sections of the Colab notebook.
  2. Export your notebook as a PDF:
    • Navigate to File > Print > Adobe PDF in Colab.
  3. Upload the PDF to GitHub Classroom by committing it to your private assignment repository.

Notes

  • If you encounter any issues with PyTorch or Colab, consult the provided tutorials or reach out during office hours.
  • Be sure to test the performance difference between CPU and GPU for an understanding of the hardware's impact on training time.

Happy coding!

About

2025-ai-hardware-architectures-and-design-intro-to-training-intro-to-training created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published