Guides

CLIP

In this guide, we'll show you how to run CLIP on Brev. As always, we've pre-configured the environment already so you won't have any config whatsoever :)


  1. Sign up for an account

  2. It'll redirect you to an instance creation page pre-configured with the defaults you need..

  3. At the bottom, add a payment method...we give you 30 minutes free but we just need to make sure people don't abuse our systems 🙂

  4. Hit create!

Installing Brev:

Once your instance is created install Brev:

brew install brevdev/homebrew-brev/brev && brev login

Running CLIP:

Open your new CLIP Brev instance:

brev open clip --wait

This will open VSCode inside the CLIP repo.

Now, we're ready-to-go!! In your VSCode terminal, run the command below:

python run-clip.py

And boom! The model will classify the dog.jpeg file into either a "cat" or "dog". You can play around with the model by changing run-clip.py to load your own images and change the labels it classifies between on line 9.