chore: refactor truthy check and fix mypy (#780)
Browse files
    	
        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 | 
| 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 | 
             
                )
         |