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