Closed hieuminh65 closed 7 months ago
This seems like a multiprocessing problem. If you are using a windows PC, you can try to set num_workers
into 0 since The yaml file says that 0 works for windows.
This seems like a multiprocessing problem. If you are using a windows PC, you can try to set
num_workers
into 0 since The yaml file says that 0 works for windows.
Hey I use macOS, I try that but it does not work
Can you try to add these lines at the beginning of your training script:
import multiprocessing
multiprocessing.set_start_method("fork")
Hello @hieuminh65, any news on this issue please ?
Hello @hieuminh65, any news on this issue please ?
Hey, I had the same problem (MacOS) and the following worked :
import multiprocessing multiprocessing.set_start_method("fork")
Thanks @lucadellalib
I use macOS M1, I add import multiprocessing multiprocessing.set_start_method("fork")
and show something like this: [W ParallelNative.cpp:230] Warning: Cannot set number of intraop threads after parallel work has started or after set_num_threads call when using native parallel backend (function set_num_threads)
how can i fix it?
I use macOS M1, I add import multiprocessing multiprocessing.set_start_method("fork")
and show something like this: [W ParallelNative.cpp:230] Warning: Cannot set number of intraop threads after parallel work has started or after set_num_threads call when using native parallel backend (function set_num_threads)
how can i fix it?
Not sure, but this doesn't look like a SB-specific issue.
I can find this which seems related, and it doesn't take them the set_start_method
to cause the issue: https://stackoverflow.com/questions/64772335/pytorch-w-parallelnative-cpp206
You could try disabling workers altogether in the mentioned way though I'm not sure this behaves well with SB (on top of slowing down training somewhat).
Describe the bug
Hi I am working with the IEMOCAP in recipes for emotion recognition. When I started the training I got this error.
Expected behaviour
The training process is done and I got the new model weight without error
To Reproduce
if name == "main":
Versions
No response
Relevant log output
Additional context
I change the device to cpu because I don't have CUDA system but I wonder if that is the reason.