sd-scripts
sd-scripts copied to clipboard
Error in swap_weight_devices_no_cuda When Running on Intel CPU
Hey everyone,
I'm trying to run a model with offloading on my Intel CPU, but I’m getting the following error:
File "C:\dev\AI\fluxgym\sd-scripts\library\custom_offloading_utils.py", line 78, in swap_weight_devices_no_cuda
synchronize_device()
TypeError: synchronize_device() missing 1 required positional argument: 'device'
System Information
Hardware: Intel(R) Core(TM) i7-1185G7 @ 3.00GHz 3.00 GHz OS: win 11 Ram :32.0 GB Python Version: Python 3.12.4 Torch Version: 2.6.0+cpu
hasn't been tested but if you put synchronize_device(device) it might work.