Skip to content

Commit

Permalink
Change last time
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Apr 8, 2024
1 parent 9b2de17 commit aec112f
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 @@ -183,7 +183,7 @@ def __init__(self, cpu: bool = False, **kwargs):
self.backend = backend
self.distributed_type = distributed_type
use_deepspeed = False
if not cpu and not self.backend == "xla":
if not cpu and self.backend != "xla":
if int(os.environ.get("LOCAL_RANK", -1)) != -1:
# Deal with spawning deepspeed
if os.environ.get("ACCELERATE_USE_DEEPSPEED", "false") == "true":
Expand Down

0 comments on commit aec112f

Please sign in to comment.