transformers
Fix train_step, test_step and tests for CLIP
#18684
Merged

Fix train_step, test_step and tests for CLIP #18684

Rocketknight1 merged 32 commits into main from return_loss_fix
Rocketknight1
HuggingFaceDocBuilderDev
Rocketknight1
Rocketknight1 Rocketknight1 requested a review from gante gante 3 years ago
Rocketknight1 Rocketknight1 marked this pull request as ready for review 3 years ago
Rocketknight1 Rocketknight1 requested a review from ydshieh ydshieh 3 years ago
Rocketknight1 Rocketknight1 requested a review from LysandreJik LysandreJik 3 years ago
ydshieh
Rocketknight1
Rocketknight1
gante
gante approved these changes on 2022-08-18
Rocketknight1 Rocketknight1 requested a review from sgugger sgugger 3 years ago
Rocketknight1
Rocketknight1 Rocketknight1 force pushed to 307f34e0 3 years ago
amyeroberts
amyeroberts commented on 2022-08-18
sgugger
sgugger approved these changes on 2022-08-31
Rocketknight1 Fix train_step and test_step, correctly enable CLIP fit test
4a3db4bb
Rocketknight1 Stop using get_args on older Python versions
2af8bba9
Rocketknight1 Don't use get_origin either
1107ead3
Rocketknight1 UnionType is actually even newer, don't use that either
1a331b49
Rocketknight1 Apply the same fix to test_loss_computation
0afc9fa6
Rocketknight1 Just realized I was accidentally skipping a bunch of tests!
e90bfcde
Rocketknight1 Fix test_loss_computation for models without separable labels
bb9f3e68
Rocketknight1 Fix scalar losses in test_step and train_step
48e28899
Rocketknight1 Stop committing your breakpoints
ca0dce9c
Rocketknight1 Fix Swin loss shape
2192f81b
Rocketknight1 Fix Tapas loss shape
046560e5
Rocketknight1 Shape fixes for TAPAS, DeIT, HuBERT and ViTMAE
3459ac09
Rocketknight1 Add loss computation to TFMobileBertForPreTraining
52b9baf1
Rocketknight1 make fixup and move copied from statement
6c3953bb
Rocketknight1 make fixup and move copied from statement
27c5616d
Rocketknight1 Correct copied from
13c7d9c5
Rocketknight1 Add labels and next_sentence_label inputs to TFMobileBERT
b76bed70
Rocketknight1 Make sure total_loss is always defined
01459276
Rocketknight1 Update tests/test_modeling_tf_common.py
15b96596
Rocketknight1 Fix copied from
b3a8ce41
Rocketknight1 Ensure CTC models get labels in tests
317824d1
Rocketknight1 Ensure CTC models get labels in tests
24382d78
Rocketknight1 Fix tests for vit_mae
518ecae3
Rocketknight1 Fix tests for vit_mae
c2170487
Rocketknight1 Fix tests for vit_mae
f4c47937
Rocketknight1 Reduce batch size for wav2vec2 testing because it was causing OOM
bf10b3bf
Rocketknight1 Skip some TAPAS tests that are failing
eea79ad3
Rocketknight1 Skip a failing HuBERT test
7804a90b
Rocketknight1 make style
47b2fe61
Rocketknight1 Fix mobilebertforpretraining test
406c7fdc
Rocketknight1 Rocketknight1 force pushed to 406c7fdc 3 years ago
Rocketknight1 Skip Wav2Vec2 tests that use huge amounts of mem
4db13b9d
Rocketknight1 Skip keras_fit for Wav2Vec2 as well
641a20ba
Rocketknight1 Rocketknight1 merged 660e0b97 into main 3 years ago
Rocketknight1 Rocketknight1 deleted the return_loss_fix branch 3 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone