...
File "/root/fuzzai-env/lib/python3.10/site-packages/transformers/pytorch_utils.py", line 21, in <module>
from safetensors.torch import storage_ptr, storage_size
File "/root/fuzzai-env/lib/python3.10/site-packages/safetensors/torch.py", line 439, in <module>
torch.uint64: 8,
File "/root/fuzzai-env/lib/python3.10/site-packages/torch/__init__.py", line 1938, in __getattr__
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
AttributeError: module 'torch' has no attribute 'uint64'
...
RuntimeError: Failed to import transformers.generation.utils because of the following error:
module 'torch' has no attribute 'uint64'
Description
fuzzyai -hcrashes immediately during import. The crash originates fromsafetensorsimportingtorch.uint64, which PyTorch does not provide. This looks like a dependency-compatibility problem introduced by newersafetensors(and transitively viatransformers), not user code.safetensors < 0.5.0or gating/lazy-importing local LLM providers so heavy deps aren’t imported unless used.Environment
pip install git+https://github.com/cyberark/FuzzyAI.git(resolved to commit2d1d4e6bfc5fbc3b5349f6387d1353f125809402)fuzzyai==1.0.0torch==2.2.2transformers==4.51.3safetensors==0.6.1sentence-transformers==2.7.0Steps to reproduce
Expected behavior
Actual behavior
AttributeError: module 'torch' has no attribute 'uint64'.Traceback (excerpt)
Workarounds tested
safetensorsresolves the crash:Proposed fixes
pyproject.toml/requirements:safetensors>=0.4.3,<0.5.0