@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / ed2e464653
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 15, 13:30 UTC

Addendum Fix to support FIPS enabled machines with MD5 hashing (#17043)

Signed-off-by: sydarb <areebsyed237@gmail.com>

Areeb Syed committed Apr 24, 2025 at 08:25 UTC ed2e464653ab552c54c6da5c2b69d31bd61ba765
2 files changed +4 -2
vllm/distributed/kv_transfer/kv_connector/v1/shared_storage_connector.py
+2 -1
@@ -357,7 +357,8 @@ class SharedStorageConnector(KVConnectorBase_V1):
357 ids.
358 """
359 input_ids_bytes = input_ids.numpy().tobytes()
360 - input_ids_hash = hashlib.md5(input_ids_bytes).hexdigest()
360 + input_ids_hash = hashlib.md5(input_ids_bytes,
361 + usedforsecurity=False).hexdigest()
362 foldername = os.path.join(self._storage_path, input_ids_hash)
363 if create_folder:
364 os.makedirs(foldername, exist_ok=True)
vllm/envs.py
+2 -1
@@ -794,6 +794,7 @@ def compute_hash() -> str:
794 if key in environment_variables:
795 factorize(key)
796
797 - hash_str = hashlib.md5(str(factors).encode()).hexdigest()
797 + hash_str = hashlib.md5(str(factors).encode(),
798 + usedforsecurity=False).hexdigest()
799
800 return hash_str