Intro to Hugging Face: Fine-tuning BERT for NLP tasks
summary
Shows step‑by‑step fine‑tuning of a public BERT checkpoint via Hugging Face + PyTorch in Jupyter notebooks: tokenization, masked‑LM and next‑sentence objectives, then fine‑tuning on Rotten Tomatoes dataset (they downsample to ~100 train / 20 test for demos) using DistilBERT as a faster base; baseline performance is poor with tiny samples but improves with more data. Includes demos of GPT‑2 (repetitive) vs chatGPT (better via RLHF), and Stable Diffusion image prompts; notebooks run in Google Colab and expose clear dataset and bias failure modes (e.g. gender and name stereotypes).
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:46Embeddings and deep learning
- 10:39Transformer history
- 21:58Hugging Face overview
- 23:40Audience NLP interests
- 30:43Transfer learning and fine-tuning
- 40:57Fine-tuning setup with BERT
- 56:00BERT for sentiment analysis
- 1:28:48GPT-2 text generation demo
- 1:45:24Stable Diffusion images
- 1:59:12AI bias and risks
- 2:09:14Q&A
related talks
32mAn Introduction to Transfer Learning in NLP and HuggingFace
20mGetting Started with Pytorch 2.0 and Hugging Face Transformers
58mAn Introduction to Transfer Learning and Hugging Face
49mMachine Learning 2.0 With Hugging Face
43mDiscovering the BERT family of models
25mEasy Access to SOTA NLP Models with Ray and Hugging Face
33mMachine Learning 2.0 with Hugging Face
33mBuild Better AI with First-Party Data and Fine-Tuning
