Spaces:
Running
on
Zero
Running
on
Zero
disable torch.compile for now
Browse files
app.py
CHANGED
|
@@ -379,9 +379,14 @@ def _apply_torch_compile_optimizations():
|
|
| 379 |
print(" Continuing without compilation (slower but functional)\n")
|
| 380 |
|
| 381 |
|
| 382 |
-
#
|
| 383 |
-
#
|
| 384 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
|
| 386 |
|
| 387 |
@spaces.GPU(duration=60)
|
|
|
|
| 379 |
print(" Continuing without compilation (slower but functional)\n")
|
| 380 |
|
| 381 |
|
| 382 |
+
# torch.compile DISABLED: Multiple device access issues in ComfyUI codebase
|
| 383 |
+
# Issues found:
|
| 384 |
+
# 1. comfy/ldm/modules/diffusionmodules/util.py - timestep_embedding (FIXED with .to())
|
| 385 |
+
# 2. comfy_extras/nodes_freelunch.py:94 - hsp.device check in output_block_patch
|
| 386 |
+
# With fullgraph=True, compilation traces too deep and hits these ConstantVariable errors
|
| 387 |
+
# App still uses bfloat16 optimization for 1.3-1.5× speedup
|
| 388 |
+
print("ℹ️ torch.compile disabled (ComfyUI device access incompatibilities)")
|
| 389 |
+
print(" App uses bfloat16 + VAE tiling + cache clearing for optimization")
|
| 390 |
|
| 391 |
|
| 392 |
@spaces.GPU(duration=60)
|