Closed laibamehnaz closed 1 year ago
I think it's because you changed the start mode of the multiprocessing lib, from spawn
to fork
in this line: https://github.com/VIDA-NYU/alpha-automl/blob/laiba-dev/alpha_automl/automl_manager.py#L74
I prefer to use spawn
because it's safer and it runs in Windows.
Also, you should run your script inside the __main__
function. Actually, it is a limitation of the multiprocessing lib. https://stackoverflow.com/questions/50781216/in-python-multiprocessing-process-do-we-have-to-use-name-main
spawn didn't work for me. It gave me the error saying fork should be used. So I had changed that. However, I put this here to discuss the error in the meeting. Sorry I didn't mention it in the issue.
I see. I think it raised the error because you didn't use the if __name__ == '__main__':
like the example: https://github.com/VIDA-NYU/alpha-automl/blob/devel/examples/tabular_classification.py#L5
But yes, we should clarify it in the documentation. Thanks!
Ah got it. Thank you so much. :)
On running python adding_new_primitives_huggingface.py, the execution stops here.