Nanobit commited on
Commit
11d1d60
1 Parent(s): 6c81c61

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

Browse files
Files changed (1) hide show
  1. src/axolotl/utils/models.py +1 -1
src/axolotl/utils/models.py CHANGED
@@ -31,7 +31,7 @@ LOG = logging.getLogger("axolotl")
31
 
32
  def load_model_config(cfg):
33
  model_config_name = cfg.base_model_config or cfg.base_model
34
- trust_remote_code: bool = False or cfg.trust_remote_code
35
  return AutoConfig.from_pretrained(
36
  model_config_name, trust_remote_code=trust_remote_code
37
  )
 
31
 
32
  def load_model_config(cfg):
33
  model_config_name = cfg.base_model_config or cfg.base_model
34
+ trust_remote_code = cfg.trust_remote_code is True
35
  return AutoConfig.from_pretrained(
36
  model_config_name, trust_remote_code=trust_remote_code
37
  )