vlm-demo / src /models /README.md
tiltaf's picture
Upload 29 files
cf3d756 verified

Models

Vision Backbone (ViT)

This is a very lightweight Vision Transformer in native pytorch. I took inspiration from the following sources:

Language Model (Llama / SmolLM)

This is a decoder only LM, following the Llama 2/3 architecture. Inspiration from the following sources:

Modality Projection

This is a simple MLP (Linear Layer) for the Modality Projection between the Image Patch Encodings and the Language Embedding Space with a simple Pixel Shuffle (https://arxiv.org/pdf/2504.05299)

Vision-Language-Model

This brings all the individual parts together and handles the concatenation of images and text. Built as a simple version of SmolVLM (https://arxiv.org/pdf/2504.05299)