Refactor flash attention implementation in transformers #31446
dumb commit
b66fdb0a
nit
029ee11d
Merge branch 'main' into backend-compatible
9a7885d6
update
ac3e5b52
something like this
a7c48bdf
unpack in modeling utils
682f221d
safe import
22011788
oups
55a3503d
update
b5cbaef5
nits
7c6fdd7c
diff convert gemma
08d7e1ed
update
27044dad
start propagating
ca316a06
udpate other modeling code as well
ea932674
update for sliding window models
4b67223a
nits
d59ac0c5
more init cleanups
a1d3866c
styling
aea7f039
fixup
f1bedd0a
noice
86e2edce
pass fixup
e90a9446
typo typing_extension -> typing_extensions
093fbf5e
torch.nn.functionnal -> torch.nn.functional
a1c56d2a
add to import structure
1aad4a2d
unpack
10bc1fae
simplify a bit more for this first version
9f08ddb1
nut
2e65e57b
update
f8622e6c
update
2bb43475
nit
9be7579c
ease the import of `Unpack`
889cbf8b
remove useless `use_sliding_window`
070af2de
no qua please
80057a0d
protect import?
c0b024dd
style
8f7d1c18
[run-slow]
46b77f9f
[run slow] llama,gemma,mistral,mixtral
4a98ee72
ArthurZucker
changed the title Ragged tensor compatible FlashAttention Ragged tensor compatible FlashAttention2 2 years ago
ArthurZucker
changed the title Ragged tensor compatible FlashAttention2 Refactor flash attention implementation in transformers 2 years ago
remove extra kwargs
25b2c10d
Merge branch 'main' of github.com:huggingface/transformers into backe…
8c3780d6
fix llama
1d38daba
address review comments
f64864a5
apply diff_model_converter to modeling_gemma.py
565c5dce
Merge branch 'main' into backend-compatible
2403ce53
remove cache_position 1
c89571d0
remove cache_position 2
32c2df85
some cleaning
54a9fb04
fxmarty
marked this pull request as ready for review 2 years ago
refactor gemma2 as well
206731ec
Merge branch 'main' into backend-compatible
7c65fc7f
asartran
approved these changes
on 2024-07-02
apply review comments
1be8c31e
rename file to modeling_flash_attention_utils.py
8d181ea0
Merge branch 'main' into backend-compatible
3a30cb68
siglip refactor
c92028a1
remove dead code
72439931
is the hub down?
8b077d82
still down?
a9796bc3
fix siglip
6752a9c5
Merge branch 'main' into backend-compatible
3a9cf1b2
fix gemma2
b4d1df57
fatal: Could not read from remote repository.
1e1bc2f3
fix typo in softcap implem
c79ca837
flacky
30dc1230
Failed: Timeout >120.0s
fae68435
fxmarty
merged
e3143952
into main 2 years ago
fxmarty
deleted the backend-compatible branch 2 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub