diffsynth-engine 0.4.3.dev4__py3-none-any.whl → 0.4.3.dev5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -331,19 +331,14 @@ class ParallelWrapper:
331
331
  master_port: int = 29500,
332
332
  device: str = "cuda",
333
333
  ):
334
- current_method = mp.get_start_method(allow_none=True)
335
- if current_method is None or current_method != "spawn":
336
- try:
337
- mp.set_start_method("spawn")
338
- except RuntimeError as e:
339
- raise RuntimeError("Failed to set start method to spawn:", e)
340
334
  super().__init__()
341
335
  self.config = module.config if isinstance(module, BasePipeline) else None
342
336
  self._module_name = module.__class__.__name__
343
337
 
344
338
  self.world_size = cfg_degree * sp_ulysses_degree * sp_ring_degree * tp_degree
345
- self.queue_in = mp.Queue()
346
- self.queue_out = mp.Queue()
339
+ spawn_ctx = mp.get_context("spawn")
340
+ self.queue_in = spawn_ctx.Queue()
341
+ self.queue_out = spawn_ctx.Queue()
347
342
  self.ctx = mp.spawn(
348
343
  _worker_loop,
349
344
  args=(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diffsynth_engine
3
- Version: 0.4.3.dev4
3
+ Version: 0.4.3.dev5
4
4
  Author: MuseAI x ModelScope
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Operating System :: OS Independent
@@ -164,12 +164,12 @@ diffsynth_engine/utils/lock.py,sha256=1Ipgst9eEFfFdViAvD5bxdB6HnHHBcqWYOb__fGaPU
164
164
  diffsynth_engine/utils/logging.py,sha256=XB0xTT8PBN6btkOjFtOvjlrOCRVgDGT8PFAp1vmse28,467
165
165
  diffsynth_engine/utils/offload.py,sha256=8dHMEzAQcE-GNbFYotGQg2YBBB0eywoRTIffVmK4A0k,3746
166
166
  diffsynth_engine/utils/onnx.py,sha256=jeWUudJHnESjuiEAHyUZYUZz7dCj34O9aGjHCe8yjWo,1149
167
- diffsynth_engine/utils/parallel.py,sha256=TtB6FzP2qo4VQqSenVnV-ZaKmp9xHaIWJ8D1ZjHtukE,17064
167
+ diffsynth_engine/utils/parallel.py,sha256=Z9jqCv4mLV4JyXR3uTHyv1rujPiKU8PSCbAfiN9jkPc,16818
168
168
  diffsynth_engine/utils/platform.py,sha256=2lXdw6YkqcRONCeT98n4cyg1Ii8Ybbyj2Ns72Se9tlk,496
169
169
  diffsynth_engine/utils/prompt.py,sha256=YItMchoVzsG6y-LB4vzzDUWrkhKRVlt1HfVhxZjSxMQ,280
170
170
  diffsynth_engine/utils/video.py,sha256=Ne0rd2lb59UT1q5EotpjlY7OT8F9oTCFDyo1ST77uoQ,1004
171
- diffsynth_engine-0.4.3.dev4.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
172
- diffsynth_engine-0.4.3.dev4.dist-info/METADATA,sha256=4D5ubLDy1tWA_n94e0QPdgTHQHOjFxEp-FM7mzS_ClE,1110
173
- diffsynth_engine-0.4.3.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
174
- diffsynth_engine-0.4.3.dev4.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
175
- diffsynth_engine-0.4.3.dev4.dist-info/RECORD,,
171
+ diffsynth_engine-0.4.3.dev5.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
172
+ diffsynth_engine-0.4.3.dev5.dist-info/METADATA,sha256=hMlrgbZrIStdg2Sr4iIePwnxCltZ1rttaP_1I2gXflA,1110
173
+ diffsynth_engine-0.4.3.dev5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
174
+ diffsynth_engine-0.4.3.dev5.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
175
+ diffsynth_engine-0.4.3.dev5.dist-info/RECORD,,