Windows can not support torch.compile

#31
by YZHOU95 - opened

Traceback (most recent call last):
File "D:\AIGC1\sdXL\main.py", line 9, in
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
File "D:\ENV\SDXL\lib\site-packages\torch_init_.py", line 1441, in compile
return torch._dynamo.optimize(backend=backend, nopython=fullgraph, dynamic=dynamic, disable=disable)(model)
File "D:\ENV\SDXL\lib\site-packages\torch_dynamo\eval_frame.py", line 413, in optimize
check_if_dynamo_supported()
File "D:\ENV\SDXL\lib\site-packages\torch_dynamo\eval_frame.py", line 375, in check_if_dynamo_supported
raise RuntimeError("Windows not yet supported for torch.compile")
RuntimeError: Windows not yet supported for torch.compile

I got this error, any help?

ok, I fixed it, just disable torch.compile

Sadly triton is not yet supported for torch compile

Sign up or log in to comment