-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, this code forced the use of the `spawn` multiprocessing method. Since we know this causes problems in some configurations, multiprocessing as off by default. This change turns it on by default and makes use of existing code that tries to choose the best multiprocessing method based on what we can detect. - use `fork` by default - use `spawn` if CUDA has already been initialized, but give a warning This same logic is already in use for spawning multiple workers for v1 tensor parallelism support. The design doc `docs/design/multiprocessing.md` covers this topic in more detail. Signed-off-by: Russell Bryant <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters