-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[multiprocessing] - Improve launch subprocesses (fairinternal/xformer…
…s#960) * testing ProcessPoolExecutor singleton pattern * rebasing branch 'improve_launch_subprocesses' on '804f6300' * better pytorch memory cleaning * added tests mix issue * one single dtype during tests * added get_global_pool_allocator according to dtype and world_size * removed pytest session cleanup&fix linters&use correct context enter/exit pattern&removed executor initializer&removed lru_cache * restored all tests * removed the context's manager submit+exiting if statements/mechanisms and dictionary presence checking of the executor's instance&hack the process termination --------- Co-authored-by: Valeriu Lacatusu <[email protected]> __original_commit__ = fairinternal/xformers@cbafbdb
- Loading branch information
Showing
1 changed file
with
110 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