transformers
Add TF port of BLIP
#22090
Merged

Add TF port of BLIP #22090

Rocketknight1 merged 57 commits into main from add_tf_blip
Rocketknight1
HuggingFaceDocBuilderDev
Rocketknight1 Rocketknight1 marked this pull request as ready for review 2 years ago
Rocketknight1 Rocketknight1 requested a review from sgugger sgugger 2 years ago
Rocketknight1 Rocketknight1 requested a review from younesbelkada younesbelkada 2 years ago
Rocketknight1 Rocketknight1 requested a review from amyeroberts amyeroberts 2 years ago
Rocketknight1 Rocketknight1 requested a review from gante gante 2 years ago
Rocketknight1
Rocketknight1 Rocketknight1 force pushed 2 years ago
Rocketknight1 Rocketknight1 force pushed to 120d189f 2 years ago
amyeroberts
amyeroberts commented on 2023-03-24
gante
gante commented on 2023-03-25
sgugger
Rocketknight1
Rocketknight1
Rocketknight1
gante
gante commented on 2023-03-29
Rocketknight1
Rocketknight1 Initial commit
98b2afda
Rocketknight1 more stash commit
e557c346
Rocketknight1 Yet another stash commit
87767b0a
Rocketknight1 yet more stash commit
d86ec346
Rocketknight1 Mostly working except for docs / repo consistency
35deb284
Rocketknight1 Stop importing model list from torch file
0a720e4c
Rocketknight1 Add TF BLIP models to docs
490fc637
Rocketknight1 Add auto classes
6dc06bbc
Rocketknight1 Move get_text_features and get_image_features
9fd4b76b
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
07f99eb5
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
8cfc37df
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
1c47a2f1
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip_text.py
70cfe55e
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
2024f5ec
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
cc1694db
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
f31e96bd
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
e12e3052
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
2d622f66
Rocketknight1 Update tests/models/blip/test_modeling_tf_blip.py
ad2c87cc
Rocketknight1 Update tests/models/blip/test_modeling_tf_blip.py
6b781dfb
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
dab565b7
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
ee823fcd
Rocketknight1 Update tests/models/blip/test_modeling_tf_blip_text.py
d6c58694
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip_text.py
cf307fa4
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
0289c286
Rocketknight1 Use channels_last convolutions in TF (better performance + compatibil…
c4a4b62d
Rocketknight1 Remove _shape function
3a082f8c
Rocketknight1 Move multi-line statement to one line in PT + TF
8e73e08f
Rocketknight1 Specify tf.keras.layers instead of importing from it
7d0f73b2
Rocketknight1 Remove test_gradient_checkpointing and empty test_training methods
4ec371b7
Rocketknight1 move some multi-line statements to one line
561d2f8b
Rocketknight1 Update docstring for generate
076948be
Rocketknight1 Remove pruned heads set
429c25ee
Rocketknight1 Remove self.seq_len_dim
30862572
Rocketknight1 Fixed issues with loss computation, should resolve some tests. Also e…
adb03307
Rocketknight1 ensure original model follows config in more cases
fba23856
Rocketknight1 Rocketknight1 force pushed to fba23856 2 years ago
Rocketknight1 Skip the same cross-attention tests in the PT tests - didn't realize …
f6c328ed
Rocketknight1 Add training args throughout the models and layers
4d71a053
Rocketknight1 make fixup
7239db57
Rocketknight1 Fix docstring for inputs_embeds
09592b22
Rocketknight1 Add docstring for is_decoder
d4a6fa60
Rocketknight1 Add docstrings to text models
60f078c6
Rocketknight1 Remove redundant computation
e6a7851c
Rocketknight1 Add unpack_inputs / keras_serializable
f3062b14
Rocketknight1 Add modeling_tf_blip to doctests
77e365ee
Rocketknight1 Add config classes for keras serialization
6fff45c9
Rocketknight1
Rocketknight1
gante
gante approved these changes on 2023-03-30
sgugger
sgugger commented on 2023-03-30
Rocketknight1 Changes to allow model porting with pt-to-tf
34463eae
Rocketknight1
Rocketknight1 Quick fix to decoder head and test tweaks
60b7fb7e
Rocketknight1 Revert an issue with masking the embeddings outputs
2a7f52de
Rocketknight1 Allow missing keys in some equivalence tests (for unused layers)
d962ac6b
Rocketknight1 Add tf-pt equivalence tests back in
0a43f85c
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip.py
09095d1c
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip_text.py
dd88c83b
Rocketknight1 Update src/transformers/models/blip/modeling_tf_blip_text.py
d0fd3d4b
Rocketknight1 make fixup
9efd53c1
Rocketknight1 Refactor invert_attention_mask out into tf_utils
afd5a9cf
Rocketknight1
sgugger
sgugger commented on 2023-04-03
Rocketknight1
sgugger
Rocketknight1 Re-enable cross-tests on the PT side too
41fe5e19
sgugger
sgugger approved these changes on 2023-04-04
gante
gante approved these changes on 2023-04-04
Rocketknight1
Rocketknight1 Rocketknight1 merged 5f3ea66b into main 2 years ago
Rocketknight1 Rocketknight1 deleted the add_tf_blip branch 2 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone