chore: refactor truthy check and fix mypy (#780)

This commit is contained in:
NanoCode012
2023-10-24 12:28:40 +09:00
committed by GitHub
parent 6c81c61bc4
commit 11d1d607db

View File

@@ -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
)