OpenAI CLIP | Machine Learning Coding Series @TheAIEpiphany
OpenAI CLIP | Machine Learning Coding Series  @TheAIEpiphany
Uploaded June 2022 | Updated September 2026, 1 week ago
❀️ Become The AI Epiphany Patreon ❀️
patreon.com/theaiepiphany

πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Join our Discord community πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦
discord.gg/peBrCpheKE

Kicking off a series of videos where I'll be going through the actual code of many of the papers I've covered over the last few years!

In this video I do a code walkthrough of OpenAI's CLIP model from the "Learning Transferable Visual Models From Natural Language Supervision" paper.

Let me know what you'd like me to cover next!

β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬
βœ… GitHub: github.com/openai/CLIP
βœ… Paper: arxiv.org/abs/2103.00020

Learn about Byte-Pair Encoding:
βœ… en.wikipedia.org/wiki/Byte_pair_encoding
βœ… leimao.github.io/blog/Byte-Pair-Encoding
βœ… Video: youtube.com/watch?v=tOMjTCO0htA&ab_channel=FromLanguagestoInformation
βœ… youtube.com/watch?v=zjaRNfvNMTs&ab_channel=AbhishekThakur

Unicode:
βœ… dmitripavlutin.com/what-every-javascript-developer-should-know-about-unicode
β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬

⌚️ Timetable:
00:00:00 Intro
00:02:00 High level overview: Interacting with CLIP
00:26:11 High level overview: Prompt engineering for ImageNet
00:40:25 Deep dive starts: vocabulary and byte-pair encoding
00:49:00 Vision Transformer & Text Transformer explained
01:02:00 Tokenization walkthrough
01:09:25 Encoding the image
01:15:15 Encoding the text
01:23:15 Learning a linear probe
01:27:00 Tokenization of the (brain emoji)
01:29:56 Outro

β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬
πŸ’° BECOME A PATREON OF THE AI EPIPHANY ❀️

If these videos, GitHub projects, and blogs help you,
consider helping me out by supporting me on Patreon!

The AI Epiphany - patreon.com/theaiepiphany
One-time donation - paypal.com/paypalme/theaiepiphany

Huge thank you to these AI Epiphany patreons:
Eli Mahler
Kevin Stone
Petar VeličkoviΔ‡

β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬

πŸ’Ό LinkedIn - linkedin.com/in/aleksagordic
🐦 Twitter - twitter.com/gordic_aleksa
πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Discord - discord.gg/peBrCpheKE

πŸ“Ί YouTube - youtube.com/c/TheAIEpiphany
πŸ“š Medium - gordicaleksa.medium.com
πŸ’» GitHub - github.com/gordicaleksa
πŸ“’ AI Newsletter - aiepiphany.substack.com

β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬

#CLIP #contrastive #codewalkthrough
OpenAI CLIP | Machine Learning Coding SeriesFake It Till You Make It (Microsoft) | Paper ExplainedLLaMA 2 w/ Thomas Scialom (LLaMA 2 lead)Day 24: Open NLLB - back from China, fuzzy dedup, preparing HBS run (Pt 1)Day 12: Open NLLB - on-boarding doc for new-joiners, eval (Pt 2.)Day 22: Open NLLB - HBS data analysis, split into Cyrillic & Latin (Pt 2)Day 4: Training 600M NLLB - data preps (Pt. 2)Day 4: Training 600M NLLB - data preps (Pt. 3)Day 15: Open NLLB - wrapping up detecting hallucinations paper (Pt 3)OpenAI GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion ModelsHigh Fidelity Neural Audio Compression | Paper & Code ExplainedDay 24: Open NLLB - back from China, filtering HBS data (Pt 3)
Aleksa Gordić - The AI Epiphany |

OpenAI CLIP | Machine Learning Coding Series

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER