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 this short course, Quantization Fundamentals with Hugging Face πŸ€—, built in partnership with Hugging Face πŸ€—. Large generative AI models like large language models can be so huge that they're hard to run on consumer grade hardware. Quantization has emerged as a key tool for making this possible. In this course, you'll learn about a variety of flavors πŸ˜‹ of quantization and the different options and data types, like whether you should use int8 or float16 or something called bfloat16, which stands for brain float16,🧠 to compress your models. And you'll also learn about the technical theory and the algorithmic details of how to compress and store a 32-bit floating point number, maybe from a model that you want to deploy using, say, an eight-bit integer. I'm delighted to introduce our instructors for this course. Younes Belkada is a Machine Learning Engineer at Hugging Face.πŸ€— Younes is involved in the open-source team where he works at the intersection of many open-source tools developed by Hugging Face πŸ€—, such as Transformers, PEFT, and TRL. Marc Sun is also a Machine Learning Engineer at Hugging Face πŸ€—. Marc is part of the open-source team where he contributes to libraries such as Transformers or Accelerate. Marc and Younes are also deeply involved in quantization in order to make large models accessible to the AI community. Thanks, Andrew. We are excited to work with you and your team on this. In this course, you will first learn about basic concepts around integer and floating point representation, and how to load AI models using different data types, using PyTorch and Hugging Face Transformers library. You will also understand the pros and cons of each different data type, in order to make the right decision for your use case. You will also dive deep into linear quantization by understanding how it works in practice. You will see how linear quantization works in simple terms. The quantization scheme is used in most state-of-the-art quantization methods. After reviewing how linear quantization works, you'll directly apply it into a small text generation model using the Quanto library from Hugging Face. Quanto makes linear quantization easy to use for any PyTorch model. We will first load the model using Transformers library and then use Quanto to quantize the model. In summary, in this course, you'll see in detail the fundamental theory behind quantization, as well as the practical aspects of how to use quantization. I hope you'll learn about these techniques and combine these building blocks yourself to create some unique applications. Many people have worked to create this course. I'd like to thank on the Hugging Face side, the entire Hugging Face team for their review of the course content 🌟; as well as the Hugging Face community for their contributions to open source models ✨. From DeepLearning.AI, Eddy Shyu has also contributed to this course πŸ˜€. This is a short course that covers a lot So I'm excited about what you'll be able to learn... ...in a compressed way πŸ˜‰ I hope you enjoy the course! πŸ˜„
course detail
Next Lesson
Quantization Fundamentals with Hugging Face
  • Introduction
    Video
    ・
    3 mins
  • Handling Big Models
    Video
    ・
    5 mins
  • Data Types and Sizes
    Video with Code Example
    ・
    17 mins
  • Loading Models by data type
    Video with Code Example
    ・
    15 mins
  • Quantization Theory
    Video with Code Example
    ・
    15 mins
  • Quantization of LLMs
    Video
    ・
    6 mins
  • Conclusion
    Video
    ・
    1 min
  • Course Feedback
  • Community