Skip to content

Commit 4e231a7

Browse files
committed
[FEAT] Ensure xxhash compatibility by checking for xxh3_128_digest attribute
Signed-off-by: LuminolT <[email protected]>
1 parent c6ae405 commit 4e231a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vllm/utils/hashing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
import cbor2
1212
try:
13-
import xxhash as _xxhash
13+
import xxhash as _xxhash
14+
if not hasattr(_xxhash, "xxh3_128_digest"):
15+
_xxhash = None
1416
except ImportError: # pragma: no cover
1517
_xxhash = None
1618

0 commit comments

Comments
 (0)