mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 07:14:59 +08:00
[BugFix] Also consider RAY_EXPERIMENTAL_NOSET_* when storing compilation cache (#27294)
Signed-off-by: Hollow Man <hollowman@opensuse.org>
This commit is contained in:
parent
b186149e8e
commit
936643a868
23
vllm/envs.py
23
vllm/envs.py
@ -1544,6 +1544,29 @@ def compute_hash() -> str:
|
|||||||
|
|
||||||
factors = [environment_variables[key]() for key in environment_variables_to_hash]
|
factors = [environment_variables[key]() for key in environment_variables_to_hash]
|
||||||
|
|
||||||
|
ray_noset_env_vars = [
|
||||||
|
# Refer to
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/nvidia_gpu.py#L11
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/amd_gpu.py#L11
|
||||||
|
# https://github.com/ray-project/ray/blob/b97d21dab233c2bd8ed7db749a82a1e594222b5c/python/ray/_private/accelerators/amd_gpu.py#L10
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/npu.py#L12
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/hpu.py#L12
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/neuron.py#L14
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/tpu.py#L38
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/intel_gpu.py#L10
|
||||||
|
# https://github.com/ray-project/ray/blob/c584b1ea97b00793d1def71eaf81537d70efba42/python/ray/_private/accelerators/rbln.py#L10
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_ROCR_VISIBLE_DEVICES",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_HIP_VISIBLE_DEVICES",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_ASCEND_RT_VISIBLE_DEVICES",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_HABANA_VISIBLE_MODULES",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_NEURON_RT_VISIBLE_CORES",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_TPU_VISIBLE_CHIPS",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_ONEAPI_DEVICE_SELECTOR",
|
||||||
|
"RAY_EXPERIMENTAL_NOSET_RBLN_RT_VISIBLE_DEVICES",
|
||||||
|
]
|
||||||
|
factors.extend([os.getenv(var) for var in ray_noset_env_vars])
|
||||||
|
|
||||||
hash_str = hashlib.md5(str(factors).encode(), usedforsecurity=False).hexdigest()
|
hash_str = hashlib.md5(str(factors).encode(), usedforsecurity=False).hexdigest()
|
||||||
|
|
||||||
return hash_str
|
return hash_str
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user