Add ColQwen2 to 🤗 transformers #35778
tonywu71
marked this pull request as draft 1 year ago
tonywu71
force pushed
from
025ca25a
to
48e0aa5a
1 year ago
tonywu71
force pushed
from
f6e19a82
to
adc0c1e2
1 year ago
tonywu71
marked this pull request as ready for review 1 year ago
tonywu71
marked this pull request as draft 1 year ago
tonywu71
force pushed
from
8fa761d3
to
13724464
1 year ago
tonywu71
force pushed
from
5ec97587
to
7cfd9dc5
1 year ago
tonywu71
marked this pull request as ready for review 1 year ago
tonywu71
force pushed
from
2982555e
to
24ada8c7
1 year ago
feat: add colqwen2 (wip)
551e46c0
tests: fix test_attention_outputs
154d8432
tests: reduce hidden size to accelerate tests
055eb5eb
tests: fix `test_attention_outputs` 🥳
c0c72482
fix: fix wrong parent class for `ColQwen2ForRetrievalOutput`
0a1e9f01
fix: minor typing and style changes
99a59617
chore: run `make style`
c7313658
feat: remove redundant `max_num_visual_tokens` attribute in `ColQwen2…
59857843
tests: tweak comments
c6567d49
style: apply ruff formatter
0cb74d9d
feat: move default values for `visual_prompt_prefix` and `query_prefix`
61099206
docs: update ColQwen2 model card
b0908478
docs: tweak model cards
607cd78e
docs: add required example config checkpoint
6c261cf5
tests: update expected scores in integration test
b027a9d6
docs: tweak quickstart snippets
0302b126
fix: address PR comments
5eaa32b1
tests: fix colqwen2 tests + tweak comment in colpali test
ebb89b53
tests: unskip useful tests
bdbaa2bc
fix: fix bug when `visual_prompt_prefix` or `query_prefix` is an empt…
6fbac2a0
fix: fix ColPali outputs when `return_dict == False`
6931500a
fix: fix issue with PaliGemma output not being a dict
985575cf
docs: set default dtype to bfloat16 in quickstart snippets
68ba7b89
fix: fix error when `return_dict=False` in ColPali and ColQwen2
bae3119a
tests: fix special tokens not being replaced in input_ids
7dcc1e05
style: fix lint
17882c2e
fix: `ColQwen2Processor`'s `padding_side` is now set from `processor_…
da93dcf9
fix: remove unused `padding_side` in ColQwen2 model
2b1ef888
docs: update ColQwen2's model doc
60d40339
fix: fix harcoded vlm backbone class in ColQwen2Config
bb27ef99
fix: remove `padding_side` from ColQwen2Processor as should fed from …
a31b2f30
docs: fix typo in model docstring
45fba971
docs: add illuin mention in model docs
78d051d9
fix: let `padding_size` be handled by `tokenizer_config.json`
ee9800be
docs: add colpali reference url in colqwen2's model doc
4f76803f
docs: add Hf mention in model docs
cb924e3a
docs: add late interaction mention in model docs
f8f8261d
docs: tweak colqwen2 model doc
824b331b
docs: update reference checkpoint for ColPali to v1.3
6dc1d227
docs: simplify quickstart snippets
d325c012
docs: remove redundant `.eval()`
61a578c8
refactor: use `can_return_tuple` decorator for ColPali and ColQwen2
ff59eb27
docs: fix copyright date
f48568b8
docs: add missing copyright in tests
45d1dbe5
fix: raise error when `initializer_range` is not in config
7b0f9004
docs: remove redundant `.eval()` in colpali doc
f171ed6b
fix: fix `get_text_config` now that Qwen2VL has a proper `text_config…
eaa797bf
tonywu71
force pushed
from
c97b77ac
to
eaa797bf
1 year ago
fix: add missing `initializer_range` attribute in `ColQwen2Config`
c8e360f9
fix: use `get_text_config` in `resize_token_embeddings`
14d7b5ce
Merge remote-tracking branch 'upstream/main' into add-colqwen2
0686b2a9
update colwen2 with auto_docstring
10b3ddbe
docs: fix wrong copyright year
bdef63f8
chore: remove `raise` as `initializer_range` has a default value in `…
4b7f635a
refactor: merge `inner_forward` into `forward`
c638c07e
Merge remote-tracking branch 'upstream/main' into add-colqwen2
30d20808
Refactor colqwen2 after refactoring of qwen2VL, use modular for model…
8277c43e
protect torch import in modular to protect in processing
86e06939
protect torch import in modular to protect in processing
c0a64427
Merge branch 'add-colqwen2' of https://github.com/tonywu71/transforme…
98a5338f
tests: fix hf model path in ColQwen2 integration test
4aa5aa08
docs: clarify `attn_implementation` and add comments
34ca1e7c
docs: add fallback snippet for using offline PIL dummy images
43af0ad9
docs: temporarily revert attn_implementation to `None` while sdpa is …
0356f3c6
docs: tweaks in colpali/colqwen2 quick start snippets
7a4218b1
fix: add missing flags to enable SDPA/Flex Attention in ColQwen2 model
58c7ff20
fix: add missing changes in modular file
3852c867
Merge remote-tracking branch 'upstream/main' into add-colqwen2
bd65ad3c
fix modeling tests
1bc3dea9
tonywu71
deleted the add-colqwen2 branch 72 days ago
tonywu71
restored the head branch 72 days ago
tonywu71
deleted the add-colqwen2 branch 72 days ago
Assignees
No one assigned
Labels
New model
Multimodal
Login to write a write a comment.
Login via GitHub