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
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-17-8a9d42a11ec1> in <module>
4 for p in pool['processes']:
5 p.join()
----> 6 p.close()
7
8 pool['input'].close()
AttributeError: 'SpawnProcess' object has no attribute 'close'
The text was updated successfully, but these errors were encountered:
Muennighoff
changed the title
Cannot close SpawnProcess for multiprocessing
Cannot close SpawnProcess for multiprocessing model.stop_multi_process()
Aug 4, 2022
Yeah I think so. I fixed it by just removing the close() line and all works fine.
I'm not sure why exactly close doesn't exist for spawn, as the docs don't mention it.
I just ran into the same issue. Not sure what the issue is but I removed p.close() on line 237 in SentenceTransformer.py, as suggested, and that worked for me as well. The child processes still appear close as normal and GPU memory is freed.
Upon running model.stop_multi_process()
The text was updated successfully, but these errors were encountered: