• elk-cloner's avatar
    Tf longformer for sequence classification (#8231) · 5362bb8a
    elk-cloner authored
    
    
    * working on LongformerForSequenceClassification
    
    * add TFLongformerForMultipleChoice
    
    * add TFLongformerForTokenClassification
    
    * use add_start_docstrings_to_model_forward
    
    * test TFLongformerForSequenceClassification
    
    * test TFLongformerForMultipleChoice
    
    * test TFLongformerForTokenClassification
    
    * remove test from repo
    
    * add test and doc for TFLongformerForSequenceClassification, TFLongformerForTokenClassification, TFLongformerForMultipleChoice
    
    * add requested classes to modeling_tf_auto.py
    update dummy_tf_objects
    fix tests
    fix bugs in requested classes
    
    * pass all tests except test_inputs_embeds
    
    * sync with master
    
    * pass all tests except test_inputs_embeds
    
    * pass all tests
    
    * pass all tests
    
    * work on test_inputs_embeds
    
    * fix style and quality
    
    * make multi choice work
    
    * fix TFLongformerForTokenClassification signature
    
    * fix TFLongformerForMultipleChoice, TFLongformerForSequenceClassification signature
    
    * fix mult choice
    
    * fix mc hint
    
    * fix input embeds
    
    * fix input embeds
    
    * refactor input embeds
    
    * fix copy issue
    
    * apply sylvains changes and clean more
    Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
    5362bb8a
test_modeling_tf_longformer.py 29.6 KB