Skip to content

Commit

Permalink
Fixes comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
yliu120 committed Nov 16, 2024
1 parent 662b827 commit 3c33434
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jax/_src/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def initialize(self,
if local_device_ids is None and (env_ids := os.environ.get('JAX_LOCAL_DEVICE_IDS')):
local_device_ids = list(map(int, env_ids.split(",")))

_any_is_none = lambda *args: any(arg is None for arg in args)
if _any_is_none(coordinator_address, num_processes, process_id, local_device_ids):
if None in (coordinator_address, num_processes, process_id, local_device_ids):
(coordinator_address, num_processes, process_id, local_device_ids) = (
clusters.ClusterEnv.auto_detect_unset_distributed_params(
coordinator_address,
Expand Down Expand Up @@ -192,7 +191,7 @@ def initialize(coordinator_address: str | None = None,
Otherwise, you must provide the ``coordinator_address``,
``num_processes``, ``process_id``, and ``local_device_ids`` arguments
to :func:`~jax.distributed.initialize`. When all four arguments are provided, cluster
envs auto detection will be skipped.
environment auto detection will be skipped.
Please note: on some systems, particularly HPC clusters that only access external networks
through proxy variables such as HTTP_PROXY, HTTPS_PROXY, etc., the call to
Expand Down

0 comments on commit 3c33434

Please sign in to comment.