Replies: 1 comment
-
I was successfull loading the model on the specific gpu by doing this , |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to load two models of faster-whisper as i have two gpus,
def load_models_all(gpu_id): whisper_model = WhisperModel( "large-v2", device=device, compute_type="float16")
and calling it like this
`def run_pipeline_on_gpu(gpu_id):
load_models_all(gpu_id)
# Run the pipeline code here
if name == 'main':
process1 = multiprocessing.Process(target=run_pipeline_on_gpu, args=(0,))
process2 = multiprocessing.Process(target=run_pipeline_on_gpu, args=(1,))
ValueError: unsupported device cuda:1
and same for cuda:0.`
when i run it by just giving the device as "cuda" it loads the model successfuly, what could be the possible reason for this error?
Beta Was this translation helpful? Give feedback.
All reactions