Save this video free

UUtah CS 6340 NLP | Fall 2026 | HuggingFace transformers & running GPU jobs

UofU Data Science · 1:15:32 · Watch on YouTube

Part of University of Utah CS 6340. See all 6 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

UUtah CS 6340 NLP | Fall 2026 | HuggingFace transformers & running GPU jobs Watch on YouTube →

Overview

A hands-on NLP class introduces Hugging Face Transformers for tokenization, inference, model inspection, and IMDb sentiment fine-tuning, then demonstrates how to run GPU work on the University of Utah CHPC cluster. The walkthrough covers PyTorch-compatible model loading, padding and attention masks, Trainer configuration, and a Slurm workflow that submits a Python training script from an SSH session.

Key takeaways

Chapters

0:00 Class Agenda: Hugging Face Transformers and CHPC GPU Jobs
6:47 The Hugging Face Hub and the Standard Model Workflow
10:35 RoBERTa Sentiment Inference: Token IDs, Logits, and Labels
17:44 Tokenizer Mechanics: BPE, Special Tokens, Padding, and Truncation
25:09 Colab Tokenizer Demo: Decoding, Word Alignment, and Batch Padding
31:14 Transformer Architectures and DistilBERT Classification Heads
39:15 DistilBERT Predictions, Softmax, and PyTorch Loss
44:43 Inspecting DistilBERT Hidden States and Attention Maps
51:09 IMDb Dataset Preparation for Sentiment Fine-Tuning
54:46 Fine-Tuning with PyTorch Loops or Hugging Face Trainer
58:39 CHPC Clusters, Nodes, and Slurm Scheduling
1:02:36 Connecting to CHPC over SSH with VS Code
1:05:55 CHPC Project Setup: Virtual Environment and Training Script
1:09:30 Configuring a Slurm Batch Script and Submitting with sbatch
1:10:58 Monitoring Slurm Jobs and Debugging on Interactive GPUs

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:34 Okay. Hi everyone. So, today is your last class before the midterm breaks and I'm hoping all of you are excited about the break. So, today we are going to have a hands-on two things. First, the hugging face transformers and secondly, a bit on CHPC and at the end of the class, we would hope that you can submit a job in queue on CHPC. But before that, the hugging face transformers. So, a bit of context here is that you already have covered the basics of the transformer and how it works and everything. So, today we are going to focus on um Python library hugging face

1:22 and I'm pretty sure that many of you have already used it extensively and so is the case for CHPC. But today we for our presentation demonstration will be assuming that you don't have prior experience on it and we're going to keep everything to the basics. So, first what is this hugging face transformers? Oh, before that, I would like to also like to what the session agenda is going to be on on this library. Okay. So, first we're going to see a bit of how to set up uh set up your tools and we're are going to be doing this collaboratively on Colab. So, I'm going to share a link and you can join and run uh, sales or or the program uh, as I'm going through the steps.

2:11 Um, I'm going to introduce you a bit to what Hugging Face ecosystem is, then we are going to look into tokenizers, we are going to look into the models and how to do inference and uh, finally we are going to have a fine-tuning session on IMDB data. So, what is Hugging Face Transformers? So, this is

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, UofU Data Science.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.