Computer Systems for AI Work

CS 212, AI Programming 1

Topics  
Overview, History of AI Generative AI
Machine Learning: Symbolic Using LLMs in custom applications
Machine Learning: Statistical Custom chatbot creation
Neural networks LLM fine-tuning
Image recognition Social and ethical issues of AI

Contents

Graphic Processing Unit (GPU)

Graphics Processing Units (GPUs) are highly parallel processors originally designed for rendering graphics in video games. Their architecture makes them ideal for the massive computations required in deep learning, especially for training large neural networks.

Why GPUs Matter in Deep Learning

GPUs have enabled deep learning to scale dramatically, bringing supercomputer-level performance to consumer hardware. Many breakthroughs in recent years owe their feasibility to GPU acceleration.

GPU vs. CPU

For the models and datasets in this book:

Optional GPU Use for TensorFlow

If you have a CUDA-capable GPU, you’re welcome to use it:

How Scikit-learn Handles Acceleration

1. CPU Focus

GridSearchCV parallelizes its work across multiple CPU cores (using the n_jobs parameter) by running independent cross-validation folds and hyperparameter combinations simultaneously. This is highly effective but doesn’t touch the GPU.

2. External Libraries for GPU Acceleration

To use CUDA cores for training within a scikit-learn pipeline, you generally need to replace the standard scikit-learn estimators with counterparts from libraries specifically built for GPU acceleration:

References


Creative Commons License AI Programming 1 lecture notes by Brian Bird, written in , are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

MS Copilot GPT-4 was used to draft parts of these notes.