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 |
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.
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.
For the models and datasets in this book:
If you have a CUDA-capable GPU, you’re welcome to use it:
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.
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:
GridSearchCV on the pipeline. The grid search itself still runs on the CPU, but the heavy lifting of model training and scoring occurs on the GPU.
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.