@@ -51,14 +51,6 @@ class RayWorkerMetaData:
5151class  RayDistributedExecutor (DistributedExecutorBase ):
5252    """Ray-based distributed executor""" 
5353
54-     # These env vars are used at installation time, therefore are NOT copied 
55-     # from the driver to the workers 
56-     INSTALL_TIME_ENV_VARS  =  {
57-         "VLLM_TARGET_DEVICES" , "MAX_JOBS" , "NVCC_THREADS" ,
58-         "VLLM_USE_PRECOMPILED" , "CMAKE_BUILD_TYPE" , "VERBOSE" ,
59-         "VLLM_CONFIG_ROOT" 
60-     }
61- 
6254    # These env vars are worker-specific, therefore are NOT copied 
6355    # from the driver to the workers 
6456    WORKER_SPECIFIC_ENV_VARS  =  {
@@ -339,8 +331,8 @@ def sort_by_driver_then_worker_ip(item: RayWorkerMetaData):
339331        # Environment variables to copy from driver to workers 
340332        env_vars_to_copy  =  [
341333            v  for  v  in  envs .environment_variables 
342-             if  v  not  in self .INSTALL_TIME_ENV_VARS   and   v   not   in   self . 
343-             WORKER_SPECIFIC_ENV_VARS   and  v  not  in self .non_carry_over_env_vars 
334+             if  v  not  in self .WORKER_SPECIFIC_ENV_VARS 
335+             and  v  not  in self .non_carry_over_env_vars 
344336        ]
345337
346338        # Copy existing env vars to each worker's args 
@@ -355,6 +347,9 @@ def sort_by_driver_then_worker_ip(item: RayWorkerMetaData):
355347        logger .info (
356348            "Copying the following environment variables to workers: %s" ,
357349            [v  for  v  in  env_vars_to_copy  if  v  in  os .environ ])
350+         logger .info (
351+             "If certain env vars should NOT be copied to workers, add them to " 
352+             "%s file" , self .non_carry_over_env_vars_file )
358353
359354        self ._env_vars_for_all_workers  =  (
360355            all_args_to_update_environment_variables )
0 commit comments