@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / f377333bd7
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 14, 05:30 UTC

[Misc] add `usedforsecurity=False` in md5 hash call (#26357)

Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>

Daniele committed Oct 8, 2025 at 12:18 UTC f377333bd7da3db834d7f8ec5f3dd3e61206b61c
1 file changed +1 -1
vllm/model_executor/models/registry.py
+1 -1
@@ -609,7 +609,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
609
610 if model_path.exists():
611 with open(model_path, "rb") as f:
612 - module_hash = hashlib.md5(f.read()).hexdigest()
612 + module_hash = hashlib.md5(f.read(), usedforsecurity=False).hexdigest()
613
614 mi = self._load_modelinfo_from_cache(module_hash)
615 if mi is not None: