[PoC] HF exporters #41992

IlyasMoutawwakil wants to merge 284 commits into main from hf-exporters
IlyasMoutawwakil
IlyasMoutawwakil IlyasMoutawwakil marked this pull request as draft 217 days ago
HuggingFaceDocBuilderDev
IlyasMoutawwakil
IlyasMoutawwakil Merge branch 'main' into hf-exporters
8a89c96a
IlyasMoutawwakil IlyasMoutawwakil changed the title Hf exporters [PoC] HF exporters 214 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 210 days ago
IlyasMoutawwakil IlyasMoutawwakil removed review request from vasqu vasqu 210 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 208 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 208 days ago
github-actions github-actions requested a review from Rocketknight1 Rocketknight1 208 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 201 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 95 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 80 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
IlyasMoutawwakil
github-actions
IlyasMoutawwakil style and docs
e44c5aec
IlyasMoutawwakil IlyasMoutawwakil force pushed from f30fa969 to e44c5aec 60 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
IlyasMoutawwakil fix docs
a6f9d7b4
IlyasMoutawwakil style
745e36ac
IlyasMoutawwakil Merge remote-tracking branch 'origin/main' into hf-exporters
9eba5453
IlyasMoutawwakil fix repo
41c864e6
IlyasMoutawwakil update skips
8a5218a3
IlyasMoutawwakil fixes and skips
f6f47355
IlyasMoutawwakil fix repo
719157b4
IlyasMoutawwakil exportable/compilable paddleocr vl
f7e2b069
IlyasMoutawwakil onnx parity
75977b62
IlyasMoutawwakil more docs
44c93cf2
IlyasMoutawwakil style
61140691
IlyasMoutawwakil move
eb0d6d68
IlyasMoutawwakil avoid lens
b37d1923
IlyasMoutawwakil timesfm minicpmv46 canine colqwen2
98445c3c
IlyasMoutawwakil fix test
32e0ff5c
IlyasMoutawwakil executorch fixes
e7dd4aa7
IlyasMoutawwakil executorch fixes
e3fdc32e
IlyasMoutawwakil more executorch fixes
bc2427d6
IlyasMoutawwakil Merge branch 'main' into hf-exporters
139d0e4e
IlyasMoutawwakil Merge branch 'hf-exporters' of https://github.com/huggingface/transfo…
e66362e0
IlyasMoutawwakil more executorch patches
a9bacd9f
IlyasMoutawwakil Merge branch 'main' into hf-exporters
0c2ff1d5
IlyasMoutawwakil Merge branch 'hf-exporters' of https://github.com/huggingface/transfo…
8ddd01d8
IlyasMoutawwakil fix
26f370d1
IlyasMoutawwakil Merge branch 'main' into hf-exporters
2be769be
IlyasMoutawwakil Merge branch 'main' into hf-exporters
c136f1dd
IlyasMoutawwakil more fixes
25708e07
ArthurZucker
ArthurZucker commented on 2026-06-04
IlyasMoutawwakil Update src/transformers/exporters/exporter_dynamo.py
020d874c
IlyasMoutawwakil
IlyasMoutawwakil stadarize the patching and fixing api more
1e975eb4
IlyasMoutawwakil fix get_encoder is some models
93bd4167
IlyasMoutawwakil Merge branch 'main' into hf-exporters
ca64a669
IlyasMoutawwakil fix style
d63f0257
IlyasMoutawwakil fix qwen omni get decoder and export
86e3ae9c
justinchuby
IlyasMoutawwakil
IlyasMoutawwakil fix xlstm export
5619ea62
IlyasMoutawwakil per model type inputs preparation registery
01cf3f88
IlyasMoutawwakil standarize torch and library (onnx, executorch) patching and fx progr…
f0256c78
IlyasMoutawwakil style
8b604d4e
IlyasMoutawwakil fix gemma4 unified test
104c3796
IlyasMoutawwakil add export for generation pipeline
4df0ac69
IlyasMoutawwakil decompose for generation helper function
cca77d2f
IlyasMoutawwakil style
7537aefd
IlyasMoutawwakil
IlyasMoutawwakil onnx fixes
3226c294
IlyasMoutawwakil two pat fix
3bd85f12
IlyasMoutawwakil vectorized swin attention
14fbffd3
IlyasMoutawwakil vectorized big bird block sparse attn
4d6c469c
IlyasMoutawwakil avoid dino timeouts
4e16cf39
IlyasMoutawwakil big bird and pegasus
07f4b684
IlyasMoutawwakil fixed unified gemma4
436ed749
IlyasMoutawwakil sam fixes and simplifications
03a76d37
IlyasMoutawwakil fix repo
7f6601d3
IlyasMoutawwakil fix style
0ed56b2a
IlyasMoutawwakil unify model instance patches with the rest of the patching api
ff542113
github-actions
IlyasMoutawwakil
IlyasMoutawwakil
github-actions

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone