Skip to content

Commit

Permalink
chore: refactor truthy check and fix mypy (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 committed Oct 24, 2023
1 parent 6c81c61 commit 11d1d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

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
)
Expand Down

0 comments on commit 11d1d60

Please sign in to comment.