[Hardware][AMD][CI/Build][Doc] Upgrade to ROCm 6.1, Dockerfile improvements, test fixes (#5422)
This commit is contained in:
@@ -6,7 +6,7 @@ from typing import Dict, List, Optional, Set, Tuple
|
||||
from vllm.logger import init_logger
|
||||
from vllm.lora.request import LoRARequest
|
||||
from vllm.sequence import ExecuteModelRequest, SamplerOutput
|
||||
from vllm.utils import (enable_trace_function_call_for_thread,
|
||||
from vllm.utils import (enable_trace_function_call_for_thread, is_hip,
|
||||
update_environment_variables)
|
||||
|
||||
logger = init_logger(__name__)
|
||||
@@ -125,6 +125,14 @@ class WorkerWrapperBase:
|
||||
# overwriting CUDA_VISIBLE_DEVICES is desired behavior
|
||||
# suppress the warning in `update_environment_variables`
|
||||
del os.environ[key]
|
||||
if is_hip():
|
||||
hip_env_var = "HIP_VISIBLE_DEVICES"
|
||||
if hip_env_var in os.environ:
|
||||
logger.warning(
|
||||
"Ignoring pre-set environment variable `%s=%s` as "
|
||||
"%s has also been set, which takes precedence.",
|
||||
hip_env_var, os.environ[hip_env_var], key)
|
||||
os.environ.pop(hip_env_var, None)
|
||||
update_environment_variables(envs)
|
||||
|
||||
def init_worker(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user