transformers
Add ColQwen2 to 🤗 transformers
#35778
Merged

Add ColQwen2 to 🤗 transformers #35778

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

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone