Skip to content

Commit

Permalink
Parenthesis on xpu_available (#2639)
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr authored Apr 9, 2024
1 parent 6386f70 commit df485ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __init__(self, cpu: bool = False, **kwargs):
)
from deepspeed import comm as dist

if is_xpu_available and is_ccl_available():
if is_xpu_available() and is_ccl_available():
os.environ["CCL_PROCESS_LAUNCHER"] = "none"
os.environ["CCL_LOCAL_SIZE"] = os.environ.get("LOCAL_WORLD_SIZE", "1")
os.environ["CCL_LOCAL_RANK"] = os.environ.get("LOCAL_RANK", "0")
Expand Down

0 comments on commit df485ae

Please sign in to comment.