diffusers
diffusers copied to clipboard
fix "Expected all tensors to be on the same device, but found at least two devices" error
- when run
pytest -rA tests/models/unets/test_models_unet_2d_condition.py::UNet2DConditionModelTests::test_load_sharded_checkpoint_device_map_from_hub_localon 8 devices(CUDA, XPU), there will be a RuntimeError "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:4 and cuda:1!", fix it by moving to same device - enable one gpu-only case on accelerator(XPU test passed)
@sayakpaul , pls help review, thx.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
@SunMarc , could you pls help review? Thx very much.
@SunMarc , done thx, pls help review again.
@sayakpaul , pls help retrigger the ci, thx very much.