DeepLearning.AI
AI is the new electricity and will transform and improve nearly all areas of human lives.

๐Ÿ’ป ย  Accessing Utils File and Helper Functions

In each notebook on the top menu:

1: ย  Click on "File"

2: ย  Then, click on "Open"

You will be able to see all the notebook files for the lesson, including any helper functions used in the notebook on the left sidebar. See the following image for the steps above.


๐Ÿ’ป ย  Downloading Notebooks

In each notebook on the top menu:

1: ย  Click on "File"

2: ย  Then, click on "Download as"

3: ย  Then, click on "Notebook (.ipynb)"


๐Ÿ’ป ย  Uploading Your Files

After following the steps shown in the previous section ("File" => "Open"), then click on "Upload" button to upload your files.


๐Ÿ“— ย  See Your Progress

Once you enroll in this courseโ€”or any other short course on the DeepLearning.AI platformโ€”and open it, you can click on 'My Learning' at the top right corner of the desktop view. There, you will be able to see all the short courses you have enrolled in and your progress in each one.

Additionally, your progress in each short course is displayed at the bottom-left corner of the learning page for each course (desktop view).


๐Ÿ“ฑ ย  Features to Use

๐ŸŽž ย  Adjust Video Speed: Click on the gear icon (โš™) on the video and then from the Speed option, choose your desired video speed.

๐Ÿ—ฃ ย  Captions (English and Spanish): Click on the gear icon (โš™) on the video and then from the Captions option, choose to see the captions either in English or Spanish.

๐Ÿ”… ย  Video Quality: If you do not have access to high-speed internet, click on the gear icon (โš™) on the video and then from Quality, choose the quality that works the best for your Internet speed.

๐Ÿ–ฅ ย  Picture in Picture (PiP): This feature allows you to continue watching the video when you switch to another browser tab or window. Click on the small rectangle shape on the video to go to PiP mode.

โˆš ย  Hide and Unhide Lesson Navigation Menu: If you do not have a large screen, you may click on the small hamburger icon beside the title of the course to hide the left-side navigation menu. You can then unhide it by clicking on the same icon again.


๐Ÿง‘ ย  Efficient Learning Tips

The following tips can help you have an efficient learning experience with this short course and other courses.

๐Ÿง‘ ย  Create a Dedicated Study Space: Establish a quiet, organized workspace free from distractions. A dedicated learning environment can significantly improve concentration and overall learning efficiency.

๐Ÿ“… ย  Develop a Consistent Learning Schedule: Consistency is key to learning. Set out specific times in your day for study and make it a routine. Consistent study times help build a habit and improve information retention.

Tip: Set a recurring event and reminder in your calendar, with clear action items, to get regular notifications about your study plans and goals.

โ˜• ย  Take Regular Breaks: Include short breaks in your study sessions. The Pomodoro Technique, which involves studying for 25 minutes followed by a 5-minute break, can be particularly effective.

๐Ÿ’ฌ ย  Engage with the Community: Participate in forums, discussions, and group activities. Engaging with peers can provide additional insights, create a sense of community, and make learning more enjoyable.

โœ ย  Practice Active Learning: Don't just read or run notebooks or watch the material. Engage actively by taking notes, summarizing what you learn, teaching the concept to someone else, or applying the knowledge in your practical projects.


๐Ÿ“š ย  Enroll in Other Short Courses

Keep learning by enrolling in other short courses. We add new short courses regularly. Visit DeepLearning.AI Short Courses page to see our latest courses and begin learning new topics. ๐Ÿ‘‡

๐Ÿ‘‰๐Ÿ‘‰ ๐Ÿ”— DeepLearning.AI โ€“ All Short Courses [+]


๐Ÿ™‚ ย  Let Us Know What You Think

Your feedback helps us know what you liked and didn't like about the course. We read all your feedback and use them to improve this course and future courses. Please submit your feedback by clicking on "Course Feedback" option at the bottom of the lessons list menu (desktop view).

Also, you are more than welcome to join our community ๐Ÿ‘‰๐Ÿ‘‰ ๐Ÿ”— DeepLearning.AI Forum


Sign in

Create Your Account

Or, sign up with your email
Email Address

Already have an account? Sign in here!

By signing up, you agree to our Terms Of Use and Privacy Policy

Choose Your Learning Path

Enjoy 30% Off Now. Cancel Anytime!

MonthlyYearly

Change Your Plan

Your subscription plan will change at the end of your current billing period. Youโ€™ll continue to have access to your current plan until then.

View All Plans and Features

Welcome back!

Hi ,

We'd like to know you better so we can create more relevant courses. What do you do for work?

