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.


💻   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 "Building Code Agents with Hugging Face Smolagents", built in partnership with Hugging Face. This course shows you how to build code agents. Code agents are agents that write code to perform sequences of actions. This is distinct from coding agents, which are agents like those in Windsurf or Cursor that will write code for you to execute. I'm delighted that the instructors for this course are Thomas Wolf, who is co-founder and CSO of Hugging Face, who'll join you in the next lesson, as well as Aymeric Roucher, who is developer of smolagents at Hugging Face. Thanks, Andrew. I'm really excited about this course. I use LLMs to write code for me all the time to get stuff done. The idea behind this course is, let your LLM writes code for your agent as well to get stuff done. Code agents lets you take advantage of LLMs coding ability to write code to perform actions. So rather than having an LLM generate function calls one after another to complete a complex sequence of tasks where you generate one function, call it and execute that, then have the LLM decide what's the second function call to generate and execute that, and so on, one at a time. In contrast, a code agent will consolidate all of these calls into a single snippet of code. So lets an LLM lay out an entire plan of action all at the same time. That can then be executed efficiently rather than forcing an LLM to reveal the plan to you, one small step at a time. And it turns out to be more efficient and also give more reliable results. In the first lesson, Thomas will describe a brief history of agents to bring you to the current day. Then in the second lesson, you will learn about Hugging Face smolagents and get a chance to explore the benefits of code agents yourself. We will also review some of the academic results showing the savings of this approach. It is important when using your LLM-generated code to protect your system from potential ill effects. For example, the code may have syntax errors or may perform actions that could harm your system. To protect against this, in lesson three, you will learn about a constrained Python interpreter using smolagents and also how to execute your code in a sandbox for safety. In lesson four, you will see how to trace your agents in order to debug more complex scenarios. And in lesson five, you'll learn about and build a multi-agent system. Many people have worked to create this course. I'd like to thank from HuggingFace, Albert Villanova and from DeepLearning.AI, Geoff Ladwig also contributed to this course. Additionally, we receive help and support from Vasek Mlejnsky, co-founder and CEO of E2B, a company which provides cloud based secure sandboxes which you use today. All right, let's get started on the first lesson.
course detail
Next Lesson
Building Code Agents with Hugging Face smolagents
  • Introduction
    Video
    ・
    2 mins
  • A Brief History of Agents
    Video
    ・
    5 mins
  • Introduction to Code Agents
    Video with Code Example
    ・
    11 mins
  • Secure Code Execution
    Video with Code Example
    ・
    9 mins
  • Monitoring and Evalutating your Agent
    Video with Code Example
    ・
    6 mins
  • Build a Deep-Research Agent
    Video with Code Example
    ・
    7 mins
  • Conclusion
    Video
    ・
    1 min
  • Course Feedback
  • Community