How to get ~20ms image retrieval on a tiny CPU: finetuned TinyCLIP recipe

tomaarsen · x · 2026-11-10

Tom Aarsen explains how he achieved 20ms image retrieval latency on a tiny CPU: inspired by @Angaisb's pixel-art dataset, he finetuned a small multimodal embedding model on its (image, caption) pairs.

He loaded TinyCLIP (39M params) into Sentence Transformers and trained with a positive-pair MNRL setup, pulling caption embeddings toward matching images. The resulting model is released on Hugging Face as tomaarsen/TinyCLIP-39M-PixelArt, trained on the 2.75M-sample pixel-art-atlas-1.4m dataset with MatryoshkaLoss and MultipleNegativesRankingLoss.

Related event: TinyCLIP Fine-Tuning with Matryoshka Embeddings Enables 20ms CPU Image Retrieval(4 posts)→

Original post →

More from Research

Research channel →