DeepLearning.AI
  • Explore Courses
  • Community
    • Forum
    • Events
    • Ambassadors
    • Ambassador Spotlight
  • My Learnings
  • daily streak fire

    You've achieved today's streak!

    Complete one lesson every day to keep the streak going.

    Su

    Mo

    Tu

    We

    Th

    Fr

    Sa

    free pass got

    You earned a Free Pass!

    Free Passes help protect your daily streak. Complete more lessons to earn up to 3 Free Passes.

    Free PassFree PassFree Pass
Welcome to Improving Accuracy of LLM Applications. Built in partnership with Lamini and Meta. AI applications can now perform tasks that were previously very challenging for computers, such as providing a natural language interface to a database. But these applications often perform well in some areas and yet struggle in others. In this course, you learn a framework for a set of development steps to systematically improve your application's performance. Specifically, you create an evaluation dataset to measure performance, prompt engineer, and then finally fine-tune your model. I'm delighted to introduce our instructors for this course. Sharon Zhou is a returning instructor and CEO of Lamini, which is a company that provides LLM serving and fine tuning for their users, and in which I made a seed investment. And another returning instructor, Amit Sangani, is Director of partnerships of the wonderful Llama team at Meta. Sharon and Amit. Welcome back. Thanks so much. And you're excited to be back. Thank you Andrew. So Amit, the Llama family of open source models has become a huge success. Indeed Andrew. The Llama models are widely used in numerous applications. They have undergone extensive training and rank highly in most foundation model benchmarks. It's gratifying to see so many organizations using our models, but it also presents challenges. Since the models are trained on public data sets and tasks, they may not perform as well on applications requiring proprietary data or on tasks that weren't specifically trained for. But Meta has released these models as open-source, and this allows any developer to fine tune them for their specific applications. Exactly, Andrew. A crucial aspect of these models is their open-source nature. This means users can fine-tune the models for their specific tasks. We have seen many applications, especially with the smaller models where users have fine tuned them for tasks like text to SQL classification, question and answers, recommendation, and summarization. They've have also been adapted to understand proprietary datasets such as financial data, customer data, and legal information. I really appreciate Meta's work releasing these models in an open way. And yet, fine-tuning also isn't the very first step we typically recommend to application builders is one of the options that we might pursue only after exhausting other, simpler options. That's right Andrew, and we'll go through exactly that. At Lamini we work with many enterprises to improve the accuracy of their LLM applications, specifically to make LLMS factual and precise, and where users can start talking about nines in their LLM accuracy, like 95%, 99%. We've observed a successful pattern that has inspired the outline of this course for you. First you'll build your LLM application, hook it all up, prompt engineer with some self-reflection. Next, it's important to get rigorous in evaluating the model's performance so you know whether it's ready for prime time and where you can tell it to actually improve where the next frontier of accuracy is. If this meets your needs, then great. But if you find that even after a lot of prompt engineering work, it's still not yet working accurately enough. The next step is to use LLMs and create a dataset for fine-tuning your model. One myth of this step is thinking you don't have enough data. You'll actually learn that you probably do have enough data, and there are ways to significantly amplify the data you do have with LLMs themselves. Fine-tuning also used to be slow and costly, but by using parameter efficient fine-tuning techniques like LoRA, which stands for Low Rank adaptation, the time and costs have dropped dramatically. What's more, Lamini memory tuning is a technique that gives you a new frontier of factual accuracy, reducing time and developer effort to get to the same level or higher accuracy. Using optimized fine-tuning techniques, you can teach your LLM thousand new facts in just minutes on a single A100 or MI2 50 GPU. In this course, we'll use an example of fine-tuning an LLM to generate SQL queries for a specific schema. Through fine-tuning, you'll see accuracy improved from something more like 30%, all the way up to 95%, using just a small data set of 128 examples in about 30 minutes, at a cost of just a few dollars. What's more, that process can be further optimized down to 6 or 7 seconds with even higher performance memory tuning. Many people have contributed to this course. I'd like to thank from Lamini, Johnny Li and Nina Wei. And from DeepLearning.AI Geoff Ladwig and Esmaeil Gargari. All right, let's dive into optimizing applications by going on to the next video.
course detail
Next Lesson
Improving Accuracy of LLM Applications
  • Introduction
    Video
    ใƒป
    5 mins
  • Overview
    Video with Code Example
    ใƒป
    17 mins
  • Create an SQL Agent
    Video with Code Example
    ใƒป
    10 mins
  • Create an Evaluation
    Video with Code Example
    ใƒป
    23 mins
  • Finetuning, PEFT, & Memory Tuning
    Video
    ใƒป
    12 mins
  • Generate Data & Finetune
    Video with Code Example
    ใƒป
    31 mins
  • Conclusion
    Video
    ใƒป
    1 min
  • Course Feedback
  • Community