You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py", line 1070, in __call__
noise_pred = self.unet(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py", line 170, in new_forward
output = module._old_forward(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/models/unets/unet_motion_model.py", line 2179, in forward
sample, res_samples = downsample_block(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/models/unets/unet_motion_model.py", line 546, in forward
hidden_states = motion_module(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/models/unets/unet_motion_model.py", line 194, in forward
hidden_states = block(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/pipelines/free_noise_utils.py", line 131, in forward
intermediate_tensor_or_tensor_tuple = self.module(*args, **inputs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ubuntu/.local/lib/python3.10/site-packages/diffusers/models/attention.py", line 1115, in forward
norm_hidden_states = self.norm1(hidden_states_chunk)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/normalization.py", line 217, in forward
return F.layer_norm(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py", line 2900, in layer_norm
return torch.layer_norm(
File "/usr/local/lib/python3.10/dist-packages/torch/_decomp/__init__.py", line 88, in _fn
return f(*args, **kwargs, out=None if is_none else out_kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_prims_common/wrappers.py", line 273, in _fn
result = fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_refs/__init__.py", line 3249, in native_layer_norm
out = out * weight + bias
File "/usr/local/lib/python3.10/dist-packages/torch/_prims_common/wrappers.py", line 273, in _fn
result = fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_prims_common/wrappers.py", line 141, in _fn
result = fn(**bound.arguments)
File "/usr/local/lib/python3.10/dist-packages/torch/_refs/__init__.py", line 1050, in _ref
output = prim(a, b)
File "/usr/local/lib/python3.10/dist-packages/torch/_refs/__init__.py", line 1657, in mul
return prims.mul(a, b)
File "/usr/local/lib/python3.10/dist-packages/torch/_ops.py", line 716, in __call__
return self._op(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_library/fake_impl.py", line 93, in meta_kernel
return fake_impl_holder.kernel(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_library/utils.py", line 20, in __call__
return self.func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/library.py", line 1151, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_library/custom_ops.py", line 614, in fake_impl
return self._abstract_fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_prims/__init__.py", line 402, in _prim_elementwise_meta
utils.check_same_device(*args_, allow_cpu_scalar_tensors=True)
File "/usr/local/lib/python3.10/dist-packages/torch/_prims_common/__init__.py", line 742, in check_same_device
raise RuntimeError(msg)
RuntimeError: Tensor on device meta is not on the expected device xla:0!
I want to ask how to use pipeline.enable_sequential_cpu_offload(device=torch_xla.core.xla_model.xla_device()) correctly?
The text was updated successfully, but these errors were encountered:
❓ Questions and Help
pipeline.enable_sequential_cpu_offload(device=torch_xla.core.xla_model.xla_device())
cause:
I want to ask how to use pipeline.enable_sequential_cpu_offload(device=torch_xla.core.xla_model.xla_device()) correctly?
The text was updated successfully, but these errors were encountered: