transformers
:rotating_light: Kernels=True ?!
#47773
Merged

:rotating_light: Kernels=True ?! #47773

ydshieh merged 180 commits into huggingface:main from vasqu:default-kernels
vasqu
Cyrilvallez kernel native
f438a2e8
Cyrilvallez fix warning
7c1335b8
Cyrilvallez have to fix other modular to be coherent
f8ff0db0
Cyrilvallez remove useless
9a8127e8
Cyrilvallez use native lib as well
72b45caf
Cyrilvallez modular
54d80dfb
Cyrilvallez combine them
d2beaf64
Cyrilvallez doc
c256c47b
vasqu ignore kwargs, allow og
30e0ff74
vasqu Merge remote-tracking branch 'upstream/main' into kernels-fallback
c57b520a
vasqu fix
38c2ece9
vasqu gdn like paths (missing conv of olmo hybrid)
7788cac4
vasqu olmo hybrid fused conv style
cf49de64
vasqu fix
73db89ba
vasqu fix
88966967
vasqu poc mamba2, kernel must compile but torch seems to match
d3b27a66
vasqu kernels match --> hf kernels will be needed
f0aa5812
vasqu style
263f3077
vasqu quick fixes
a189da9e
vasqu Merge remote-tracking branch 'upstream/main' into kernels-fallback
8134d382
vasqu mamba2 works
4ebeb111
vasqu mamba2 suite of models
1786c75b
vasqu oops
0eca0d07
vasqu conv1ds across other models
82bfadec
vasqu let's try this
520e340b
vasqu mamba base implementation
f69acfed
vasqu fixups as per review comments
bfbf9f15
vasqu fixup mamba tests and other issues
511d4a61
vasqu make no shape check by default (single padded sample should also work)
3ee52c35
vasqu remove todo
34051c4d
vasqu propogate mamba1
c3a6c982
vasqu style
fcf7292f
vasqu fix mambapy + enable on jamba
3823bcbd
vasqu zamba1
380e5fc7
vasqu style
ad78e096
vasqu fix early cast (leads to non fp32 norm)
3c51e11d
vasqu fix padding free path
b05fb522
vasqu fix offload
98f62d41
vasqu Merge remote-tracking branch 'upstream/main' into kernels-fallback
66cff331
vasqu Merge remote-tracking branch 'upstream/main' into kernels-fallback
2ec940b7
vasqu bump kernels
9b266aa3
vasqu remove todo
c4b785c8
vasqu avoid onnx export and fix mamba2 test
c85e6220
vasqu fix bamba test
2b4fd754
vasqu update falcon mamba - aligned with all other devices
2e485f3f
vasqu oops
d81829f6
vasqu kernels=True by default
95a29546
vasqu Merge remote-tracking branch 'upstream/main' into default-kernels
fc9ce38c
HuggingFaceDocBuilderDev
vasqu fixup tests that require kernels (at model load time)
85f30d1d
vasqu let's apply kernels where we can! only on non inherited classes ignor…
7e7b6211
vasqu moe
eac7ad99
vasqu style
690ca05b
vasqu oops
2a1ab0c9
vasqu fix offline (disable in any case), fix run kernels to use prepared pe…
6e4e0097
vasqu test
13a57cdf
vasqu fix
b30a5e89
vasqu let's make them also inherit as special cases
01fc01d5
vasqu Merge branch 'main' into default-kernels
dac48c5d
vasqu come ooon
2b31778e
vasqu kernels is default install
a1dc96f4
vasqu forgot that one
e203afad
vasqu add todo
52887a31
vasqu
vasqu fix versioning for newer torch
2cbd4b21
vasqu Merge branch 'main' into default-kernels
32c5bcf2
ydshieh Merge branch 'main' into default-kernels
1fd733d3
vasqu Merge remote-tracking branch 'upstream/main' into default-kernels
78483516
vasqu it got duplicated
b82d8ff7
ydshieh Merge branch 'main' into default-kernels
fa78aaf0
ydshieh Merge branch 'main' into default-kernels
e37810ba
vasqu at least push this
b6021c4d
vasqu yes yes
e8b04309
vasqu Merge branch 'main' into default-kernels
6baa7066
vasqu initial implementation to reset kernelization
50019a87
vasqu enable new kernels lifecycle
feba29f2
vasqu clarify
806f0c99
vasqu Merge remote-tracking branch 'upstream/main' into default-kernels
f7cc924d
vasqu fix bad models and bad imports
6d2e593a
vasqu generate test with kernels
07e48ba7
vasqu how did that pass before
f8d137d5
vasqu fix wrong set of precedence
de872cb2
vasqu we need a gpu
5b76a5e5
vasqu Merge branch 'main' into default-kernels
c1f30fd6
vasqu Merge branch 'main' into default-kernels
5da4db27
vasqu current state of kernels
aef01aae
vasqu compile
58eea155
vasqu full refactor in how we do this
4ad6accb
vasqu fix kernels tests for the most part, docstring to go over style
dc1cce6d
vasqu remove deprecated
39d0c4ce
vasqu make rope inference only
95a39542
vasqu this is needed for the fused stuff -> needs some other core to check...
769878d5
vasqu Merge branch 'main' into default-kernels
309c55fb
vasqu
vasqu commented on 2026-10-08
vasqu drop llama4
d5a57c7c
vasqu ok thats the better way to fix it
ed48226e
vasqu fix this to new revision as well
f49a1100
vasqu missed this
c1c40c33
vasqu Merge branch 'main' into default-kernels
f725f089
vasqu uncomment qwen ones
3a681d54
vasqu update references
546454dd
vasqu update mamba to official version
859dd128
vasqu make fa more robust
abe5cd1c
vasqu better
c97e5124
vasqu fix a bunch of issues
679ccb8b
vasqu fix
682d7f77
vasqu style
b5f56a33
vasqu Merge commit 'd4804f9d76b8c071b993d813e9e87067b780cbee' into default-…
f82c56a0
vasqu rm kernels uninstall
2acc52dc
vasqu small fixes
e8ca43cd
vasqu last beam fix
5e6cafc4
vasqu Merge commit '60f49549e0db78f022ee30aa1571d9ab6e4a15bf' into default-…
e921853f
vasqu fixes part1
0fbbc9d3
vasqu fix fa undeer static caches
fcb6c769
vasqu quick fixes
9da92f83
vasqu Merge commit 'f348d3dcfa9317bed603e01b8ca22b11fe59615c' into default-…
e3dc55f3
vasqu fix
738aff73
vasqu make this not compile
c2244fce
vasqu esmfold
f7f9cfb2
vasqu last fixes
b2b3edbf
kashif kashif force pushed from dc6e9ca9 to b2b3edbf 35 days ago
vasqu Merge branch 'main' into default-kernels
44deb407
vasqu style
a35b2b21
vasqu fa fixes
00c1b931
vasqu last kernel (being uploaded rn)
e0922b90
vasqu Merge branch 'main' into default-kernels
284a929c
vasqu style
e45ac533
vasqu remove those workarounds
b1a0331f
vasqu Merge branch 'main' into default-kernels
3dc112ad
vasqu Merge commit 'd203390173fc074638e2268c6becd140fca5d92b' into default-…
6e4d725f
vasqu update
d20e2ab1
vasqu Merge commit '677b9ff1bccf61d696018dd59b969207ef7849c2' into default-…
5bd9c22f
vasqu fix
d3a5091d
vasqu lets revert this part for now
22107aaf
vasqu make completely reverted
f93a4fb0
vasqu Merge commit '800db143c605843edaa4fcec94a48fdc92f9c8e6' into default-…
9a55664d
vasqu add regression test
30225da4
vasqu small cleanup
c8742312
vasqu style
db1e62b2
vasqu fix helpers
aa46ca32
vasqu model fixes
a2a22d9a
vasqu style
22361d28
vasqu fix offloading device match
a4d746ec
vasqu Merge commit 'a065282cd638049aa1ba6efd465d097542a4f065' into default-…
8264a56f
vasqu make this simpler
40f927c0
vasqu Merge branch 'main' into default-kernels
e6042d99
vasqu fix
edcb7f58
vasqu other offload fix for wav2vec2
7425bfcf
vasqu fix hooks
9c21e346
vasqu fix fa
c9046cea
vasqu Merge commit '109a7d19bf667168837f32929e00b791e195d14d' into default-…
d31ffd0f
vasqu update version
6ce11351
vasqu cb w/o kernels for now too flaky
dd6b1960
vasqu Merge branch 'main' into default-kernels
c2673a62
vasqu oops
af0c427c
ArthurZucker
ArthurZucker commented on 2026-11-16
vasqu Merge branch 'main' into default-kernels
66da5fcf
vasqu review comments
ed3b380d
vasqu fix flags
a0700aa6
vasqu update rocm
277ab799
vasqu Merge branch 'main' into default-kernels
0b64f603
vasqu Merge branch 'main' into default-kernels
4dd81735
SunMarc Disable kernels before wrapping a model in nn.DataParallel
5f2d74fc
vasqu Merge pull request #6 from huggingface/default-kernels-disable-for-da…
fb1336e5
vasqu Merge branch 'main' into default-kernels
f11c28b1
vasqu update and enable training
ef5b4fac
vasqu this is too much, lets patch .train call
a621b24b
vasqu some quick fixes
4db43cc5
vasqu style
ff0f8e4c
vasqu bump kernels
6fa686dd
vasqu Merge branch 'main' into default-kernels
14de451e
Cyrilvallez
Cyrilvallez commented on 2026-11-26
vasqu review
baf589c3
vasqu Merge branch 'main' into default-kernels
b1e3e0a8
vasqu fix default
8e903e9e
vasqu fix lfm3
8d3a95f3
vasqu style
68249091
vasqu Merge branch 'main' into default-kernels
7c161164
vasqu Merge branch 'main' into default-kernels
31c77e3f
qgallouedec
vasqu review
f8b1ffb4
hmellor
hmellor commented on 2026-11-27
vasqu raise min version
f0f1b9b1
vasqu keep bc for that, doesnt hurt
89f54343
vasqu make it default, small cleanup
f9d05c88
huggingface huggingface deleted a comment from github-actions on 2026-11-27
vasqu fix this
e60fb7e5
vasqu Merge branch 'main' into default-kernels
e11df78f
vasqu vasqu marked this pull request as ready for review 3 days ago
vasqu
vasqu Merge branch 'main' into default-kernels
af99f7dc
github-actions
ydshieh
ydshieh
ydshieh approved these changes on 2026-11-28
github-actions
ydshieh
ydshieh ydshieh merged bd0c6c99 into main 2 days ago
ydshieh

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone