You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried code like this:
device = 'cuda'
model = whisper.load_model('medium', device=device)
model.share_memory()
pool = torch.multiprocessing.Pool(2)
queue = torch.multiprocessing.Manager().Queue()
start = datetime.now()
for file_name in file_list:
pool.apply_async(worker,(model,file_name,queue))
Now there are two questions:
According to my assumption, will this operation increase the number of audio conversions per second, or for this purpose, how to do it?
if not model.share_memory(), the following worker function will not be entered, so I search and found that this might be needed, but it will have an error :NotImplementedError: Cannot access storage of SparseTensorImpl
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I tried code like this:
device = 'cuda'
model = whisper.load_model('medium', device=device)
model.share_memory()
pool = torch.multiprocessing.Pool(2)
queue = torch.multiprocessing.Manager().Queue()
start = datetime.now()
for file_name in file_list:
pool.apply_async(worker,(model,file_name,queue))
Now there are two questions:
Can anyone help me with this answer? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions