Serverless LLMs and Agentic AI with Modal โ Lesson 5
๐ 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 5: Volumes โ Persistent Storage Across Containers in Modal. After learning how to control environments, scaling, and hardware resources, we now tackle a critical missing piece of serverless systems: state. Most serverless functions are stateless by default, but real AI systems need to persist results, metrics, checkpoints, and artifacts across runs. In this lesson, youโll learn how Modal Volumes solve this problem cleanly and safely.
This lesson is fully hands-on and systems-oriented. We build a small Experiment Tracker that logs benchmark results into a shared Modal Volume using a simple JSONL format. Youโll see how multiple functions can read and write the same persistent data across different runs, days, or even weeks. Along the way, youโll learn the two most important operational concepts when working with volumes: commit(), which makes writes durable and visible to other containers, and reload(), which ensures long-lived or reused containers see the latest data instead of stale state.
By the end of this lesson, youโll understand how to design stateful serverless AI workflows without databases, how to avoid subtle consistency bugs, and how to use volumes for experiment tracking, caching, checkpoints, and intermediate artifacts. This mental model is essential for building real-world LLM systemsโwhether youโre logging embedding benchmarks, storing RAG indexes, or persisting agent memory across runs.
๐ปCode on GitHub: https://github.com/frezazadeh/serverless-llm-agentic-ai/blob/main/lesson5.ipynb
โธป
๐ What Youโll Learn
โข What Modal Volumes are and how they provide persistent storage
โข How to create and mount named volumes in Modal
โข How to write and read shared files across containers and runs
โข Why co
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
More on: AI Systems Design
View skill โRelated AI Lessons
โก
โก
โก
โก
ACID vs BASE Transactions
Dev.to ยท ไธไน
Chapter 1. The Big Three of Circuits โ R, L, C
Medium ยท Programming
Angular Interviews Questions Morgan Stanley Questions for 5+ Years Experience
Medium ยท Programming
I Used to Think System Design Diagrams Had to Look Cool. I Was Wrong
Dev.to ยท Flik โ Software Critical Dev
๐
Tutor Explanation
DeepCamp AI