Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force DHT to be mp.context.ForkProcess (#589)
This doesn't change anything on Linux but helps macOS users. Specifically, it's helps to: - Avoid [this error](bigscience-workshop/petals#405 (comment)) for people who don't use `if __name__ == "__main__"` in simple scripts on macOS (that uses spawn for processes by default). - Make DHT consistent with other code that inherits from `mp.context.ForkProcess` directly. (cherry picked from commit 1eb5d18)
- Loading branch information