[PoC] HF exporters #41992

IlyasMoutawwakil wants to merge 232 commits into main from hf-exporters
IlyasMoutawwakil
IlyasMoutawwakil initial poc
4721d30f
IlyasMoutawwakil support exporting causal models
448206d8
IlyasMoutawwakil fix cache recreation issue
46ef4493
IlyasMoutawwakil group utils
23d96d95
IlyasMoutawwakil dynamic axis on a best effort basis
e37cf458
IlyasMoutawwakil allow user to pass their own pkv
75529648
IlyasMoutawwakil IlyasMoutawwakil marked this pull request as draft 191 days ago
HuggingFaceDocBuilderDev
IlyasMoutawwakil Merge branch 'main' into hf-exporters
5857f101
IlyasMoutawwakil misc
fba576d5
IlyasMoutawwakil cascading exports
c4a3a2d0
IlyasMoutawwakil add encoder decoder cache support
25904a12
IlyasMoutawwakil add testing for dynamo exporter
3f951934
IlyasMoutawwakil fix cases that are easy to fix
f07de577
IlyasMoutawwakil disable torch export for some models using custom caches
7a9e3f77
IlyasMoutawwakil fix more models
ba02172c
IlyasMoutawwakil solve issue in model return fake tensors
ba7b4b80
IlyasMoutawwakil disable more models with custom caches
ad732714
IlyasMoutawwakil fix biogpt
6b838d92
IlyasMoutawwakil biogpt
8488793e
IlyasMoutawwakil style
41dda353
IlyasMoutawwakil error on generative encoder decoders and process attention mask for c…
c157f033
IlyasMoutawwakil prepare_cache_inputs_for_export helper method
6eaa9f12
IlyasMoutawwakil
IlyasMoutawwakil add comments about non-tested models
9c4afb58
IlyasMoutawwakil style
cfa69771
IlyasMoutawwakil fix bamba export
e58aca3d
IlyasMoutawwakil paligemma
d2184fe0
IlyasMoutawwakil deepseek and zamba
14ea0d25
IlyasMoutawwakil skip reformer for its custom cache
a08b6634
IlyasMoutawwakil avoid the vlm tokens check during export
49db1825
IlyasMoutawwakil fix-copies
223037d6
IlyasMoutawwakil add support for many MoEs
8c3795eb
IlyasMoutawwakil skip some custom MoEs that are not worth the effort or now
7394559c
IlyasMoutawwakil zamba and zamba2
56598a59
IlyasMoutawwakil comments
f8b172f3
IlyasMoutawwakil monolith encoder-decoder export is possible
26418a05
IlyasMoutawwakil Merge branch 'main' into hf-exporters
8a89c96a
IlyasMoutawwakil IlyasMoutawwakil changed the title Hf exporters [PoC] HF exporters 188 days ago
IlyasMoutawwakil comments
c31154ca
IlyasMoutawwakil Merge branch 'hf-exporters' of https://github.com/huggingface/transfo…
2b07f0a1
IlyasMoutawwakil catch cryptic torch assertion error
552fd13b
IlyasMoutawwakil revert moe changes
d758aa38
IlyasMoutawwakil patch moes during the export
6e997609
IlyasMoutawwakil revert unnecessary changes
43114b0c
IlyasMoutawwakil fix idefics2
3021194a
IlyasMoutawwakil fix bidirectional attention mask causing the cryptic export error
d7942bb1
IlyasMoutawwakil fix granitemoehybrid
982aba52
IlyasMoutawwakil fix bidirectional
9d542e9e
IlyasMoutawwakil skip qwen 2.5 omni as it has data dependent input processing
293db77a
IlyasMoutawwakil fix idefic
3d6e4b9b
IlyasMoutawwakil skip omdet turbo as it uses a custom cache class
6bdbca71
IlyasMoutawwakil fix a bunch of seq2seqLM models
cdc38dd7
IlyasMoutawwakil skip some models with highly data-dependent helper methods
f11b7acd
IlyasMoutawwakil make FalconH1 and qwen3_next exportable
abd43a50
IlyasMoutawwakil skip emu3
6a2be431
IlyasMoutawwakil fix some vlms
a7400bfa
IlyasMoutawwakil fix emot and evolla
d7eae951
IlyasMoutawwakil fix qwen2 audio and vits
c6942127
IlyasMoutawwakil create list of unsupported models and raise not implemented
ff975775
IlyasMoutawwakil fix timesfm and eomt
62ee8ddf
IlyasMoutawwakil revert ibert
178c7cc3
IlyasMoutawwakil remove test_torch_exportable flag replaced by the list of unsupported…
a8fe5af3
IlyasMoutawwakil cleanup
11b28e20
IlyasMoutawwakil make d-fine exportable
f79a7687
IlyasMoutawwakil make many more models and vlms exportable
f71019f7
IlyasMoutawwakil make jamba exportable except its cache class
018879af
IlyasMoutawwakil make grounding dino exportable
ffb25df5
IlyasMoutawwakil make more models exportable (led, reformer, videomae, idefics, idefics3)
16738b68
IlyasMoutawwakil set use_cache to false for models with unsupported cache classes
eaae3637
IlyasMoutawwakil skip random LSH attention
e435da22
IlyasMoutawwakil fix docstring
b6cdce88
IlyasMoutawwakil Merge branch 'main' into hf-exporters
9b45a555
IlyasMoutawwakil IlyasMoutawwakil requested a review from vasqu vasqu 184 days ago
IlyasMoutawwakil IlyasMoutawwakil removed review request from vasqu vasqu 184 days ago
IlyasMoutawwakil Merge branch 'main' into hf-exporters
bea176df
IlyasMoutawwakil untangle inputs preparation
82dbfc8e
IlyasMoutawwakil auto dynamic shapes for int/float/bool
0c749aba
IlyasMoutawwakil some fixes for dynamic export
a87a39a4
IlyasMoutawwakil fixes for dynamic export
4066acb8
IlyasMoutawwakil Merge branch 'main' into hf-exporters
8d3f9565
IlyasMoutawwakil make the same exporter re-usable and remove PreTrainedModel integration
14cff62f
IlyasMoutawwakil IlyasMoutawwakil marked this pull request as ready for review 181 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 181 days ago
github-actions github-actions requested a review from Rocketknight1 Rocketknight1 181 days ago
IlyasMoutawwakil remove print
c4cc0668
IlyasMoutawwakil remove warn_on_unsupported_cache_class
321bd1e7
IlyasMoutawwakil better onnx exporter support and more lenient testing for now
5cf47509
IlyasMoutawwakil make more models exportable
1d447c9f
IlyasMoutawwakil skip LSH attention closeness test
c76059a2
IlyasMoutawwakil list all failing models and omit them for now
7525035b
IlyasMoutawwakil make seq2seq lm models exportable
366de2a5
IlyasMoutawwakil fix patch
14cfe34e
IlyasMoutawwakil fix
425c4554
xenova
xenova commented on 2025-11-18
xenova
xenova commented on 2025-11-18
xenova
xenova commented on 2025-11-18
IlyasMoutawwakil custom testing for onnx (more lenient)
9a7801b6
IlyasMoutawwakil separate patch utils file
b31b621b
IlyasMoutawwakil fix
a05717bb
IlyasMoutawwakil make siglip2 and lfm2_vl dynamo and onnx exportable
87e56e1f
IlyasMoutawwakil IlyasMoutawwakil requested a review from vasqu vasqu 175 days ago
ArthurZucker
ArthurZucker commented on 2025-11-20
jackzhxng
jackzhxng commented on 2025-12-10
justinchuby
justinchuby commented on 2025-12-17
xadupre
xadupre commented on 2025-12-18
xadupre
xadupre commented on 2025-12-18
IlyasMoutawwakil Merge branch 'main' into hf-exporters
1f726f9d
IlyasMoutawwakil revert modeling changes
48b25be6
IlyasMoutawwakil revert examples changes
40ae5649
IlyasMoutawwakil revert a test
0d676623
IlyasMoutawwakil remove patching
4517aef0
IlyasMoutawwakil update with latest dynamo compatibility
817c172e
IlyasMoutawwakil fix idefics tracing
080d7888
IlyasMoutawwakil make all cache subclasses exportable with a serialization recipe
eeb1aef2
IlyasMoutawwakil IlyasMoutawwakil marked this pull request as draft 69 days ago
IlyasMoutawwakil full export support
b43fa07f
IlyasMoutawwakil fix a lot of onnx non-exportable models
19c9ccda
IlyasMoutawwakil skip bigbird pegasus
fb5737ee
IlyasMoutawwakil fix
10e74009
IlyasMoutawwakil fix bigbird
360ff6ca
IlyasMoutawwakil updates
7a1d79d7
IlyasMoutawwakil more onnx fixes
d9edfab1
IlyasMoutawwakil init executorch
bf77b2aa
IlyasMoutawwakil executorch test
d93bdf36
IlyasMoutawwakil executorch cuda recipe
8c87491d
IlyasMoutawwakil patch rms norm
0954ac6c
IlyasMoutawwakil first model to pass executorch cuda recipe :)
a7b9be8b
IlyasMoutawwakil move onnx specific torch patching to onnx
8fb62b1b
IlyasMoutawwakil executorch patching
05614fb7
IlyasMoutawwakil fixes
273c1156
IlyasMoutawwakil json dumpable serialization
bffbd8ee
IlyasMoutawwakil more onnx compatible exports
4af1159f
IlyasMoutawwakil reverts
854e28b8
IlyasMoutawwakil fix
18cd3a9f
IlyasMoutawwakil simplify
84fc73d1
IlyasMoutawwakil Merge branch 'main' into hf-exporters
5318ca05
IlyasMoutawwakil onnxscript
f27212f5
IlyasMoutawwakil style
1e5e1838
IlyasMoutawwakil fix
94330d4c
IlyasMoutawwakil revert unnecesaary
d1528efd
IlyasMoutawwakil fixes
25cd56ee
IlyasMoutawwakil dia
6dbdff67
IlyasMoutawwakil Merge branch 'main' into hf-exporters
a20d7d6b
IlyasMoutawwakil revert
3b32a738
IlyasMoutawwakil fix
482ed9ca
IlyasMoutawwakil better
3bb74af0
IlyasMoutawwakil style
a42c2b05
IlyasMoutawwakil fix idefics
5c722167
IlyasMoutawwakil style
9ddbe863
IlyasMoutawwakil fix flava
de777f3e
IlyasMoutawwakil simpler post export fixes
19e3a4b8
IlyasMoutawwakil fix
5b6a9286
IlyasMoutawwakil fix
4328e25f
IlyasMoutawwakil complete rewrite of the onnx exporter in 4 stages - all models are to…
016abf9a
IlyasMoutawwakil Merge branch 'main' into hf-exporters
e8f8e0a6
IlyasMoutawwakil revert changes in modeling in favor of patches
13680057
IlyasMoutawwakil fix
e1a80321
IlyasMoutawwakil revert and patch masked mean/var
387561b7
IlyasMoutawwakil more modeling reverts
5a88d63a
IlyasMoutawwakil revert
47b5e34b
IlyasMoutawwakil simplify inputs prepartion
90ac060a
IlyasMoutawwakil stage-specific full export testing (forward, prefill, decode) !
9ea28f57
IlyasMoutawwakil fix for mllama
6ab1bd5a
IlyasMoutawwakil docstrings and comments
a16df254
IlyasMoutawwakil naming
34d07bdb
IlyasMoutawwakil parametrize tests for auto dynamic export and testing later
1bf9cac2
IlyasMoutawwakil fix pp doc layout v2
3091fb62
IlyasMoutawwakil updates
b0a887fc
IlyasMoutawwakil most of dynamic export passes
6cd3ce72
IlyasMoutawwakil generic vlm models decomposition
44181082
IlyasMoutawwakil awesome onnx fix
e7e80a13
ArthurZucker
ArthurZucker approved these changes on 2026-03-17
IlyasMoutawwakil final onnx patches and fixes
1155918b
IlyasMoutawwakil docs
a9fb2605
IlyasMoutawwakil allow doctest of some stuff (dynamo specifically)
17e894bf
IlyasMoutawwakil Merge branch 'main' into hf-exporters
656161b7
IlyasMoutawwakil style
0ad9382e
IlyasMoutawwakil revert deepseek
eb1712ba
IlyasMoutawwakil style
67a4d30f
IlyasMoutawwakil fix style
85de2da8
IlyasMoutawwakil fix lfm cache
4c949072
IlyasMoutawwakil revert idefics
47fb0a5a
IlyasMoutawwakil revert idefics
59044fd8
IlyasMoutawwakil revert deepseek vl
0886f388
IlyasMoutawwakil better leaf tensors handling
24d4735f
IlyasMoutawwakil revert patchtsmixer
4eee8182
IlyasMoutawwakil fix in onnx exporter order and executorch backend preparation
7c87d353
IlyasMoutawwakil IlyasMoutawwakil marked this pull request as ready for review 54 days ago
IlyasMoutawwakil Merge branch 'main' into hf-exporters
a9bed196
xadupre
xadupre commented on 2026-03-24
xadupre
xadupre commented on 2026-03-24
IlyasMoutawwakil fix get_rope_index models and chunked vision attn models
b9a547d3
IlyasMoutawwakil fix annotation
a2d1e8c8
IlyasMoutawwakil skip video llama 3
b6d68e58
IlyasMoutawwakil skip ernie vl as well
17156c0f
IlyasMoutawwakil introduce dynamo patches and make prepare_for_export the least impact…
969dbc30
IlyasMoutawwakil Merge branch 'main' into hf-exporters
eaabee69
IlyasMoutawwakil Merge branch 'hf-exporters' of https://github.com/huggingface/transfo…
b21385e8
IlyasMoutawwakil Merge branch 'main' into hf-exporters
b75ce435
IlyasMoutawwakil fix after merge
ff50ce8d
IlyasMoutawwakil ultimatevlm fix (precompute stuff)
1d81213f
IlyasMoutawwakil fix vlm encoders export through optional precomputed inputs
2fe1d11b
IlyasMoutawwakil more vlms passing (t5 gemma and paddle ocr)
16cbe4d3
IlyasMoutawwakil fix qwen omni and paddle ocr export
96e74bc3
IlyasMoutawwakil fix docs
4a1303e1
IlyasMoutawwakil fix torch dep
e814592c
IlyasMoutawwakil annotations
a6bcb66d
IlyasMoutawwakil revert change
a955ae56
IlyasMoutawwakil missing licence
3bf6a90a
IlyasMoutawwakil attempt fix styling
35b4db7f
IlyasMoutawwakil Merge branch 'main' into hf-exporters
753e70e1
IlyasMoutawwakil fix torch leak
c508d22f
IlyasMoutawwakil fix
6a087a51
IlyasMoutawwakil style
0a196a2d
IlyasMoutawwakil fix
2b928ae7
IlyasMoutawwakil style
ee8c7b02
IlyasMoutawwakil guard
c3a0f24c
IlyasMoutawwakil same name for torch patches
87b2ca8b
IlyasMoutawwakil fix detectron failure
f024c9d7
IlyasMoutawwakil Merge branch 'main' into hf-exporters
adf90da2
IlyasMoutawwakil fix musicflamingo
16720f9c
IlyasMoutawwakil fix
4ad2a991
IlyasMoutawwakil fix
1ac2de80
IlyasMoutawwakil support and fix gemma4
770cc2e8
IlyasMoutawwakil update docs
5072edb0
IlyasMoutawwakil update docs
5ac0267c
IlyasMoutawwakil make qwen omni audio encoders exportable
27ccc0f7
IlyasMoutawwakil docs
5364d989
IlyasMoutawwakil Merge branch 'main' into hf-exporters
0a7baff2
IlyasMoutawwakil get cu seqlens
9bcca9de
IlyasMoutawwakil leave paddle ocr
ca6cfdbc
IlyasMoutawwakil skip paddle ocr
d52bd2e6
IlyasMoutawwakil fix
efafb3c1
IlyasMoutawwakil fix layoutlmv2 onnx export
70862cec
IlyasMoutawwakil fix idefics3 on cpu
0cc6e427
IlyasMoutawwakil Merge branch 'main' into hf-exporters
ba8f7302
IlyasMoutawwakil fix falcon_mamba and other idefics
7f9382c9
IlyasMoutawwakil
github-actions
github-actions
IlyasMoutawwakil Merge branch 'main' into hf-exporters
e2e951dc
github-actions
IlyasMoutawwakil
github-actions
IlyasMoutawwakil style and docs
e44c5aec
IlyasMoutawwakil IlyasMoutawwakil force pushed from f30fa969 to e44c5aec 34 days ago
IlyasMoutawwakil dict decomposition
1a7e7905
IlyasMoutawwakil
github-actions
github-actions
IlyasMoutawwakil remove deferred
677a90d7
github-actions
IlyasMoutawwakil executorch fixes
dab2d144
IlyasMoutawwakil dynamo doctests passing *-*
6ec03ba5
IlyasMoutawwakil clean title
5eba3d5e
IlyasMoutawwakil update
c5c7020d
IlyasMoutawwakil normalize qwen omni
679eb1b1
IlyasMoutawwakil only pure functions
ff66d956
IlyasMoutawwakil patch views for exeuctorch
f0080026
IlyasMoutawwakil better vision dynamic tensors pre computation
aef0409c
IlyasMoutawwakil audio functions
2ae78c7d
IlyasMoutawwakil Merge branch 'main' into hf-exporters
e3e66c6e
IlyasMoutawwakil fix
d8432a54
IlyasMoutawwakil fix
234f7eb0
IlyasMoutawwakil define vision modeling utils
aa220b70
github-actions

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone