Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
ed2e4646
Unverified
Commit
ed2e4646
authored
Apr 24, 2025
by
Areeb Syed
Committed by
GitHub
Apr 23, 2025
Browse files
Addendum Fix to support FIPS enabled machines with MD5 hashing (#17043)
Signed-off-by:
sydarb
<
areebsyed237@gmail.com
>
parent
2c8ed8ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
vllm/distributed/kv_transfer/kv_connector/v1/shared_storage_connector.py
...d/kv_transfer/kv_connector/v1/shared_storage_connector.py
+2
-1
vllm/envs.py
vllm/envs.py
+2
-1
No files found.
vllm/distributed/kv_transfer/kv_connector/v1/shared_storage_connector.py
View file @
ed2e4646
...
@@ -357,7 +357,8 @@ class SharedStorageConnector(KVConnectorBase_V1):
...
@@ -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
)
...
...
vllm/envs.py
View file @
ed2e4646
...
@@ -794,6 +794,7 @@ def compute_hash() -> str:
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment