
Explore fine-tuning fundamentals and unlock the potential of large language models by building ChatGPT-style conversational agents and mastering core generative AI concepts.
Discover how to build a conversational AI system with open source tools, privacy-first design, modular plug-and-play models, and core generative natural language processing fundamentals for beginners.
Learn prerequisites such as linear algebra basics, Python familiarity, and a Google account to use Colab for easy dependency setup and free GPU training.
Explore the attention-based transformer architecture and compare GPT and BERT models, highlighting similarities, differences, and how textual inputs are processed.
Explore the transformer architecture with encoder and decoder stacks, self-attention, and multi-headed attention, and see how tokenization, BOS, separator tokens, padding, and context length shape inputs and outputs.
This lecture explains how transformer self-attention with multi-headed units processes text, contrasts it with RNNs/LSTMs, and highlights no information loss, parallel training, better long-range dependencies, and GPT and BERT models.
GPT models are auto-regressive transformers trained via pre-training on large text corpora and fine-tuned on task-specific data to excel at NLP tasks such as classification and summarization.
Explore how the BERT bidirectional encoder creates embeddings for text, using masking and sentence prediction, enabling downstream tasks like sentiment analysis and named-entity recognition.
Explore GPT-style decoder models, assess their suitability for conversations, and discuss drawbacks and practical fine-tuning approaches for real chat applications.
Explore how base models like gpt-2, gpt-3, llama are fine-tuned on conversations using instruction following datasets like alpaca and dolly to power chatgpt-style apps.
Load a base model in Colab, connect to T4 GPU, install transformers and accelerate, then fine-tune open lama 3 billion parameter model to improve instruction following and benchmark conversational capabilities.
Explore parameter efficient finetuning with low rank adaptation (LoRA) for task-specific tuning of large language models. Freeze the base model and train low-rank matrices to reduce trainable parameters and memory.
finetune a 3b open llama model in colab by preparing a 5000-point dataset, applying LoRA with specific parameters, and saving weights to google drive.
Explore inference and evaluation of a fine-tuned model, examining output quality, gibberish, and hallucinations, and how prompts influence explanations during model testing.
demonstrates how a bigger model (7B) trained on 52k data reduces hallucinations versus a 3B model, and guides fine-tuning toward a 13B model with full 52k data for improved outputs.
Explore prompt engineering, art and science of crafting inputs for finetuned models, to achieve coherent, accurate outputs. Learn why prompt engineers optimize prompts, especially for smaller models with limited instruction.
Explore how autoregressive models perform inference with beam search versus greedy search, revealing how beam size, top k, and top p shape output trajectories and text quality.
Replace deterministic greedy and beam search with sampling to promote stochastic exploration and richer text output. Use top k and top p to truncate and reweight probability distributions, shaping creativity.
Unlock the temperature parameter in large language models, a scaling factor that controls output probability sharpness and diversity from greedy choices at 0 to more diverse outputs above 1.
Identify key pitfalls in fine-tuning large language models, including repetitive outputs, hallucinations, uncertainty gaps, lack of output control, and slow inference, with deployment cautions for mission-critical applications.
Learn how to customize llms with instruction-following data, compare larger base models, address hallucinations with grounded generation, and apply reinforcement learning with human feedback for alignment.
Overview (Edited based on Student Feedback):
Ever been curious about the mechanics behind ChatGPT and how to adapt it for your usecase? Dive into this concise, intermediate-level course, tailored for those with limited time but an immense curiosity. In just around 90 minutes, we'll demystify the core concepts of this cutting technology.
Topics Covered:
A brief overview of Self Attention, Transformers and Language Models
Low Rank Adaptation for finetuning LLMs
Inference for decoder models
What You'll Learn:
Understanding and Finetuning LLMs: Delve deep into the research and engineering that powers these advanced conversational systems.
Quick and Hands-On: Engage with fast-paced, hands-on modules that lead you to set up and interact with your own LLM using open-source tools.
Foundational Principles: Even as we navigate swiftly through the topic, the core concepts you'll absorb remain consistently foundational across the entire field of conversational AI.
Who This Course Is For:
Time-Bound Enthusiasts: Perfect for individuals with hectic schedules but a passion to understand AI—no lengthy commitments, just pure learning. The commitment required for this course is 90 minutes.
Suitable for Intermediate level (Edited based on Student Feedback): A beginner-to-intermediate level of Machine Learning knowledge is expected.
Professionals & Hobbyists: Whether you're integrating AI into your workflow or just exploring out of passion, this course gives you the LLM essentials in a compact format.
Course Features:
Rapid Tutorials: Quick, interactive lessons that get straight to the point, ensuring maximum learning in minimal time.
Expert Insights: Benefit from streamlined insights, focusing on what truly matters in the LLM realm.
Community Support: Access a bustling community for swift answers, discussions, and collaborative learning.
Embark on a fast-paced journey through the fascinating world of finetuning your own LLM. If time's not on your side but curiosity is, this is your ideal pit stop. Dive in, absorb, and come out enriched—enroll now!