File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -561,14 +561,12 @@ def finalize_module(module):
561561
562562 #del module
563563
564-
565564 if auto_gc :
566565 torch_empty_cache ()
567566
568- # LifeCycle: All sub-modules have finalized meaning quantization work is complete
569- # wait for all thread tasks
570- ASYNC_WORKER .join ()
571-
567+ # LifeCycle: All sub-modules have finalized meaning quantization work is complete
568+ # wait for all thread tasks
569+ ASYNC_WORKER .join ()
572570
573571 # paranoid safety check
574572 torch_sync ()
Original file line number Diff line number Diff line change 1111
1212log = setup_logger ()
1313
14- ASYNC_WORKER = AsyncManager (threads = 1 )
14+ ASYNC_WORKER = AsyncManager (threads = 4 )
1515
1616# TODO: datasets is not compatible with free threading
1717if has_gil_disabled ():
You can’t perform that action at this time.
0 commit comments