]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
requirements : fix PyTorch uint64 compatibility (#15134)
authorDaniel Bevenius <redacted>
Thu, 7 Aug 2025 03:31:48 +0000 (05:31 +0200)
committerGitHub <redacted>
Thu, 7 Aug 2025 03:31:48 +0000 (05:31 +0200)
commit36d3f00e142696f708ab297b9f8f1c825594712d
tree2ed7499d0c223ca3faf0db270287e6c04d0dd3c7
parent5fd160bbd9d70b94b5b11b0001fd7f477005e4a0
requirements : fix PyTorch uint64 compatibility (#15134)

This commit addresses an issue with the convert_hf_to_gguf script
which is currently failing with:
```console
AttributeError: module 'torch' has no attribute 'uint64'
```

This occurred because safetensors expects torch.uint64 to be available
in the public API, but PyTorch 2.2.x only provides limited support for
unsigned types beyond uint8 it seems. The torch.uint64 dtype exists but
is not exposed in the standard torch namespace
(see pytorch/pytorch#58734).

PyTorch 2.4.0 properly exposes torch.uint64 in the public API, resolving
the compatibility issue with safetensors. This also required torchvision
to updated to =0.19.0 for compatibility.

Refs: https://huggingface.co/spaces/ggml-org/gguf-my-repo/discussions/186#68938de803e47d990aa087fb
Refs: https://github.com/pytorch/pytorch/issues/58734
requirements/requirements-convert_hf_to_gguf.txt
tools/mtmd/requirements.txt