mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 05:35:01 +08:00
Addendum Fix to support FIPS enabled machines with MD5 hashing (#17043)
Signed-off-by: sydarb <areebsyed237@gmail.com>
This commit is contained in:
parent
2c8ed8ee48
commit
ed2e464653
@ -357,7 +357,8 @@ class SharedStorageConnector(KVConnectorBase_V1):
|
|||||||
ids.
|
ids.
|
||||||
"""
|
"""
|
||||||
input_ids_bytes = input_ids.numpy().tobytes()
|
input_ids_bytes = input_ids.numpy().tobytes()
|
||||||
input_ids_hash = hashlib.md5(input_ids_bytes).hexdigest()
|
input_ids_hash = hashlib.md5(input_ids_bytes,
|
||||||
|
usedforsecurity=False).hexdigest()
|
||||||
foldername = os.path.join(self._storage_path, input_ids_hash)
|
foldername = os.path.join(self._storage_path, input_ids_hash)
|
||||||
if create_folder:
|
if create_folder:
|
||||||
os.makedirs(foldername, exist_ok=True)
|
os.makedirs(foldername, exist_ok=True)
|
||||||
|
|||||||
@ -794,6 +794,7 @@ def compute_hash() -> str:
|
|||||||
if key in environment_variables:
|
if key in environment_variables:
|
||||||
factorize(key)
|
factorize(key)
|
||||||
|
|
||||||
hash_str = hashlib.md5(str(factors).encode()).hexdigest()
|
hash_str = hashlib.md5(str(factors).encode(),
|
||||||
|
usedforsecurity=False).hexdigest()
|
||||||
|
|
||||||
return hash_str
|
return hash_str
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user