ray.rllib.algorithms.algorithm_config.AlgorithmConfig.python_environment#

AlgorithmConfig.python_environment(*, extra_python_environs_for_driver: dict | None = <ray.rllib.utils.from_config._NotProvided object>, extra_python_environs_for_worker: dict | None = <ray.rllib.utils.from_config._NotProvided object>) AlgorithmConfig[source]#

Sets the config’s python environment settings.

Parameters:
  • extra_python_environs_for_driver – Any extra python env vars to set in the algorithm’s process, e.g., {“OMP_NUM_THREADS”: “16”}.

  • extra_python_environs_for_worker – The extra python environments need to set for worker processes.

Returns:

This updated AlgorithmConfig object.