
ByteByteGo · 11 min readBuilding with LLMs
How LLMs See a Picture
Multimodal LLMs process images by converting them into patch embeddings, passing them through a vision encoder, and projecting the resulting visual features into the language model’s embedding space. This pipeline lets a transformer combine visual context with textual queries to generate answers, highlighting the need for specialized connectors and training to align modalities.
- Images are split into patches and encoded into vectors via Vision Transformers
- A projection layer maps visual vectors to the LLM’s embedding dimension
- The combined visual and text embeddings are processed together in a shared transformer