transformers
bcccc3e7 - Make executorch exporter tests always use xnnpack backend (#47201)

Commit
2 days ago
Make executorch exporter tests always use xnnpack backend (#47201) * Make exporter tests CPU-only (require_non_gpu) and fix executorch import on CPU The ONNX/ExecuTorch export tests target CPU (executorch exports via xnnpack on CPU); their deps live in the CPU torch-light CI image. Mark test_torch_export/test_onnx_export/test_executorch_export with a new require_non_gpu decorator so they run on the CPU image rather than the GPU nightly (where executorch cannot be installed without clobbering the CUDA torch). Also make the ExecuTorch CUDA backend import in exporter_executorch.py optional: it pulls in `triton`, which CPU-only torch builds don't ship, so importing it unconditionally broke collection of every model test on the CPU image. The `cuda` backend now raises a clear error if requested without it; xnnpack (CPU) export is unaffected. * cpu markers * don't fail on cpu build * keep comment * lower min torch version * dev-ci * Drop @slow from ExecuTorch export tests so they run in CPU PR CI The executorch export tests are @require_non_gpu (CPU-only) and their deps now live in the torch-light CI image. But @slow tests are only enabled on the GPU slow lanes (self-comment-ci / self-scheduled, RUN_SLOW=yes) — never in the CPU PR CI (tests_torch has no RUN_SLOW path). With @require_non_gpu they can't run on those GPU lanes either, so they executed nowhere (verified: 0 passed / all skipped as "test is slow" in PR #47201's run). Dropping @slow lets them run in tests_torch on the torch-light image when the fetcher selects exporter/model changes. torch.export / ONNX export tests keep @slow (they still run on the GPU slow lanes). * dev-ci * remark et as slow and make it use xnnpack backend by default * add executorch 1.2 * build images * Apply suggestion from @IlyasMoutawwakil * Skip executorch install when FLASH_ATTN is enabled flash-attn and executorch have incompatible build dependencies; skip executorch when building the FLASH_ATTN image variant. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Revert build-docker-images.yml trigger branch to original Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * trigger * Revert "trigger" This reverts commit 2e9662fb60e60b55392a21a6d0de006fed6260f3. --------- Co-authored-by: IlyasMoutawwakil <moutawwakil.ilyas.tsi@gmail.com> Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Co-authored-by: ydshieh <ydshieh@users.noreply.github.com> Co-authored-by: Ilyas Moutawwakil <57442720+IlyasMoutawwakil@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
Parents
Loading