kohya-ss / kohya-ss/sd-scripts
Error in swap_weight_devices_no_cuda When Running on Intel CPU
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in library/custom_offloading_utils.py at swap_weight_devices_no_cuda, line 78, and inspect the definition and other calls of synchronize_device(). Reproduce the Intel CPU offloading path from the report, then verify that it completes without the missing-argument TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100