Open Muennighoff opened 2 years ago
Maybe it just exist when you use fork as method to start new processes?
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()