sd-scripts icon indicating copy to clipboard operation
sd-scripts copied to clipboard

Error in swap_weight_devices_no_cuda When Running on Intel CPU

Open gal-dahan opened this issue 10 months ago • 1 comments

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

gal-dahan avatar Mar 08 '25 07:03 gal-dahan

hasn't been tested but if you put synchronize_device(device) it might work.

rockerBOO avatar Mar 09 '25 05:03 rockerBOO