Guides: Ready-to-go ML Environments

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 environment 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 env is created install Brev:

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

Running CLIP:

Open your new CLIP Brev environment:

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.

Previous
Dance Diffusion