Describe the bug
When using
import safetensors:
then
safetensors.torch:
|
return safetensors.torch.load_file(checkpoint_file, device="cpu") |
Bug reported
AttributeError: module 'safetensors' has no attribute 'torch'.
Maybe we can change
from import safetensors
to import safetensors.torch as safetensors_torch
Reproduction
import safetensors
safetensors.torch
Logs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'safetensors' has no attribute 'torch'
System Info
diffusers==0.23.0
safetensors==0.4.1
Who can help?
No response
Describe the bug
When using
import safetensors:diffusers/src/diffusers/models/modeling_utils.py
Line 25 in f72b28c
then
safetensors.torch:diffusers/src/diffusers/models/modeling_utils.py
Line 111 in f72b28c
Bug reported
AttributeError: module 'safetensors' has no attribute 'torch'.Maybe we can change
from import safetensors
to import safetensors.torch as safetensors_torch
Reproduction
import safetensors
safetensors.torch
Logs
System Info
diffusers==0.23.0
safetensors==0.4.1
Who can help?
No response