244c6805387c01208c0307fcf8895271074dde94,finetune/base.py,BaseModel,resolve_config,#BaseModel#,79

Before Change


        assert_valid_config(**kwargs)
        config = get_default_config()
        config.base_model = kwargs.get("base_model", config.base_model)
        if config.base_model in [GPTModel, GPT2Model, GPTModelSmall, OSCAR] and config.float_16_predict:
            LOGGER.warning("float_16_predict not supported by GPT and GPT2")
            config.float_16_predict = False
        auto_keys = []

After Change



        overrides = config.base_model.get_optimal_params(config)

        if not issubclass(config.base_model, _BaseBert) and config.float_16_predict:
            LOGGER.warning("float_16_predict only supported by bert based models")
            config.float_16_predict = False
                                            
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 244c6805387c01208c0307fcf8895271074dde94
Time: 2020-04-23
Author: benlt@hotmail.co.uk
File Name: finetune/base.py
Class Name: BaseModel
Method Name: resolve_config


Project Name: ray-project/ray
Commit Name: ebea5c41110303523045f46a0f08bd03101b51d5
Time: 2020-05-29
Author: suquark@gmail.com
File Name: python/ray/cloudpickle/cloudpickle_fast.py
Class Name:
Method Name: _class_getstate


Project Name: snorkel-team/snorkel
Commit Name: 6745a3090553371d3ddd0cf9ed3159cbc269f34d
Time: 2017-11-14
Author: ajratner@gmail.com
File Name: snorkel/learning/gen_learning.py
Class Name: GenerativeModel
Method Name: train


Project Name: ray-project/ray
Commit Name: f6883bf725caca57bcebcc94aeb93f6a94542984
Time: 2020-03-03
Author: suquark@gmail.com
File Name: python/ray/cloudpickle/cloudpickle_fast.py
Class Name:
Method Name: _class_getstate