Oysiyl commited on
Commit
a25a409
·
1 Parent(s): 7062f04

disable torch.compile for now

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -379,9 +379,14 @@ def _apply_torch_compile_optimizations():
379
  print(" Continuing without compilation (slower but functional)\n")
380
 
381
 
382
- # Enable torch.compile optimizations (timestep_embedding fixed!)
383
- # Now works with fullgraph=True: timestep_embedding uses device string + no progress hooks
384
- _apply_torch_compile_optimizations()
 
 
 
 
 
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)