• Yih-Dar's avatar
    Fix tf.concatenate + test past_key_values for TF models (#15774) · 8635407b
    Yih-Dar authored
    
    
    * fix wrong method name tf.concatenate
    
    * add tests related to causal LM / decoder
    
    * make style and quality
    
    * clean-up
    
    * Fix TFBertModel's extended_attention_mask when past_key_values is provided
    
    * Fix tests
    
    * fix copies
    
    * More tf.int8 -> tf.int32 in TF test template
    
    * clean-up
    
    * Update TF test template
    
    * revert the previous commit + update the TF test template
    
    * Fix TF template extended_attention_mask when past_key_values is provided
    
    * Fix some styles manually
    
    * clean-up
    
    * Fix ValueError: too many values to unpack in the test
    
    * Fix more: too many values to unpack in the test
    
    * Add a comment for extended_attention_mask when there is past_key_values
    
    * Fix TFElectra extended_attention_mask when past_key_values is provided
    
    * Add tests to other TF models
    
    * Fix for TF Electra test: add prepare_config_and_inputs_for_decoder
    
    * Fix not passing training arg to lm_head in TFRobertaForCausalLM
    
    * Fix tests (with past) for TF Roberta
    
    * add testing for pask_key_values for TFElectra model
    Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
    8635407b
test_modeling_tf_bert.py 29.3 KB