preface
When I started exploring Hugging Face, I was struck by how accessible and powerful its tools were. Models that once required specialized knowledge and massive compute resources were now available to anyone with a laptop and Python. I spent countless hours experimenting—running pretrained models, fine-tuning them on my own datasets, and trying to figure out how to integrate them into real applications. That journey was exciting, but I quickly realized that learning to use models was only part of the story. The real challenge—and the real fun—comes from building AI systems that can act, interact, and solve real-world problems.
This book is the result of that journey. It’s designed to take you from the basics of navigating Hugging Face to building end-to-end AI applications—from natural language processing (NLP) and computer vision tasks to autonomous agents, interactive web interfaces, and locally running models. Along the way, I explore advanced concepts such as multimodal models, LangChain for AI workflows, retrieval-augmented generation (RAG) for querying documents, and the Model Context Protocol (MCP) for connecting AI systems to tools and data. My goal is to give you not just code examples but also a framework for thinking about AI applications—how to design them, extend them, and make them useful in the real world.