blip-caption icon indicating copy to clipboard operation
blip-caption copied to clipboard

Added --gpu flag to run model on a gpu

Open mutherr opened this issue 1 year ago • 7 comments

I noticed there wasn't a way to run the model on a gpu, so added a flag to set the device for the pipeline.

mutherr avatar Sep 24 '24 18:09 mutherr

This is great! It will throw an error on my side though if run without the --gpu flag

UnboundLocalError: cannot access local variable 'device' where it is not associated with a value

rwetzold avatar Oct 11 '24 05:10 rwetzold

Resolved!

mutherr avatar Oct 11 '24 13:10 mutherr

Works nicely! Now we just need to get this merged somehow

rwetzold avatar Oct 11 '24 14:10 rwetzold

It says something about workflows requiring approval. Maybe related to merging?

mutherr avatar Oct 11 '24 14:10 mutherr

Oh, no you might have to merge it, since you have write access.

mutherr avatar Oct 11 '24 14:10 mutherr

I don't, we need @simonw

rwetzold avatar Oct 11 '24 14:10 rwetzold

@simonw is this going to be merged?

ecentinela avatar May 27 '25 07:05 ecentinela