Luis Serrano + Jay Alammar + Josh Starmer Q&A Livestream!!!
Overview
Luis Serrano, Jay Alammar, and Josh Starmer discuss how to learn and apply modern AI, from Transformers and time-series models to GitHub Copilot and retrieval-augmented generation (RAG). Alammar explains the three stages of LLM training and practical RAG upgrades, while the group recommends learning by building, publishing work, and applying early; they also discuss Alammar’s forthcoming O’Reilly book, Hands-On Large Language Models, described as roughly 400 pages with about 300 original illustrations.
Key takeaways
- Alammar describes modern LLM development as base next-token training, supervised instruction fine-tuning, and preference tuning; the training data should match both the model’s desired behavior and its use cases.
- A practical RAG system retrieves supporting context before generation; hybrid keyword and embedding search, reranking, query rewriting, and multi-hop retrieval can improve answers to increasingly complex questions.
- For facts that change or need to come from a specific document collection, RAG is generally a better fit than fine-tuning; fine-tuning is more suited to changing a model’s behavior, domain, or output format.
- Serrano’s learning approach combines theory with experiments: run a model, change its data or parameters, and compare results, preferably using projects that hold personal interest.
- Publicly documented projects, research explanations, and open-source contributions can deepen learning while building a portfolio and professional reputation.
- LLM applications should support, not replace, expert judgment in high-stakes domains such as medicine and hiring.
Chapters
- Josh Starmer welcomes Luis Serrano and Jay Alammar for an audience Q&A about AI, machine learning, statistics, and data science.
- The planned discussion includes Transformers and career paths, alongside questions from viewers joining from countries including Colombia, Australia, India, and Saudi Arabia.
- Alammar says he is originally from Saudi Arabia and is visiting Cohere’s headquarters in Toronto; Serrano joins from Toronto and Starmer from North Carolina.
- Starmer began making statistics presentations for genetics researchers at the University of North Carolina at Chapel Hill, then broadened examples from mouse genetics to everyday references such as M&M’s.
- Starmer’s step-by-step style, recurring characters Squatch and Norm, and catchphrases such as “bam” aim to engage smart learners who may dislike or lack a math background.
- Serrano describes creating early videos for Udacity teammates and using playful mountain names, while Alammar traces his visual teaching style to blogging, Udacity, and Apple Keynote.
- For time-series prediction, Serrano mentions recurrent neural networks, hidden Markov models, one-dimensional convolutional networks, and ARIMA; Starmer notes that XGBoost is also used for time series.
- Alammar says Transformers may be especially useful when working with many time series, while language generation can itself be viewed as sequential prediction.
- The group discusses state space models, or SSMs, including Mamba: they show research promise as sequence models, but Alammar says they had not yet displaced Transformers for text generation.
- Alammar identifies image, video, and audio generation as routes into generative AI, and emphasizes representation and understanding as well as generation.
- The group suggests that learners can begin with Transformers and modern LLMs without first mastering the full history of NLP, including older linguistic approaches.
- Alammar recommends choosing projects related to personal interests or career goals, experimenting with pretrained models and prompt chains, and documenting what is learned in public.
- Alammar outlines three LLM training stages: base training with next-token prediction, supervised fine-tuning for following instructions, and preference tuning or alignment.
- Base training depends on large amounts of high-quality text or code; supervised examples teach tasks such as answering questions, summarizing documents, and completing code.
- Coding assistants can autocomplete a function or answer questions about a repository, and their fine-tuning data should reflect those intended tasks.
- Alammar expects substantial product and interface development around existing models, including bringing AI capabilities directly into tools such as email and Keynote.
- Starmer recommends Alammar’s forthcoming O’Reilly book, Hands-On Large Language Models, which Alammar describes as about 400 pages with roughly 300 original illustrations.
- The book covers Transformers, fine-tuning, and applications such as clustering and labeling document collections, helping readers build useful workflows without implementing every low-level model component.
- Alammar recommends treating language models as building blocks for pipelines; Serrano notes that strong embeddings can make classification, clustering, and topic modeling simpler than older sparse-vector approaches.
- Serrano compares learning machine learning to learning piano: balance conceptual study with hands-on practice, then change data or parameters and observe what happens.
- Alammar suggests using personally interesting datasets, writing about experiments, contributing to open-source projects, and joining online communities.
- He names Cohere for AI, Hugging Face, and BigCode as places to explore collaborative research and open-source work.
- Starmer recommends trying multiple explanations and learning resources when one source is confusing, rather than assuming the topic itself is inaccessible.
- Serrano recommends applying for internships while learning, using interviews to discover which questions and skills need further practice.
- He points to Kaggle projects as practical examples to discuss in interviews and notes that both large and small companies offer AI internships.
- Starmer advises publishing documented GitHub projects; Alammar says public writing and code can build a reputation and help candidates reach opportunities before jobs are advertised.
- Alammar recommends explaining research papers and asking their authors for feedback, while Serrano emphasizes networking and referrals through professional events and contacts.
- Serrano describes graph neural networks as a fit for graph-structured data, contrasting them with CNNs for neighborhood structure and RNNs for sequential data.
- The participants acknowledge that they have not yet studied graph neural networks deeply, while noting the relevance of graph databases and graph-like datasets.
- Serrano frames linear regression probabilistically: a fitted line can be understood alongside a Gaussian distribution of possible observations, with points near the line more likely under the model.
- Alammar explains basic RAG as retrieving relevant context first, then asking an LLM to generate an answer grounded in that context.
- A stronger retrieval pipeline can combine keyword and embedding search, then rerank the top results; query rewriting can make long questions easier to search.
- Multi-query RAG breaks a comparison into separate searches, while multi-hop RAG retrieves information in stages, such as finding top car manufacturers and then checking which make electric vehicles.
- Questions requiring comparison across many documents may need specialized retrieval and reasoning; success depends on the retriever, model capabilities, and available context length.
- Alammar recommends prompt engineering first, RAG for grounding answers in changing or specific information, and fine-tuning for adapting behavior, domains, or output formats.
- Serrano compares fine-tuning to studying a subject more deeply and RAG to looking information up in a book or on a phone; Alammar notes that updated RAG sources can provide current information without retraining.
- The group cautions against trusting LLM systems for high-stakes medical or hiring decisions and recommends keeping a human expert in the loop.
- Starmer closes by thanking Serrano and Alammar and reiterating that Alammar’s O’Reilly book is expected in September.
Transcript excerpt
0:08 hooray I think we're live so hello welcome to my live stream with Lis J and me my friends I canot wait to answer your questions hooray maybe not my best song ever love those songs but it's done yeah so uh everybody Welcome to uh I we got to come up with a name for this live stream because it's definitely not the stack West live stream this is like the the Louis Serrano Josh ster and today J Alamar live stream Q&A uh awesomeness uh so uh I'm really excited about this I've got two of my
0:57 biggest Heroes here with me today I cannot wait to hear what they have to say we've got some great questions coming up we're going to be talking about Transformers we're going to be talking about career path the big stuff and we're also going to be talking about other things uh and one of those things is uh I uh Louis can you ask the question I forgot who it is that uh that asked this question yeah definitely so first of all I'm I'm very happy to be here with you guys you are two of my AI Heroes and two of my favorite people so I'm very happy to be here we have a great crowd the first first question for people I just want to say for anybody joining us like where are you joining us from so I'll I'll start I'm uh I'm joining from Canada I'm originally from Colombia uh very excited about the soccer uh coming up uh and uh by I'm in Toronto Canada and uh you are and uh
1:48 yeah you're in North Carolina I believe I'm in North Carolina Jay where are you right now originally from RI Saudi Arabia uh
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
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, StatQuest with Josh Starmer.