From 11d1d607db960137e91c4f03007f596936c0efd5 Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Tue, 24 Oct 2023 12:28:40 +0900 Subject: [PATCH] chore: refactor truthy check and fix mypy (#780) --- src/axolotl/utils/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axolotl/utils/models.py b/src/axolotl/utils/models.py index ea21ce8f9..d907a194b 100644 --- a/src/axolotl/utils/models.py +++ b/src/axolotl/utils/models.py @@ -31,7 +31,7 @@ LOG = logging.getLogger("axolotl") def load_model_config(cfg): model_config_name = cfg.base_model_config or cfg.base_model - trust_remote_code: bool = False or cfg.trust_remote_code + trust_remote_code = cfg.trust_remote_code is True return AutoConfig.from_pretrained( model_config_name, trust_remote_code=trust_remote_code )