mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-11 03:34:57 +08:00
[Misc] add usedforsecurity=False in md5 hash call (#26357)
Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
This commit is contained in:
parent
f8607863d8
commit
f377333bd7
@ -609,7 +609,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
|
|||||||
|
|
||||||
if model_path.exists():
|
if model_path.exists():
|
||||||
with open(model_path, "rb") as f:
|
with open(model_path, "rb") as f:
|
||||||
module_hash = hashlib.md5(f.read()).hexdigest()
|
module_hash = hashlib.md5(f.read(), usedforsecurity=False).hexdigest()
|
||||||
|
|
||||||
mi = self._load_modelinfo_from_cache(module_hash)
|
mi = self._load_modelinfo_from_cache(module_hash)
|
||||||
if mi is not None:
|
if mi is not None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user