Files for the in-class demos of 2024-25.
TypeFilename UpSizeDate
Lab 6 (LLMs)
Prompt templates, LangChain Expression Language (LCEL), Chatbots with memory and Agents with tools using LangChain and LangGraph. Zero-shot NER extractions with GPT-4.1. Parameter efficient fine-tuning with LoRA. Faster inference with TGI. Serve LLM apps with Gradio.
104.18 KB6/19/25
Lab 5 (Text/Token Classification with Transformers)
Text and token classification with Transformers in PyTorch using HuggingFace🤗. Parameter efficient fine-tuning with LoRA.
53.95 KB6/10/25
Lab 4 (Text Classification w/ CNNs)
Text classification with CNNs in PyTorch.
346.43 KB6/4/25
Lab 3 (Text Classification w/ RNNs)
Text classification with RNNs in PyTorch.
378.24 KB5/21/25
Lab 2 (Text Classification w/ MLPs)
Introduction to PyTorch. Text classification with MLPs using tf-idf vectors and centroids of pretrained word2vec embeddings. Example with word2vec word embeddings with gensim.
550.68 KB5/9/25
Lab 1 (N-gram Language Models)
Introduction to the NLTK library. Tokenization and N-gram Language Models (LMs). Cross-entropy and perplexity of LMs. Beam-search decoding.
528.32 KB4/7/25