mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-30 17:07:09 +08:00
[LMCache][Example] Align the PYTHONHASHSEED for prefillers and decoders for KV chunks hashing (#21161)
Signed-off-by: zejunchen-zejun <zejun.chen@amd.com>
This commit is contained in:
parent
46ae7f6666
commit
50f2aae1b4
@ -15,6 +15,14 @@ else
|
|||||||
MODEL=$2
|
MODEL=$2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# The prefillers and decoders in LMCache use the same hash seed for all chunk keys.
|
||||||
|
# This seed must be aligned so that decoders can identify and retrieve KV cache
|
||||||
|
# entries stored by prefillers.
|
||||||
|
#
|
||||||
|
# WARNING: Using a fixed hash seed is insecure and makes the application vulnerable to
|
||||||
|
# denial-of-service attacks. In a production environment, this should be set to a
|
||||||
|
# secure random value. This is set to a fixed value for demonstration purposes only.
|
||||||
|
export PYTHONHASHSEED=${VLLM_PYTHON_HASH_SEED:-123}
|
||||||
|
|
||||||
if [[ $1 == "prefiller" ]]; then
|
if [[ $1 == "prefiller" ]]; then
|
||||||
# Prefiller listens on port 8100
|
# Prefiller listens on port 8100
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user