~/talk

Intro to Hugging Face: Fine-tuning BERT for NLP tasks

Talkat PyCon US 2023 · 2023-04-19..04-27· [large-language-models, machine-learning]
name:Juhi
links:none on file
name:Dana
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 0:46Embeddings and deep learning
  3. 10:39Transformer history
  4. 21:58Hugging Face overview
  5. 23:40Audience NLP interests
  6. 30:43Transfer learning and fine-tuning
  7. 40:57Fine-tuning setup with BERT
  8. 56:00BERT for sentiment analysis
  9. 1:28:48GPT-2 text generation demo
  10. 1:45:24Stable Diffusion images
  11. 1:59:12AI bias and risks
  12. 2:09:14Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.