Yih-Dar
691fd8fdde
Add Kosmos-2 model (#24709)
* Add KOSMOS-2 model
* update
* update
* update
* address review comment - 001
* address review comment - 002
* address review comment - 003
* style
* Apply suggestions from code review
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* fix
* address review comment - 004
* address review comment - 005
* address review comment - 006
* address review comment - 007
* address review comment - 008
* address review comment - 009
* address review comment - 010
* address review comment - 011
* update readme
* fix
* fix
* fix
* [skip ci] fix
* revert the change in _decode
* fix docstring
* fix docstring
* Update docs/source/en/model_doc/kosmos-2.md
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
* no more Kosmos2Tokenizer
* style
* remove "returned when being computed by the model"
* Apply suggestions from code review
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* UTM5 Atten
* fix attn mask
* use present_key_value_states instead of next_decoder_cache
* style
* conversion scripts
* conversion scripts
* conversion scripts
* Add _reorder_cache
* fix doctest and copies
* rename 1
* rename 2
* rename 3
* make fixup
* fix table
* fix docstring
* rename 4
* change repo_id
* remove tip
* update md file
* make style
* update md file
* put docs/source/en/model_doc/kosmos-2.md to slow
* update conversion script
* Use CLIPImageProcessor in Kosmos2Processor
* Remove Kosmos2ImageProcessor
* Remove to_dict in Kosmos2Config
* Remove files
* fix import
* Update conversion
* normalized=False
* Not using hardcoded values like <image>
* elt --> element
* Apply suggestion
* Not using hardcoded values like </image>
* No assert
* No nested functions
* Fix md file
* copy
* update doc
* fix docstring
* fix name
* Remove _add_remove_spaces_around_tag_tokens
* Remove dummy docstring of _preprocess_single_example
* Use `BatchEncoding`
* temp
* temp
* temp
* Update
* Update
* Make Kosmos2ProcessorTest a bit pretty
* Update gradient checkpointing
* Fix gradient checkpointing test
* Remove one liner remove_special_fields
* Simplify conversion script
* fix add_eos_token
* update readme
* update tests
* Change to microsoft/kosmos-2-patch14-224
* style
* Fix doc
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2023-10-30 13:32:17 +01:00
..
2023-08-25 11:56:17 +01:00
2023-10-27 11:23:06 +02:00
2023-10-30 13:32:17 +01:00
2023-10-23 14:49:48 +02:00
2022-04-04 10:25:46 -04:00
2023-10-30 13:32:17 +01:00
2023-09-04 11:15:12 +01:00
2023-09-25 12:58:11 +02:00
2023-09-19 00:41:16 +02:00
2023-09-18 13:33:01 +02:00
2023-06-20 18:07:47 -04:00
2023-09-04 11:16:49 +01:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-09-04 11:15:12 +01:00
2023-10-06 12:04:40 +01:00
2023-09-04 11:16:34 +01:00
2022-04-04 10:25:46 -04:00
2023-09-04 11:15:12 +01:00
2023-09-04 11:15:12 +01:00
2023-09-05 12:27:20 +01:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-09-29 09:43:39 +02:00
2023-10-24 13:10:06 -04:00
2023-09-12 18:01:22 +01:00
2023-10-30 13:32:17 +01:00
2023-09-29 09:42:21 +02:00
2023-10-16 16:09:50 +02:00
2023-10-19 16:53:28 +01:00
2023-09-04 11:15:12 +01:00
2023-09-04 11:15:12 +01:00
2023-06-20 18:07:47 -04:00
2023-08-18 07:58:59 +02:00
2022-04-04 10:25:46 -04:00
2023-06-20 18:07:47 -04:00
2023-08-18 19:08:03 +02:00
2023-07-25 07:44:24 -04:00
2023-06-20 18:07:47 -04:00
2023-09-22 17:42:10 +02:00
2023-10-03 13:44:46 +02:00
2023-06-20 18:07:47 -04:00
2023-08-10 13:25:00 +02:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-10-24 13:10:06 -04:00
2023-09-22 17:42:10 +02:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-07-24 08:57:24 -04:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-09-29 18:32:37 +01:00
2023-08-18 10:17:44 +02:00
2023-10-04 15:13:37 +02:00
2023-10-20 11:16:37 +02:00
2023-08-16 08:03:23 +02:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-07-25 22:10:06 +02:00
2023-06-20 18:07:47 -04:00
2023-10-24 16:49:26 +02:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-08-03 14:17:30 -07:00
2023-06-20 18:07:47 -04:00
2023-06-20 18:07:47 -04:00
2023-09-05 12:27:20 +01:00
2023-06-20 18:07:47 -04:00