Vision language models (VLMs) combine computer vision and natural language processing to create powerful systems that can interpret, generate, and respond in multimodal contexts. This book is a hands-on guide to building real-world VLMs using the most up-to-date stack of machine learning tools from Hugging Face, Meta (PyTorch), NVIDIA (Cuda), and others, written by leading researchers and practitioners Merve Noyan, Miquel Farré, Andrés Marafioti, and Orr Zohar. From image captioning and document understanding to advanced zero-shot inference and retrieval-augmented generation (RAG), this book covers the full VLM application and development lifecycle.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Vision Language Models: Building VLMs with Hugging Face
## 【One-Line Pitch】
A hands-on, code-first guide to building, training, and deploying vision language models using the Hugging Face ecosystem, written by practitioners who have shipped open-source multimodal systems. Ideal for ML engineers and researchers who want to move beyond API usage and understand—and build—VLMs from the ground up.
## 【Book Arc】
- **Opening (~0%–10%)**: Sets the stage with endorsements, the authors' motivation, and a clear statement of the book's purpose—bridging the gap between VLM research and practical engineering. The foreword frames the field's milestones (BigTransfer, ViT, CLIP, LLaVA, Flamingo, PaLI) and argues that understanding how to *build* and *debug* these systems matters more than memorizing milestones.
- **Early (~10%–34%)**: Establishes the reader profile (Python, PyTorch, basic ML knowledge assumed) and outlines the book's deliberate arc: foundations → training from scratch → data curation → post-training → core architectures → deployment. The authors emphasize that later chapters stand alone but early chapters provide essential vocabulary and intuition.
- **Middle (~39%–49%)**: Maps the second half of the book: document AI, video-language models (including Video-RAG), any-to-any "omni" models, and agentic VLMs / vision-language-action systems. Also covers conventions, code examples (available at huggingface.co/vlmbook), and acknowledgments.
- **Middle (~51%–61%)**: Opens the technical content with a history of computer vision, arguing that understanding classical signal processing (Fourier transform, DCT, wavelets) and handcrafted feature extraction (Prewitt, Sobel kernels) is essential for grasping modern deep learning approaches. The key insight: CNNs learn filters that look remarkably like the hand-designed edge detectors of the past.
- **Late (~66%–71%)**: Explains CNNs in depth—weight sharing, feature hierarchies (edges → shapes → object parts), and the backbone-plus-task-specific-head pattern. This leads to transfer learning, the idea that a pretrained backbone can be repurposed for many tasks with minimal data and compute, which is foundational for VLM architecture design.
## 【Key Takeaways】
- **VLMs are an engineering discipline, not just a research curiosity** (Early): The book's core premise is that building, debugging, and deploying VLMs involves many small decisions that papers and model cards don't teach. The authors wrote the book they wished existed when multimodal work became an engineering problem.
- **The book follows a deliberate arc from foundations to specialized systems** (Early): First half covers training from scratch, data curation, post-training, architectures, and deployment; second half covers document AI, video, any-to-any models, and agents. Later chapters are self-contained, but early chapters build the vocabulary.
- **Classical signal processing provides intuition for modern vision** (Middle): Fourier transforms, DCT compression, and wavelets re-express images as structured signals, not raw pixel grids. Understanding these techniques explains why our eyes are more sensitive to low-frequency structures and how compression works—concepts that carry into deep learning.
- **Handcrafted kernels are the conceptual bridge to CNNs** (Middle): Feature extraction kernels (Prewitt, Sobel) detect edges by sliding small matrices over images. CNNs learn these same operations automatically, and their earliest layers converge on filters that look strikingly similar to classical edge detectors.
- **Convolution's key innovation is weight sharing** (Late): Unlike fully connected layers, convolutional layers slide small kernels across images, sharing weights spatially. This gives CNNs efficiency and the ability to detect patterns regardless of position—the foundation of modern vision backbones.
- **CNNs build a natural feature hierarchy** (Late): Early layers learn edges and textures, deeper layers combine them into shapes and object parts, and final layers pass rich representations to task-specific heads. This backbone-plus-head pattern is highly versatile and led to transfer learning.
- **Transfer learning is the key to practical VLM development** (Late): Instead of training from scratch, practitioners repurpose large pretrained models for specific tasks, saving compute and data. This principle underlies the Hugging Face ecosystem's approach to building multimodal systems.
## 【Reading Tips】
- **Start with the foreword and introduction (0%–10%)** to understand the book's philosophy and the authors' credentials—this frames why the code-first approach matters and what you'll be able to do by the end.
- **Deep-read Chapter 1 (Middle, ~51%–71%)** on vision foundations. The signal processing and kernel material may feel like a detour, but it's essential for understanding why CNNs work and how ViTs later moved beyond them. The figures (convolution visualizations, Prewitt/Sobel examples) are worth studying carefully.
- **Skim the front matter (10%–49%)** if you're an experienced practitioner—chapter overviews and conventions are useful, but the real content starts with the vision history. However, don't skip the "What You Will Learn" section; it clarifies the book's goals and how to navigate chapters based on your interests.
- **Use the book's structure to your advantage**: If you're primarily interested in deployment or agents, you can jump to later chapters, but be prepared to refer back to early chapters for vocabulary and architectural intuition.
- **Pair the book with the companion code** (huggingface.co/vlmbook): The authors emphasize code-first learning, so running the examples alongside reading will significantly improve retention and practical skill.
## 【Coverage Limits】
This guide covers the book's front matter, structure, and the foundational vision concepts from Chapter 1. The excerpts do not cover the specifics of VLM architectures (e.g., LLaVA, Flamingo), training procedures, data curation, post-training, deployment, or the specialized domains (document AI, video, any-to-any, agents) beyond their chapter descriptions.
##
Excerpt 1
mar Sanseviero, developer experience lead, Google DeepMind Vision Language Models Vision Language Models Building VLMs with Hugging Face Merve Noyan, Miquel...
sometimes I needed an extra hand and hers was always ready. Last but not least, I have been lucky to be surrounded by people that I admire and that became fr...
emphasizes whatever pattern the kernel was designed to find. That sounds abstract, so let’s make it concrete with the simplest possible example. Instead of a...
n task. Let’s review some of the most influential backbones. ResNet Early convolutional deep neural networks were hard to train due to vanishing and explodin...
ed to a dog i Vision Language Model Applications Chapter 2. Vision Language Model Applications We have seen how vision and language is bridged, so let’s see...
retrieval Images are ranked by relevance to a textual query. Image-to-text retrieval Textual descriptions are ranked based on their relevance to an image que...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Vision Language Models Building VLMs with Hugging Face (Merve Noyan, Miquel Farré, Andrés Marafioti etc.)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Vision Language Models Building VLMs with Hugging Face (Merve Noyan, Miquel Farré, Andrés Marafioti etc.)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Vision Language Models Building VLMs with Hugging Face (Merve Noyan, Miquel Farré, Andrés Marafioti etc.)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
这本书围绕如何用 Hugging Face 及其生态中的工具构建视觉语言模型展开,面向希望把多模态能力落到实际工程中的读者。它从计算机视觉与自然语言处理各自的基础讲起,逐步过渡到两类信息如何在同一模型中建立联系,再进入数据准备、训练、后训练与部署的完整流程,最后延伸到文档理解、视频语言模型以及能够跨文本、图像、音频和视频进行理解与生成的统一多模态系统。
读者可以抓住几条主要线索。其一是概念地基:书中回溯了从信号分解、手工设计的卷积核到卷积神经网络和视觉Transformer的视觉侧演进,也提到早期文本处理中以循环神经网络配合分词映射的做法,这些内容帮助理解后续模型设计为何如此取舍。其二是视觉与文本的绑定:通过CLIP等对齐思路,说明图像和文字如何在表示空间中被拉到一起,为检索类任务打下基础,书中也区分了以文搜图、以图搜文和以图搜图等不同检索形态。其三是工程实践:数据整理、从零训练、后训练和部署被放在核心位置,强调数据质量与训练配方对模型成败的影响,并给出可复用的工具链组合。其四是领域落地:文档AI涉及OCR与版面理解,视频方向讨论Video-RAG与微调中的实际考量,最后落到任意到任意的统一多模态架构。
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment