diffsynth-engine 0.5.1.dev1__py3-none-any.whl → 0.5.1.dev2__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.
- diffsynth_engine/utils/parallel.py +4 -5
- {diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/METADATA +1 -1
- {diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/RECORD +6 -6
- {diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/WHEEL +0 -0
- {diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/licenses/LICENSE +0 -0
- {diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/top_level.txt +0 -0
|
@@ -295,8 +295,9 @@ def _worker_loop(
|
|
|
295
295
|
|
|
296
296
|
if (name := data[0]) == "unload_module":
|
|
297
297
|
module = None
|
|
298
|
+
empty_cache()
|
|
298
299
|
elif name == "load_module":
|
|
299
|
-
init_fn, kwargs =
|
|
300
|
+
init_fn, kwargs = data[1:]
|
|
300
301
|
module = wrap_for_parallel(init_fn(**kwargs))
|
|
301
302
|
elif module is None:
|
|
302
303
|
res = RuntimeError("module is not initialized")
|
|
@@ -307,12 +308,10 @@ def _worker_loop(
|
|
|
307
308
|
with torch.no_grad():
|
|
308
309
|
res = getattr(module, name)(*args, **kwargs)
|
|
309
310
|
|
|
310
|
-
data, args, kwargs = None, None, None
|
|
311
|
-
torch.cuda.synchronize()
|
|
312
|
-
empty_cache()
|
|
313
|
-
dist.barrier()
|
|
314
311
|
if rank == 0:
|
|
315
312
|
queue_out.put(res)
|
|
313
|
+
data, args, kwargs = None, None, None
|
|
314
|
+
dist.barrier()
|
|
316
315
|
except Exception:
|
|
317
316
|
import traceback
|
|
318
317
|
|
|
@@ -174,15 +174,15 @@ diffsynth_engine/utils/lock.py,sha256=1Ipgst9eEFfFdViAvD5bxdB6HnHHBcqWYOb__fGaPU
|
|
|
174
174
|
diffsynth_engine/utils/logging.py,sha256=XB0xTT8PBN6btkOjFtOvjlrOCRVgDGT8PFAp1vmse28,467
|
|
175
175
|
diffsynth_engine/utils/offload.py,sha256=94og79TIkxldwYUgZT3L4OVu1WBlE7gfVPvO2MRhm6c,3551
|
|
176
176
|
diffsynth_engine/utils/onnx.py,sha256=jeWUudJHnESjuiEAHyUZYUZz7dCj34O9aGjHCe8yjWo,1149
|
|
177
|
-
diffsynth_engine/utils/parallel.py,sha256=
|
|
177
|
+
diffsynth_engine/utils/parallel.py,sha256=vCgbCPSOv6bXF0nGKfYPs95sQQs33FsWJ05PhGmFqLM,18653
|
|
178
178
|
diffsynth_engine/utils/platform.py,sha256=nbpG-XHJFRmYY6u_e7IBQ9Q6GyItrIkKf3VKuBPTUpY,627
|
|
179
179
|
diffsynth_engine/utils/prompt.py,sha256=YItMchoVzsG6y-LB4vzzDUWrkhKRVlt1HfVhxZjSxMQ,280
|
|
180
180
|
diffsynth_engine/utils/video.py,sha256=Ne0rd2lb59UT1q5EotpjlY7OT8F9oTCFDyo1ST77uoQ,1004
|
|
181
181
|
diffsynth_engine/utils/memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
182
|
diffsynth_engine/utils/memory/linear_regression.py,sha256=oW_EQEw13oPoyUrxiL8A7Ksa5AuJ2ynI2qhCbfAuZbg,3930
|
|
183
183
|
diffsynth_engine/utils/memory/memory_predcit_model.py,sha256=EXprSl_zlVjgfMWNXP-iw83Ot3hyMcgYaRPv-dvyL84,3943
|
|
184
|
-
diffsynth_engine-0.5.1.
|
|
185
|
-
diffsynth_engine-0.5.1.
|
|
186
|
-
diffsynth_engine-0.5.1.
|
|
187
|
-
diffsynth_engine-0.5.1.
|
|
188
|
-
diffsynth_engine-0.5.1.
|
|
184
|
+
diffsynth_engine-0.5.1.dev2.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
|
|
185
|
+
diffsynth_engine-0.5.1.dev2.dist-info/METADATA,sha256=MB7Kzzpm_b8MLnSKUJH5uzV4gFTc8pgEOpAziSHA70E,1117
|
|
186
|
+
diffsynth_engine-0.5.1.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
187
|
+
diffsynth_engine-0.5.1.dev2.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
|
|
188
|
+
diffsynth_engine-0.5.1.dev2.dist-info/RECORD,,
|
|
File without changes
|
{diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{diffsynth_engine-0.5.1.dev1.dist-info → diffsynth_engine-0.5.1.dev2.dist-info}/top_level.txt
RENAMED
|
File without changes
|