Skip to content

sinanuozdemir/oreilly-multimodal-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multimodal AI Essentials

Welcome to the "Multimodal AI Essentials" code repository! In this repo, we will learn how multimodal AI merges text, image, and audio for smarter models.

Much of the code in these sessions will be featured in the 2nd edition of my latest book on LLMs:

So if you're itching for more, check it out and please leave a rating/review to tell me what you thought :)

For even more, check out my Expert Playlist!

Prerequisites

  • Intermediate - Advanced Python Skills: Comfort with Python is crucial as we'll be using it throughout the course to interact with Hugging Face tools and integrate NLP into practical examples.

  • Foundational Machine Learning Knowledge: You should have an understanding of core machine learning principles, as we’ll build upon these concepts when exploring advanced NLP techniques.nologies in dynamic and evolving data environments.

Installation

  1. Clone this repository to your local machine.
  2. Ensure you have set the following api keyes:
  • OpenAI key

You're all set to explore the notebooks!

Usage - Jupyter Notebooks

This project contains several Jupyter notebooks each focusing on a specific topic:

  1. Intro to Multimodality: An introduction to multimodality with CLIP and SHAP-E

    • Whisper: An introduction to using Whisper for audio transcription

    • Llava: Using an open source mult-turn multimodal engine

    • Multimodal Semantic Search: Using SigLip model to build an image search system

  2. Visual Q/A - This case study requires you to download the data from my Dropbox here. The code snippets should download them in code if that is easier! Our goal is to emulate the process done by Llama 3.2-Vision-Instruct: one of Meta's latest Llama models that can take in images.

  3. Diffusion - Exploring Diffusion Models and Fine-tuning techniques like Dreambooth

    • Intro to Diffusion (StableDiff + Flux): Generating images using diffusion models

    • Dreambooth: Fine-tuning a stable difusion model to make images of yours truly! Ever wonder what I look like blonde? Me neither but AI gave me some ideas of what it would look like.

  4. Texth to Speech - Fine-tune text to speech models

  5. Multimodal Applications

  6. Multimodal Evaluation + Ethics

    • Llava-Critic Demo - Multimodal LLM (LMM) as a judge
    • Wav2Lip Demo - See how modern deepfakes get made. Also find out my favorite movie! If you believe the video you see that is ;)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Book time with me on Intro!

If you have questions, I'm available on Intro :)