Serverless LLMs and Agentic AI with Modal โ Lesson 3
Skills:
Agent Foundations90%Tool Use & Function Calling85%Multi-Agent Systems80%Autonomous Workflows75%
๐ Support BrainOmega
โ Buy Me a Coffee: https://buymeacoffee.com/brainomega
๐ณ Stripe: https://buy.stripe.com/aFa00i6XF7jSbfS9T218c00
๐ฐ PayPal: https://paypal.me/farhadrh
๐ฅ In this video, we continue our Serverless LLMs and Agentic AI course with Lesson 3: Custom Images in Modal. After learning how to run functions remotely and control scaling in the previous lessons, we now focus on a critical question: what environment does your code actually run in? In this lesson, youโll learn how Modal images define the container environment for your serverless AI workloads, without writing Dockerfiles or managing infrastructure.
This lesson is fully hands-on and environment-focused. Youโll learn how to build custom Modal images by installing system packages, Python dependencies, and running shell commands during image build time. Youโll also see how to ship local assetsโsuch as templates, configuration files, and promptsโdirectly into the container. To make everything concrete, we build a small Report Generator Service that downloads a public-domain book during image build, processes it at runtime, and returns both Markdown and HTML reports using a Jinja2 template.
By the end of this lesson, youโll understand how image layers work, why build-time steps matter, and how to design fast, reproducible, and production-ready environments for LLM inference, embeddings, and agentic systems. This lesson gives you the mental model needed to move beyond toy examples and start building real serverless AI applications.
๐ป Code on GitHub: https://github.com/frezazadeh/serverless-llm-agentic-ai/blob/main/Lesson3.ipynb
โธป
๐ What Youโll Learn
โข What Modal images are and how they define container environments
โข How to install system packages with apt_install
โข How to install Python dependencies with pip_install
โข How to run shell commands during image build time
โข How to ship local assets using add_local_dir and add_local_file
โข Why image layer ordering affects rebuild speed
โข How
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
More on: Agent Foundations
View skill โRelated AI Lessons
โก
โก
โก
โก
Recepcionista virtual vs contestadora automรกtica en Argentina: flujo de intake para llamadas, WhatsApp y derivaciรณn
Dev.to AI
Quรฉ es una recepcionista virtual IA en Argentina: flujo de intake para llamadas, WhatsApp y derivaciรณn
Dev.to AI
Mejor recepcionista virtual para PyMEs en Argentina: flujo de intake para llamadas, WhatsApp y derivaciรณn
Dev.to AI
AI Answering Service Ireland: 24/7 Call Handling for SMEs: an intake workflow for missed calls
Dev.to AI
๐
Tutor Explanation
DeepCamp AI