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

Quick Guide & Tips

๐Ÿ’ป ย  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.


๐Ÿ”„ ย  Reset User Workspace

If you need to reset your workspace to its original state, follow these quick steps:

1: ย  Access the Menu: Look for the three-dot menu (โ‹ฎ) in the top-right corner of the notebook toolbar.

2: ย  Restore Original Version: Click on "Restore Original Version" from the dropdown menu.

For more detailed instructions, please visit our Reset Workspace Guide.


๐Ÿ’ป ย  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

Or, sign in with your email
Email
Password
Forgot password?
Don't have an account? Create account
By signing up, you agree to our Terms Of Use and Privacy Policy

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 Plan

Planning for more users?
Learn More

What best describes you?

This helps us tune the catalog to suit you best.

Join Team Success

You have successfully joined undefined

You now have access to all Pro features. Click below to start learning!

Session Expired

Session expired โ€” please return to Cornerstone to restart the session and complete the course.

DeepLearning.AI
/
Fast LLM Inference with Cerebras
  • All Courses
DeepLearning.AI
/
Fast LLM Inference with Cerebras
  • All Courses
DeepLearning.AIAll Courses
Fast LLM Inference with Cerebras
DeepLearning.AI
Fast LLM Inference with Cerebras

Course Syllabus

Elevate Your Career with Full Learning Experience

Unlock Plus AI learning and gain exclusive insights from industry leaders

Access exclusive features like graded notebooks and quizzes
Earn unlimited certificates to enhance your resume
Starting at $1 USD/mo after a free trial โ€“ cancel anytime
Welcome to this short course on Fast LLM Inference built in partnership with Cerebras. I've long been a fan of Cerebras and so I'm glad that the team is here to teach this course. In this course, you'll build LLM powered applications that respond to user requests quickly by running on hardware designed for fast inference. When an LLM generates text, a big chunk of time is spent moving the model's weights from memory into the compute units. Inference optimized hardware minimizes that movement and makes token generation several times faster than in a typical GPU setup. This is important for agentic workflows which might generate hundreds of thousands of tokens or more before getting back to the user. I'm delighted that the instructors for this course are Cerebras's Zhenwei Gao, Seb Duerr, and Sarah Chieng. Thanks Andrew. We're so excited to be working with you on this one. I remember after you coined the term agentic AI, you also predicted in the batch way back in 2024 that fast inference will be critical to building agents. Many of us in Cerebras were really energized by that prediction. Thank you. During inference, an LLM generates responses one token at a time. For each new token, the model performs matrix multiplications through its transformer layers. And these multiplications depend on the model's learned parameters. On a GPU, the weights don't live physically close to the compute units. They sit in off-chip memory because on-chip memory is too small to hold them all. And so to generate each token, the weights have to travel from off-chip memory to the compute units in chunks. Maybe one layer at a time. And when a model is too large for even one GPU's off-chip memory, then it gets split across multiple GPUs, which then have to exchange intermediate results. This frequent movement of data from memory to compute and between chips drives inference latency. Inference optimized hardware minimizes data movement. Different chip designs approach this challenge in different ways, but one of the best ways is to keep the model's weights on chip and as close to the compute unit as possible. In this course, the hardware you'll be using is Cerebras's wafer-scale engine or WSE3, which takes the approach of making the chip very large. The chip is built from many small cores, units that perform computations and hold on-chip memory. Chips are normally made by cutting a silicon wafer into many small pieces, so that faulty ones can be discarded. The WSE design keeps the wafer intact by routing around defective cores instead. Because the chip is so large, it has enough on-chip memory to hold many models' weights right on the compute units at all times. Take GPT-OSS 120B, a popular open-weight model. In independent benchmarks by Artificial Analysis, the model runs at over 1500 tokens per second on Cerebras, while on typical GPU setups, it runs at roughly a few hundred. Fast inference changes how you build software applications. Instead of hiding latency by adding spinning loaders, streaming responses, or pre-computing results ahead of time, you can build simpler applications. Throughout the course, you'll implement examples of real-time use cases using fast inference. You'll also learn how fast inference changes the way you work with coding agents. When the model generates code in seconds instead of minutes, you can run your tests between tasks instead of saving them for the end. You can keep sessions focused and you can steer the model as it works. So you catch problems early and end up with cleaner code. Many people have worked to create this course. I'd like to thank from Cerebras, Halley Chang, James Wang, Ryan Loney, Chris Ing, Alycia Cary, Joyce Er, and Emma Call. And from DeepLearning.AI Hawraa Salami also contributed to this course. Many of my teams have enjoyed using Cerebras inference and benefit from that for a range of our applications. Please join Zhenwei in the next video where you see why inference speed is becoming more important as you build applications based on agentic reasoning and complex agentic workflows.
course detail
Fast LLM Inference with Cerebras
  • Introduction
    Video
    ใƒป
    4m
  • The New Era Of Inference Speed
    Video
    ใƒป
    7m
  • Inference Speed in Action - Part I
    Video
    ใƒป
    4m
  • Inference Speed in Action โ€“ Part II
    Video with Code Example
    ใƒป
    9m
  • Under the Hood of WSE vs GPU vs TPU
    Video
    ใƒป
    11m
  • Engineering Shifts
    Video with Code Example
    ใƒป
    13m
  • Real-Time Use Case on Personalization
    Video with Code Example
    ใƒป
    10m
  • Real-Time Multi-Tool Workflow
    Video with Code Example
    ใƒป
    13m
  • Multi-Agent Coding with Codex
    Video
    ใƒป
    5m
  • Conclusion
    Video
    ใƒป
    1m
  • Quiz

    GradedใƒปQuiz

    ใƒป
    10m
  • Glossary (Optional)
    Reading
    ใƒป
    10m
    Course Details