vllm.ray.ray_env ¶
   RAY_NON_CARRY_OVER_ENV_VARS_FILE  module-attribute  ¶
 RAY_NON_CARRY_OVER_ENV_VARS_FILE = join(
    CONFIG_HOME, "ray_non_carry_over_env_vars.json"
)
  get_env_vars_to_copy ¶
 get_env_vars_to_copy(
    exclude_vars: set[str] | None = None,
    additional_vars: set[str] | None = None,
    destination: str | None = None,
) -> set[str]
Get the environment variables to copy to downstream Ray actors.
Example use cases: - Copy environment variables from RayDistributedExecutor to Ray workers. - Copy environment variables from RayDPClient to Ray DPEngineCoreActor.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
 exclude_vars  |   set[str] | None  |    A set of vllm defined environment variables to exclude from copying.  |   None  |  
 additional_vars  |   set[str] | None  |    A set of additional environment variables to copy. If a variable is in both exclude_vars and additional_vars, it will be excluded.  |   None  |  
 destination  |   str | None  |    The destination of the environment variables.  |   None  |  
Returns: A set of environment variables to copy.