Passing device="cpu" and model_name="clip_vit_b_32" crashes with the following error:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument weight in method wrapper___slow_conv2d_forward)
Passing
device="cpu"
andmodel_name="clip_vit_b_32"
crashes with the following error: