From e79464946fe504bb9521972eebe00f9ddd108324 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Mon, 19 Apr 2021 08:38:09 -0400 Subject: [PATCH] Fix load from config (#31) --- src/accelerate/commands/config/config_args.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accelerate/commands/config/config_args.py b/src/accelerate/commands/config/config_args.py index a05debfda75..0e115bdd410 100644 --- a/src/accelerate/commands/config/config_args.py +++ b/src/accelerate/commands/config/config_args.py @@ -44,7 +44,7 @@ def load_config_from_file(config_file): if config_file.endswith(".json"): if ( json.load(f).get("compute_environment", ComputeEnvironment.LOCAL_MACHINE) - is ComputeEnvironment.LOCAL_MACHINE + == ComputeEnvironment.LOCAL_MACHINE ): config_class = ClusterConfig else: @@ -53,7 +53,7 @@ def load_config_from_file(config_file): else: if ( yaml.safe_load(f).get("compute_environment", ComputeEnvironment.LOCAL_MACHINE) - is ComputeEnvironment.LOCAL_MACHINE + == ComputeEnvironment.LOCAL_MACHINE ): config_class = ClusterConfig else: