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
dc2ceca5
Unverified
Commit
dc2ceca5
authored
Apr 26, 2025
by
Ning Xie
Committed by
GitHub
Apr 26, 2025
Browse files
[BUGFIX] use random for NONE_HASH only when PYTHONHASHSEED not set (#17088)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
f8acd01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/core/kv_cache_utils.py
vllm/v1/core/kv_cache_utils.py
+1
-1
No files found.
vllm/v1/core/kv_cache_utils.py
View file @
dc2ceca5
...
...
@@ -43,7 +43,7 @@ class BlockHashType(NamedTuple):
# This aligns with the behavior of Python's hash() function, which also uses
# a random seed if PYTHONHASHSEED is not set.
NONE_HASH
=
int
.
from_bytes
(
os
.
urandom
(
32
),
byteorder
=
"big"
)
if
os
.
getenv
(
'PYTHONHASHSEED'
)
is
not
None
else
sha256
(
os
.
getenv
(
'PYTHONHASHSEED'
))
'PYTHONHASHSEED'
)
is
None
else
sha256
(
os
.
getenv
(
'PYTHONHASHSEED'
))
class
PrefixCachingMetrics
:
...
...
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