transformers
logits_to_keep bool mask for all ForXXX classes
#48825
Merged

logits_to_keep bool mask for all ForXXX classes #48825

jp1924
jp1924 feat(gemma4): bool mask logits_to_keep, expose last_hidden_state
e9016e02
Rocketknight1
jp1924 feat(gemma4): extend logits_to_keep mask support to all ForXXX classe…
7cc36012
jp1924 jp1924 force pushed from 1da2b43e to 7cc36012 62 days ago
jp1924 jp1924 changed the title [Gemma4] Support bool mask for `logits_to_keep`, expose `last_hidden_state` logits_to_keep bool mask for all ForXXX classes, expose last_hidden_state, fix negative output_hidden_states indices 62 days ago
VimalN2005
zucchini-nlp
jp1924 feat: extend logits_to_keep bool-mask support to all ForCausalLM/ForC…
2c987eae
jp1924 remove last_hidden_state field, rely on output_hidden_states indices …
8fa79042
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
f442d49a
jp1924 jp1924 marked this pull request as ready for review 61 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 61 days ago
github-actions github-actions requested a review from zucchini-nlp zucchini-nlp 61 days ago
jp1924
jp1924
jp1924 revert CSM to original logits_to_keep handling, drop stray gemma4-onl…
2ecaad5b
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
f04e87b8
zucchini-nlp zucchini-nlp requested a review from vasqu vasqu 61 days ago
jp1924
vasqu
vasqu commented on 2026-09-18
jp1924
vasqu
jp1924 revert output_capturing.py
57f5cd1a
jp1924
vasqu
jp1924
vasqu
jp1924
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
f71a9d2b
vasqu
jp1924 Add: slice_logits_to_keep to modeling_utils.py
413a3f17
jp1924 apply to `bit`, `falcon`, `hyperclovax`, `hyperclovax_vision_v2`, `ne…
b0e0e102
jp1924
jp1924
jp1924 Add: 2d idx process
b0d70b78
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
23f3e3bf
vasqu
vasqu commented on 2026-10-19
vasqu
jp1924 Address review feedback: https://github.com/huggingface/transformers/…
dc4efdbc
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
597d3719
jp1924 jp1924 requested a review from vasqu vasqu 30 days ago
vasqu
vasqu approved these changes on 2026-10-19
HuggingFaceDocBuilderDev
jp1924
vasqu
jp1924
jp1924 Address feedback: https://github.com/huggingface/transformers/pull/48…
9b41da20
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
953f38a6
jp1924 jp1924 requested a review from vasqu vasqu 30 days ago
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
db521a1c
jp1924
vasqu
vasqu commented on 2026-10-20
jp1924 Address feedback: https://github.com/huggingface/transformers/pull/48…
a45225a8
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
1534479a
vasqu
jp1924 jp1924 changed the title logits_to_keep bool mask for all ForXXX classes, expose last_hidden_state, fix negative output_hidden_states indices logits_to_keep bool mask for all ForXXX classes 29 days ago
Cyrilvallez
Cyrilvallez approved these changes on 2026-10-20
jp1924 Update src/transformers/modeling_utils.py
f12a916e
jp1924 Merge branch 'main' into feat/gemma-4-mask-last
cdc10868
jp1924 Update src/transformers/modeling_utils.py
6d6dee54
jp1924 jp1924 requested a review from Cyrilvallez Cyrilvallez 29 days ago
jp1924 Apply slice_logits_to_keep to the models that were missed
9b365d9f
jp1924
jp1924 commented on 2026-10-21
Cyrilvallez dont like the newline that was added
7f854d99
Cyrilvallez more newline
d7060de1
Cyrilvallez more
e789354d
Cyrilvallez remove more newline and nonsense assignment
c1a9367b
Cyrilvallez unrelated
63bdf9c2
Cyrilvallez Merge branch 'main' into feat/gemma-4-mask-last
87981517
Cyrilvallez
Cyrilvallez approved these changes on 2026-10-22
Cyrilvallez more based on latest main
63d67d98
github-actions
github-actions
Cyrilvallez Cyrilvallez merged a672eb5f into main 27 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone