Yih-Dar
95b3ec3bc9
Add FlaxVisionEncoderDecoderModel (#13359)
* Start the work on FlaxVisionEncoderDecoderModel
* Add FlaxVisionEncoderDecoderModel
* Add VisionEncoderDecoderConfig
* Make FlaxVisionEncoderDecoderModel visible to transformers
* Add test
* Fix wrong getattr usage
* Fix tests
* Add FlaxAutoModelForVision2Seq
* Expose FLAX_MODEL_FOR_VISION_2_SEQ_MAPPING
* clean-up
* add integration test
* update expected logits
* update expected scores
* Add ViT2GPT2ModelIntegrationTest + some cleaning
* Add projection layer + PT/Flax equivalence tests
* Fix import
* minor changes
* make test slow again
* Apply suggestions
* Add modeling_flax_vision_encoder_decoder to _ignore_modules in get_model_modules()
* fix copies
* Apply suggestions from code review
Co-authored-by: Suraj Patil <surajp815@gmail.com>
* split long strings in multiple lines
* decoder_input_ids can't be None
* Add back test_configuration_tie
* Remove attention_mask parameter
* fix test - encoder_last_hidden_state should be encoder_outputs.last_hidden_state instead of the projected vector
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Remove more encoder_attention_mask
* remove encoder_attention_mask when calling self.decode (in FlaxVisionEncoderDecoderModule)
* Fix style + pass 1s instead of None as encoder_attention_mask
* fix init_weights
* pass None for encoder_attention_mask
* pass 1s instead of None as encoder_attention_mask
* Fix doc style
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: Suraj Patil <surajp815@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2021-11-09 15:14:28 +05:30
..
2021-10-29 14:51:05 -04:00
2021-10-22 12:57:48 -07:00
2021-08-12 05:49:02 -04:00
2021-10-29 11:34:18 +02:00
2021-11-09 15:14:28 +05:30
2021-10-25 07:48:02 -04:00
2021-10-25 07:48:02 -04:00
2021-06-16 15:14:53 -04:00
2021-01-05 06:18:48 -05:00
2021-10-25 07:48:02 -04:00
2021-10-28 12:56:46 -04:00
2020-06-17 14:01:10 -04:00
2021-10-25 07:48:02 -04:00
2021-10-25 07:48:02 -04:00
2021-10-25 07:48:02 -04:00
2020-05-27 11:36:55 -04:00
2021-04-05 10:51:16 -04:00
2020-02-25 13:48:24 -05:00
2021-06-15 06:37:37 -04:00
2021-11-09 15:14:28 +05:30
2021-10-25 07:40:44 -04:00
2021-06-14 13:34:32 -07:00
2021-10-25 07:48:02 -04:00
2021-06-15 06:37:37 -04:00
2021-04-21 11:11:20 -04:00
2020-04-06 14:32:39 -04:00
2021-10-25 07:48:02 -04:00
2021-09-22 07:51:38 -04:00
2021-09-13 13:32:32 +02:00
2020-12-23 10:15:49 -05:00
2021-11-03 17:43:19 -04:00
2021-10-21 17:00:26 -04:00
2021-10-04 11:57:54 -04:00
2021-09-10 14:47:48 +02:00
2021-07-12 18:02:51 +02:00
2021-10-26 11:22:22 +02:00
2021-10-20 15:10:57 -04:00
2021-09-30 09:26:49 -07:00
2021-10-25 07:40:44 -04:00
2021-10-25 15:04:36 +01:00
2021-04-14 08:39:23 -07:00