Model CI/CD Course: LLM case study overview

Weights & Biases · Beginner ·🧠 Large Language Models ·2y ago

Key Takeaways

The video introduces a case study on applying model management tools to a real project using LLMs, specifically fine-tuning a tiny LLaMA model on the Alpaca dataset and evaluating its performance using another LLM as a judge.

Full Transcript

hello welcome back so far in this course you've learned about model registry specific types of automation including web Hooks and weights and bu's launch and now we want to help you apply these tools to a real project and for this my colleague darck is going to be walking you through a case study and dar is actually a really impressive person so first of all uh Dar is a kaggle Grandmaster um he he is really good at machine learning but also he has uh many years of experience in Industry applying machine learning and production and also he's one of my favorite teachers he's uh taught courses with me in the past uh especially courses on weights and biases and so I really think you're going to enjoy this lesson thanks a lot ham I I really appreciate this introduction so again I'm a machine learning engineer at weights and biases one thing that we do at weights and biases is we work a lot with our customers a lot of customers are now very excited about training and fine-tuning llms uh in fact we have a separate course about training and fine-tuning llms uh that we will link uh below this video and that we definitely recommend everyone taking but we also want to take this this use case of fine-tuning um a large language model into this course and show how to set up U Model Management processes that that uh will support uh both training and evaluation of uh of uh llm models and um since this is a case study we will take an existing data set called alpaka it comes uh from uh from Stanford it's a it's a synthetic data set that was created with um N llm Text D Vinci 003 and it contains um uh several thousand of like in fact 5050 around 50,000 of instruction following examples and in the original alpaka paper uh the team has Fine tuned a 7 billion llama model uh on this data set in our case since we are trying to be more efficient here and we want to also make it easier for people following the course will be fine tuning a smaller a tiny Lama model that has around 1 billion parameters the important thing when when fine-tuning llms is evaluation and in this case study we'll um we'll uh build on the concept of using llm as a judge so uh we will take um the generations from the model that we fine tune we'll compare them to Generations from a model that uh we we defined as our Baseline and we will use uh another llm in this case a more powerful llm which is gp4 to compare which one is better and this will result in a metric that we will use to make decisions if uh the new model that we trained is better than the Baseline and if you want to proceed further with uh quantizing it preparing it for deployment and ultimately deploying it into production and with this I want to now transition into the the live uh the live demo session and I want to encourage you to work along with us uh check out the repo that we are uh we will provide for the exercises follow along and practice uh setting up this Model Management processes uh together with us

Original Description

This is lesson 13 of 22 in the Model CI/CD course, where we introduce a case study on applying model management tools to a real project. *Full course with certification* and class materials available free at http://wandb.me/course_emm. *Episode Description* In this chapter of the Model CI/CD course from Weights & Biases, we transition into a practical case study led by Darek, a Kaggle Grandmaster and experienced machine learning engineer. This session focuses on applying model registry, automation, and model management processes to fine-tune and evaluate large language models (LLMs) using a real-world dataset. *Chapter Highlights* - Introduction to the Case Study: Get an overview of the case study, which involves fine-tuning a Tiny Llama model using the Alpaca dataset from Stanford. - Meet Your Instructor: Learn from Darek, a Kaggle Grandmaster with extensive industry experience and expertise in machine learning and model management. - Dataset Overview: Understand the Alpaca dataset and its significance in training instruction-following LLMs. - Fine-Tuning the Model: Follow the steps to fine-tune a Tiny Llama model with 1 billion parameters, ensuring an efficient and accessible process for learners. - Evaluation Techniques: Explore the concept of using LLMs as judges to compare model generations, utilizing GPT-4 to evaluate and benchmark model performance. - Practical Implementation: Engage in a live demo session, follow along with provided exercises, and practice setting up model management processes in your own projects. *Enroll in the full course free:* http://wandb.me/course_emm *Next Chapter:* Introduction to Launch
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Weights & Biases · Weights & Biases · 0 of 60

← Previous Next →
1 0. What is machine learning?
0. What is machine learning?
Weights & Biases
2 1. Build Your First Machine Learning Model
1. Build Your First Machine Learning Model
Weights & Biases
3 Intro to ML: Course Overview
Intro to ML: Course Overview
Weights & Biases
4 2. Multi-Layer Perceptrons
2. Multi-Layer Perceptrons
Weights & Biases
5 3. Convolutional Neural Networks
3. Convolutional Neural Networks
Weights & Biases
6 Weights & Biases at OpenAI
Weights & Biases at OpenAI
Weights & Biases
7 Why Experiment Tracking is Crucial to OpenAI
Why Experiment Tracking is Crucial to OpenAI
Weights & Biases
8 4. Autoencoders
4. Autoencoders
Weights & Biases
9 5. Sentiment Analysis
5. Sentiment Analysis
Weights & Biases
10 6. Recurrent Neural Networks [RNNs]
6. Recurrent Neural Networks [RNNs]
Weights & Biases
11 7. Text Generation using LSTMs and GRUs
7. Text Generation using LSTMs and GRUs
Weights & Biases
12 8. Text Classification Using Convolutional Neural Networks
8. Text Classification Using Convolutional Neural Networks
Weights & Biases
13 9. Hybrid LSTMs [Long Short-Term Memory]
9. Hybrid LSTMs [Long Short-Term Memory]
Weights & Biases
14 Toyota Research Institute on Experiment Tracking with Weights & Biases
Toyota Research Institute on Experiment Tracking with Weights & Biases
Weights & Biases
15 Weights and Biases - Developer Tools for Deep Learning
Weights and Biases - Developer Tools for Deep Learning
Weights & Biases
16 Introducing Weights & Biases
Introducing Weights & Biases
Weights & Biases
17 10. Seq2Seq Models
10. Seq2Seq Models
Weights & Biases
18 11. Transfer Learning for Domain-Specific Image Classification with Small Datasets
11. Transfer Learning for Domain-Specific Image Classification with Small Datasets
Weights & Biases
19 12. One-shot learning for teaching neural networks to classify objects never seen before
12. One-shot learning for teaching neural networks to classify objects never seen before
Weights & Biases
20 13. Speech Recognition with Convolutional Neural Networks in Keras/TensorFlow
13. Speech Recognition with Convolutional Neural Networks in Keras/TensorFlow
Weights & Biases
21 14. Data Augmentation | Keras
14. Data Augmentation | Keras
Weights & Biases
22 15. Batch Size and Learning Rate in CNNs
15. Batch Size and Learning Rate in CNNs
Weights & Biases
23 Applied Deep Learning Fellowship Overview and Project Selection with Josh Tobin (2019)
Applied Deep Learning Fellowship Overview and Project Selection with Josh Tobin (2019)
Weights & Biases
24 Grading Rubric for AI Applications with Sergey Karayev  (2019)
Grading Rubric for AI Applications with Sergey Karayev (2019)
Weights & Biases
25 16. Video Frame Prediction using CNNs and LSTMs (2019)
16. Video Frame Prediction using CNNs and LSTMs (2019)
Weights & Biases
26 Image to LaTeX - Applied Deep Learning Fellowship (2019)
Image to LaTeX - Applied Deep Learning Fellowship (2019)
Weights & Biases
27 17.  Build and Deploy an Emotion Classifier (2019)
17. Build and Deploy an Emotion Classifier (2019)
Weights & Biases
28 Applied Deep Learning - Data Management with Josh Tobin (2019)
Applied Deep Learning - Data Management with Josh Tobin (2019)
Weights & Biases
29 Snorkel: Programming Training Data with Paroma Varma of Stanford University (2019)
Snorkel: Programming Training Data with Paroma Varma of Stanford University (2019)
Weights & Biases
30 Applied Deep Learning - Troubleshooting and Debugging with Josh Tobin (2019)
Applied Deep Learning - Troubleshooting and Debugging with Josh Tobin (2019)
Weights & Biases
31 Troubleshooting and Iterating ML Models with Lee Redden (2019)
Troubleshooting and Iterating ML Models with Lee Redden (2019)
Weights & Biases
32 Designing a Machine Learning Project with Neal Khosla (2019)
Designing a Machine Learning Project with Neal Khosla (2019)
Weights & Biases
33 Lukas Beiwald on ML Tools and Experiment Management (2019)
Lukas Beiwald on ML Tools and Experiment Management (2019)
Weights & Biases
34 Building Machine Learning Teams with Josh Tobin (2019)
Building Machine Learning Teams with Josh Tobin (2019)
Weights & Biases
35 Pieter Abeel on Potential Deep Learning Research Directions  (2019)
Pieter Abeel on Potential Deep Learning Research Directions (2019)
Weights & Biases
36 Testing and Deployment of Deep Learning Models with Josh Tobin (2019)
Testing and Deployment of Deep Learning Models with Josh Tobin (2019)
Weights & Biases
37 Five Lessons for Team-Oriented Research with Peter Welder (2019)
Five Lessons for Team-Oriented Research with Peter Welder (2019)
Weights & Biases
38 Applied Deep Learning - Rosanne Liu on AI Research (2019)
Applied Deep Learning - Rosanne Liu on AI Research (2019)
Weights & Biases
39 Making the Mid-career Leap from Urban Design to Deep Learning/Data Science
Making the Mid-career Leap from Urban Design to Deep Learning/Data Science
Weights & Biases
40 Organizing ML projects — W&B walkthrough (2020)
Organizing ML projects — W&B walkthrough (2020)
Weights & Biases
41 Brandon Rohrer — Machine Learning in Production for Robots
Brandon Rohrer — Machine Learning in Production for Robots
Weights & Biases
42 Nicolas Koumchatzky — Machine Learning in Production for Self-Driving Cars
Nicolas Koumchatzky — Machine Learning in Production for Self-Driving Cars
Weights & Biases
43 My experiments with Reinforcement Learning with Jariullah Safi
My experiments with Reinforcement Learning with Jariullah Safi
Weights & Biases
44 Applications of Machine Learning to COVID-19 Research with Isaac Godfried
Applications of Machine Learning to COVID-19 Research with Isaac Godfried
Weights & Biases
45 Testing Machine Learning Models with Eric Schles
Testing Machine Learning Models with Eric Schles
Weights & Biases
46 How Linear Algebra is not like Algebra with Charles Frye
How Linear Algebra is not like Algebra with Charles Frye
Weights & Biases
47 Predicting Protein Structures using Deep Learning with Jonathan King
Predicting Protein Structures using Deep Learning with Jonathan King
Weights & Biases
48 Rachael Tatman — Conversational AI and Linguistics
Rachael Tatman — Conversational AI and Linguistics
Weights & Biases
49 Reformer by Han Lee
Reformer by Han Lee
Weights & Biases
50 Sequence Models with Pujaa Rajan
Sequence Models with Pujaa Rajan
Weights & Biases
51 GitHub Actions & Machine Learning Workflows with Hamel Husain
GitHub Actions & Machine Learning Workflows with Hamel Husain
Weights & Biases
52 Look Mom, No Indices! Vector Calculus with the Fréchet Derivative by Charles Frye
Look Mom, No Indices! Vector Calculus with the Fréchet Derivative by Charles Frye
Weights & Biases
53 Jack Clark — Building Trustworthy AI Systems
Jack Clark — Building Trustworthy AI Systems
Weights & Biases
54 Surprising Utility of Surprise: Why ML Uses Negative Log Probabilities - Charles Frye
Surprising Utility of Surprise: Why ML Uses Negative Log Probabilities - Charles Frye
Weights & Biases
55 Track your machine learning experiments locally, with W&B Local - Chris Van Pelt
Track your machine learning experiments locally, with W&B Local - Chris Van Pelt
Weights & Biases
56 Antipatterns in open source research code with Jariullah Safi
Antipatterns in open source research code with Jariullah Safi
Weights & Biases
57 Attention for time series forecasting & COVID predictions - Isaac Godfried
Attention for time series forecasting & COVID predictions - Isaac Godfried
Weights & Biases
58 Made with ML - Goku Mohandas
Made with ML - Goku Mohandas
Weights & Biases
59 Angela & Danielle — Designing ML Models for Millions of Consumer Robots
Angela & Danielle — Designing ML Models for Millions of Consumer Robots
Weights & Biases
60 Deep Learning Salon by Weights & Biases
Deep Learning Salon by Weights & Biases
Weights & Biases

This video introduces a case study on applying model management tools to a real project using LLMs. The speaker will walk through the process of fine-tuning a tiny LLaMA model on the Alpaca dataset and evaluating its performance using another LLM as a judge. The goal is to demonstrate how to set up model management processes to support training and evaluation of LLM models.

Key Takeaways
  1. Fine-tune a tiny LLaMA model on the Alpaca dataset
  2. Evaluate the performance of the fine-tuned model using another LLM as a judge
  3. Compare the performance of the fine-tuned model to a baseline model
  4. Use the evaluation results to make decisions about deploying the model
  5. Practice setting up model management processes using the provided repo and exercises
💡 Using another LLM as a judge to evaluate the performance of a fine-tuned LLM model can provide a more accurate assessment of its quality.

Related Reads

📰
Open-Weight LLM API Integration: A Developer Guide to Building with Transparent AI
Learn to integrate open-weight LLM APIs for transparent AI, enabling fine-grained control and inspecting the architecture behind the intelligence
Dev.to AI
📰
Stop Writing Boilerplate: How I Automated My Entire Workflow with LLM APIs
Automate your LLM workflow using APIs to reduce repetitive code, increasing productivity and efficiency
Dev.to AI
📰
The real AI race may no longer be at the frontier
The AI race may shift from frontier models to open models due to cost, accessibility, and ownership, impacting production AI and enterprise adoption
TechCrunch AI
📰
Building a Document-RAG Agent on GCP's Agent Development Kit (ADK)
Learn to build a Document-RAG agent on GCP's Agent Development Kit (ADK) for efficient document-based conversational AI
Dev.to · Dale Nguyen
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →