transformers icon indicating copy to clipboard operation
transformers copied to clipboard

[Tracker] ExecuTorch bugs worked around in transformers.exporters

Open IlyasMoutawwakil opened this issue 1 week ago β€’ 22 comments

transformers.exporters exports πŸ€— Transformers models to ExecuTorch, working around each bug below with a patch on our side. This issue tracks them until they're fixed in pytorch/executorch: each item is reproduced without transformers, in a minimal script, on executorch 1.6.0, torch 2.15.0 (CPU), Python 3.11. Every fix brings πŸ€— Transformers models closer to running on phones and microcontrollers.

Every item below breaks the export of real πŸ€— Transformers models, listed under it: none is a hypothetical edge case.

This tracker is for people making their first contributions to large open-source projects. Each item is a small, self-contained bug with a minimal repro, and its fix gets you merged in pytorch/executorch and transformers:

  1. Claim: comment here with the item you're taking. We add your handle next to it. One open item per person at a time.
  2. Fix upstream: open an issue in pytorch/executorch with the item's repro, then a PR fixing it with the repro as its test. Mention this tracker in both, and link them here: we check the item off when the PR is merged.
  3. Drop our patch: once your fix is released, open a PR in transformers removing our patch: its repro now passes.

Play nice upstream: one item at a time, and never several issues or PRs at once. Projects ban accounts that flood them, and that would close the door for everyone here. I review every claim and PR myself, so please write them yourself.

  • [ ] operator.pow on a SymInt has no emitter target
  • [ ] XNNPACK partitions prelu on a 3-D input, then ChannelsLastTaggedReshapePass fails on it β€” claimed by @VyoJ
  • [ ] XNNPACK's RemoveCloneOpsTransform folds a clone onto an input that is also an output β€” in review in pytorch/executorch#25775 by @themanoj-025
  • [ ] No portable kernel or core-ATen decomposition for cummax / cummin β€” claimed by @khola22
  • [ ] split_with_sizes_copy with data-dependent sizes fails to lower β€” claimed by @samudraneel05
  • [ ] dim_order_from_stride guards on unbacked strides β€” claimed by @seo-joon (pytorch/executorch#25961, pytorch/executorch#25964)
  • [ ] The edge verifier rejects a complex mul of mixed dtypes
  • [ ] No finite upper bound for a floordiv of two data-dependent sizes
  • [ ] bernoulli.p isn't in core ATen and has no decomposition
  • [ ] math.floor on a SymInt can't be emitted β€” claimed by @abaybektursun

1. operator.pow on a SymInt has no emitter target

Hit by: SeamlessM4T

SeamlessM4T's relative position bias squares a dynamic length.

Repro and error
import torch
from executorch.exir import to_edge_transform_and_lower


class M(torch.nn.Module):
    def forward(self, x):
        return x.new_zeros(x.shape[0] ** 2)


ep = torch.export.export(M(), (torch.randn(4),), dynamic_shapes=({0: torch.export.Dim.AUTO},))
to_edge_transform_and_lower(ep).to_executorch()
executorch.exir.error.InternalError: Failed with error: invalid target for call_function <built-in function pow>
Here is the node in the graph module:
graph():
    %x : [num_users=1] = placeholder[target=x]
    %sym_size : [num_users=1] = call_function[target=torch.ops.aten.sym_size.int](args = (%x, 0), kwargs = {})
--> %pow_1 : [num_users=1] = call_function[target=operator.pow](args = (%sym_size, 2), kwargs = {})
    %alloc : [num_users=1] = call_function[target=executorch.exir.memory.alloc](args = (((16,), torch.float32),), kwargs = {})
    %aten_full_default : [num_users=1] = call_function[target=torch.ops.aten.full.out](args = ([%pow_1], 0), kwargs = {out: %alloc})
    return (aten_full_default,)
This node pow_1 has metadata of:
The node stacktrace:
Traceback (most recent call last): 
    File "/tmp/claude-150091/-home-ilyas-transformers/5d51eeb4-e9e8-4c99-b26d-bd10488c4082/scratchpad/et_repros/plain/03_pow_on_symint_not_emitted.py", line 7, in forward
return x.new_zeros(x.shape[0] ** 2) 
While executing %pow_1 : [num_users=1] = call_function[target=operator.pow](args = (%sym_size, 2), kwargs = {})
Original traceback:
File "/tmp/claude-150091/-home-ilyas-transformers/5d51eeb4-e9e8-4c99-b26d-bd10488c4082/scratchpad/et_repros/plain/03_pow_on_symint_not_emitted.py", line 7, in forward
    return x.new_zeros(x.shape[0] ** 2)
Use tlparse to see full graph. (https://github.com/pytorch/tlparse?tab=readme-ov-file#tlparse-parse-structured-pt2-logs)

2. XNNPACK partitions prelu on a 3-D input, then ChannelsLastTaggedReshapePass fails on it

Hit by: DAB-DETR, UVDoc

PreluConfig.check_constraints only checks the weight; DAB-DETR applies nn.PReLU to [batch, length, channels] activations.

Repro and error
import torch
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import to_edge_transform_and_lower

ep = torch.export.export(torch.nn.PReLU(8).eval(), (torch.randn(2, 8, 16),))
to_edge_transform_and_lower(ep, partitioner=[XnnpackPartitioner()]).to_executorch()
AssertionError: Attempting to convert non-NHWC compatible node to NHWC
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/tmp/claude-150091/-home-ilyas-transformers/5d51eeb4-e9e8-4c99-b26d-bd10488c4082/scratchpad/et_repros/plain/07_xnnpack_prelu_on_3d_input.py", line 6, in <module>
    to_edge_transform_and_lower(ep, partitioner=[XnnpackPartitioner()]).to_executorch()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/raid/ilyas/venvs/et16/lib/python3.11/site-packages/executorch/exir/program/_program.py", line 118, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/raid/ilyas/venvs/et16/lib/python3.11/site-packages/executorch/exir/program/_program.py", line 1416, in to_edge_transform_and_lower
    edge_manager = edge_manager.to_backend(method_to_partitioner)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/raid/ilyas/venvs/et16/lib/python3.11/site-packages/executorch/exir/program/_program.py", line 118, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/raid/ilyas/venvs/et16/lib/python3.11/site-packages/executorch/exir/program/_program.py", line 1727, in to_backend
    new_edge_programs = to_backend(method_to_programs_and_partitioners)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ilyas/.local/share/uv/python/cpython-3.11.13-linux-x86_64-gnu/lib/python3.11/functools.py", line 909, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/raid/ilyas/venvs/et16/lib/python3.11/site-packages/executorch/exir/backend/backend_api.py", line 776, in _
    lower_all_submodules_to_backend(
  File "/raid/ilyas/venvs/et16/lib/python3.11/site-packages/executorch/exir/backend/backend_api.py", line 602, in lower_all_submodules_to_backend
    backend_cls.preprocess_multimethod(
  File "/raid/il

3. XNNPACK's RemoveCloneOpsTransform folds a clone onto an input that is also an output

Hit by: CLVP, PerceptionLM

A value and its .contiguous() copy both returned (CLVP, PerceptionLM) leave the same node twice in the delegate's outputs.

Repro and error
import torch
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import to_edge_transform_and_lower


class M(torch.nn.Module):
    def forward(self, x):
        y = (x * 2).permute(0, 2, 1)
        return y, y.contiguous()


ep = torch.export.export(M(), (torch.randn(1, 4, 8),))
to_edge_transform_and_lower(ep, partitioner=[XnnpackPartitioner()]).to_executorch()
RuntimeError: Output node 'aten_permute_copy_default' is already in the inputs. This is likely due to pass through arguments, which are not supported in XNNPACK Delegate.

4. No portable kernel or core-ATen decomposition for cummax / cummin

Hit by: Grounding DINO, MM Grounding DINO, ESMFold2, Qwen3-Omni-MoE

Repro and error
import torch
from executorch.exir import to_edge_transform_and_lower


class M(torch.nn.Module):
    def forward(self, x):
        return torch.cummax(x, dim=-1).values


ep = torch.export.export(M(), (torch.randn(1, 2, 6, 7),))
to_edge_transform_and_lower(ep).to_executorch()
torch._export.verifier.SpecViolationError: 
Operator torch._ops.aten.cummax.default is not in Core ATen opset (https://pytorch.org/docs/stable/torch.compiler_ir.html#core-aten-ir)."
There are a few things to try:
1. You can proceed with `to_edge(compile_config=EdgeCompileConfig(_core_aten_ops_exception_list=[torch.ops.aten.cummax.default]))`.
   Please make sure that the backend(s) you are planning to lower to is able to handle aten.cummax.default, or you have a corresponding kernel linked to your runtime.
2. Sometimes inference and training gives slightly different op set. Try adding `with torch.no_grad():` context manager if you are export for inference only.
3. If the error persists after 2, this is likely caused by torch.export() + core ATen decomposition producing unexpected operators for your model.
   If you believe this operator should be included into core ATen opset, please create an issue in https://github.com/pytorch/pytorch/issues and add `module: core aten` tag.

5. split_with_sizes_copy with data-dependent sizes fails to lower

Hit by: GLM-4V, ERNIE-4.5-VL-MoE, Cosmos3-Edge, dots.ocr

Vision-language models split their vision tower's output per image by sizes read from the inputs.

Repro and error
import torch
from executorch.exir import to_edge_transform_and_lower


class M(torch.nn.Module):
    def forward(self, x, sizes):
        # Per-item rows, as a VLM splits its vision tower's output per image
        return x.split(sizes.tolist())


ep = torch.export.export(M(), (torch.randn(10, 4), torch.tensor([3, 7])), strict=False)

to_edge_transform_and_lower(ep).to_executorch()
torch.fx.experimental.symbolic_shapes.GuardOnDataDependentSymNode: Could not extract specialized integer from data-dependent expression u24 (unhinted: u24).  (Size-like symbols: none)

...

executorch.exir.error.InternalError: Could not extract specialized integer from data-dependent expression u24 (unhinted: u24).  (Size-like symbols: none)
Caused by: (executorch/exir/verification/arg_validator.py:132 in call_function)
For more information, run with TORCH_LOGS="dynamic"
For extended logs when we create symbols, also add TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u24"
If you suspect the guard was triggered from C++, add TORCHDYNAMO_EXTENDED_DEBUG_CPP=1
For more debugging help, see https://docs.google.com/document/d/1HSuTTVvYH1pTew89Rtpeu84Ht3nQEFTYhAX3Ypa_xJs/edit?usp=sharing
For C++ stack trace, run with TORCHDYNAMO_EXTENDED_DEBUG_CPP=1
While executing %aten_split_with_sizes_copy_default : [num_users=2] = call_function[target=executorch.exir.dialects.edge._ops.aten.split_with_sizes_copy.default](args = (%x, [%_local_scalar_dense, %_local_scalar_dense_1]), kwargs = {})
Original traceback:
File "/tmp/claude-150091/-home-ilyas-transformers/5d51eeb4-e9e8-4c99-b26d-bd10488c4082/scratchpad/et_repros/plain/12_split_with_unbacked_sizes.py", line 8, in forward
    return x.split(sizes.tolist())
Use tlparse to see full graph. (https://github.com/pytorch/tlparse?tab=readme-ov-file#tlparse-parse-structured-pt2-logs)

6. dim_order_from_stride guards on unbacked strides

Hit by: Splinter

It compares strides with guard_size_oblivious; a tensor with a data-dependent dimension (a boolean-mask selection) fails SpecPropPass.

Repro and error
import torch
from executorch.exir import to_edge_transform_and_lower


class M(torch.nn.Module):
    def forward(self, x, keep):
        # `[4, u]` made contiguous: its strides `(u, 1)` are unbacked
        return x[keep].transpose(0, 1).contiguous() * 2


ep = torch.export.export(M(), (torch.randn(4, 3), torch.tensor([True, False, True, False])))

to_edge_transform_and_lower(ep).to_executorch()
torch.fx.experimental.symbolic_shapes.GuardOnDataDependentSymNode: Could not guard on data-dependent expression u5 < 1 (unhinted: u5 < 1).  (Size-like symbols: u5)
consider using data-dependent friendly APIs such as guard_or_false, guard_or_true and statically_known_true. If this was caused by Python `not` on a symbolic boolean, use torch.sym_not() or an equivalent comparison instead; Python `not` cannot be overloaded outside Dynamo bytecode tracing.
Caused by: (executorch/exir/tensor.py:104 in dim_order_from_stride)
For more information, run with TORCH_LOGS="dynamic"
For extended logs when we create symbols, also add TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u5"
If you suspect the guard was triggered from C++, add TORCHDYNAMO_EXTENDED_DEBUG_CPP=1
For more debugging help, see https://docs.google.com/document/d/1HSuTTVvYH1pTew89Rtpeu84Ht3nQEFTYhAX3Ypa_xJs/edit?usp=sharing
For C++ stack trace, run with TORCHDYNAMO_EXTENDED_DEBUG_CPP=1

7. The edge verifier rejects a complex mul of mixed dtypes

Hit by: DeepSeek-V2

A rotary embedding in complex64 on a bfloat16 model.

Repro and error
import math

import torch
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import to_edge_transform_and_lower

PARTITIONER = [XnnpackPartitioner()]


class M(torch.nn.Module):
    """DeepSeek-V2's rotary embedding: the query in its dtype, rotated in complex64, cast back."""

    def forward(self, xq, freqs_cis):
        xq_ = torch.view_as_complex(xq.float().reshape(*xq.shape[:-1], -1, 2))
        return torch.view_as_real(xq_ * freqs_cis).flatten(3).type_as(xq)


angles = torch.randn(4, 4)
freqs_cis = torch.polar(torch.ones_like(angles), angles)[None, :, None, :]
ep = torch.export.export(M(), (torch.randn(1, 4, 2, 8, dtype=torch.bfloat16), freqs_cis))

to_edge_transform_and_lower(ep, partitioner=PARTITIONER).to_executorch()
torch._export.verifier.SpecViolationError: These operators are taking Tensor inputs with mismatched dtypes:
Operator: <EdgeOpOverload: aten.mul.Tensor>: schema = aten::mul.Tensor(Tensor self, Tensor other) -> Tensor with args: {'self': torch.complex64, 'other': torch.complex64, '__ret_0': torch.complex64}
stack trace: File "/tmp/claude-150091/-home-ilyas-transformers/5d51eeb4-e9e8-4c99-b26d-bd10488c4082/scratchpad/et_repros/plain/21_complex_rotary_mixed_dtypes.py", line 15, in forward
    return torch.view_as_real(xq_ * freqs_cis).flatten(3).type_as(xq)
Please make sure the dtypes of the Tensor inputs are the same as the dtypes of the corresponding outputs.

8. No finite upper bound for a floordiv of two data-dependent sizes

Hit by: MiniMax-M3-VL

The memory planner needs a bound for u0 // u1 and gets int_oo.

Repro and error
import math

import torch
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import to_edge_transform_and_lower

PARTITIONER = [XnnpackPartitioner()]


class M(torch.nn.Module):
    """A size from two data-dependent values, as MiniMax-M3-VL's lightning indexer computes its block count."""

    def forward(self, x, total, block):
        n, d = total.item(), block.item()
        torch._check(n >= 0)
        torch._check(d >= 1)
        return torch.zeros(n // d, x.shape[-1]) + x[:1]


ep = torch.export.export(M(), (torch.randn(4, 8), torch.tensor(12), torch.tensor(4)))

to_edge_transform_and_lower(ep, partitioner=PARTITIONER).to_executorch()
RuntimeError: Cannot evaluate a finite upper bound for symbolic expression (u14//u15) (int_oo) and no trace hint is available.

9. bernoulli.p isn't in core ATen and has no decomposition

Hit by: SpeechT5

Consistent dropout in the speech decoder prenet.

Repro and error
import math

import torch
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import to_edge_transform_and_lower

PARTITIONER = [XnnpackPartitioner()]


class M(torch.nn.Module):
    """SpeechT5's consistent dropout: `torch.bernoulli(x, p)`, the `bernoulli.p` overload."""

    def forward(self, x):
        return x * torch.bernoulli(x, p=0.5)


ep = torch.export.export(M(), (torch.rand(2, 4),))

to_edge_transform_and_lower(ep, partitioner=PARTITIONER).to_executorch()
torch._export.verifier.SpecViolationError: 
Operator torch._ops.aten.bernoulli.p is not in Core ATen opset (https://pytorch.org/docs/stable/torch.compiler_ir.html#core-aten-ir)."
There are a few things to try:
1. You can proceed with `to_edge(compile_config=EdgeCompileConfig(_core_aten_ops_exception_list=[torch.ops.aten.bernoulli.p]))`.
   Please make sure that the backend(s) you are planning to lower to is able to handle aten.bernoulli.p, or you have a corresponding kernel linked to your runtime.
2. Sometimes inference and training gives slightly different op set. Try adding `with torch.no_grad():` context manager if you are export for inference only.
3. If the error persists after 2, this is likely caused by torch.export() + core ATen decomposition producing unexpected operators for your model.
   If you believe this operator should be included into core ATen opset, please create an issue in https://github.com/pytorch/pytorch/issues and add `module: core aten` tag.

10. math.floor on a SymInt can't be emitted

Hit by: Swin, FocalNet, Depth Pro

Window and patch counts computed with math.floor on dynamic sizes.

Repro and error
import math

import torch
from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import to_edge_transform_and_lower

PARTITIONER = [XnnpackPartitioner()]


class M(torch.nn.Module):
    def forward(self, x):
        return x[: math.floor(x.shape[0] / 3)]


ep = torch.export.export(M(), (torch.randn(8, 4),), dynamic_shapes=({0: torch.export.Dim.AUTO},))

to_edge_transform_and_lower(ep, partitioner=PARTITIONER).to_executorch()
AttributeError: 'builtin_function_or_method' object has no attribute '_schema'

IlyasMoutawwakil avatar Nov 26 '26 10:11 IlyasMoutawwakil

Hi @IlyasMoutawwakil, I'd like to take item 1: operator.pow on a SymInt has no emitter target. I'll open an issue in pytorch/executorch with the repro, then a PR with the fix and a test, and I'll link both here. Thank you

saeekailas avatar Nov 26 '26 13:11 saeekailas

@saeekailas one item at a time across the four trackers pls, it's the rule in all of them πŸ™ kept your first one (openvino item 1, torch.sym_float) and freed this one and the others. once its upstream PR is merged you can grab another.

you can still go fix the freed ones on your own if you want, but then it's outside the trackers: don't mention them or us for eligibility, and we won't help with the review there

IlyasMoutawwakil avatar Nov 26 '26 14:11 IlyasMoutawwakil

Hi @IlyasMoutawwakil, I've been playing around with ExecuTorch and XNNPACK on Rockchip SoCs recently, and so could I please be assigned to Item 2: XNNPACK partitions prelu on a 3-D input, then ChannelsLastTaggedReshapePass fails on it?

I was able to reproduce the issue with the minimal repro given. I also tried reproducing the issue with the affected models: DAB-DETR and UVDoc. When I removed the workaround patch from transformers and tried exporting DAB-DETR, I encountered the same bug but UVDoc exported fine, so I think it may not really be affected by this issue.

I went through the transformers patch for this issue and I think an equivalent change on ExecuTorch’s repo should work: a rank check for letting 4-D inputs go through this, while non-4-D inputs fall back to default decomposition. Another operator (max.dim) seems to be handled the same way for XNNPACK.

Once I’ve tested if that works properly, I will open an issue with the repro and raise a PR. Please let me know if this sounds good, or if I should change anything in my approach. Thanks!

VyoJ avatar Nov 26 '26 18:11 VyoJ

@VyoJ all yours, added you next to item 2! a rank check in the xnnpack partitioner like max.dim sounds right. and nice catch on uvdoc: if it really exports fine without our patch i'll drop it from the item

IlyasMoutawwakil avatar Nov 26 '26 19:11 IlyasMoutawwakil

Hi @IlyasMoutawwakil This is such a great initiative because open-source issues generally feel pretty intimidating (and sometimes downright discouraging ;-; ) when just getting started x)), so thank you for putting this together ! I'd also love to take on issue 4. No portable kernel or core-ATen decomposition for cummax / cummin if it's still available. Could you assign it to me please?

khola22 avatar Nov 26 '26 23:11 khola22

@khola22 thank you, that's exactly why we made it, so it's really nice to hear! Item 4 is yours, I added your handle next to it (we don't assign issues, the handle is the claim). Take your time, and link the executorch issue and PR here once they're up. Good luck, and have fun with it πŸ€—

IlyasMoutawwakil avatar Nov 27 '26 00:11 IlyasMoutawwakil

Hi @IlyasMoutawwakil, I'd like to take item 1: operator.pow on a SymInt has no emitter target (hit by SeamlessM4T). I have verified the repro and the mul-chain decomposition. I will open an upstream issue in pytorch/executorch with the minimal repro, submit the PR with a regression test, and link both here. Thank you!

themanoj-025 avatar Nov 27 '26 01:11 themanoj-025

Update on item 1: I opened the upstream issue in pytorch/executorch: https://github.com/pytorch/executorch/issues/25767 And submitted the fix and regression test in PR: https://github.com/pytorch/executorch/pull/25768

themanoj-025 avatar Nov 27 '26 01:11 themanoj-025

Hi @IlyasMoutawwakil, could I take item 10 (math.floor on a SymInt)?

I reproduced it locally on ExecuTorch main: ceil, round, and trunc are registered in executorch_prim_ops_registry.py and register_prim_ops.cpp, but floor is not. Once you confirm it's free, I'll open the ExecuTorch issue and PR and link them here.

abaybektursun avatar Nov 27 '26 03:11 abaybektursun

@abaybektursun all yours, added you next to item 10 πŸ™Œ and nice digging on the registry, registering floor next to ceil/round/trunc sounds right

IlyasMoutawwakil avatar Nov 27 '26 08:11 IlyasMoutawwakil

@themanoj-025 thanks for the energy! it's one item at a time across the four trackers though, and you're on openvino item 2, so item 1 here stays free for now. please close the executorch issue and PR you opened for it too: several at once upstream is exactly what gets accounts flagged there. come back for another once your openvino one's merged πŸ™

IlyasMoutawwakil avatar Nov 27 '26 08:11 IlyasMoutawwakil

Thanks @IlyasMoutawwakil! Opened the upstream issue and PR for item 10:

  • Issue: https://github.com/pytorch/executorch/issues/25772
  • PR: https://github.com/pytorch/executorch/pull/25773

abaybektursun avatar Nov 27 '26 10:11 abaybektursun

Update on item 3 (XNNPACK's \RemoveCloneOpsTransform\ folds a clone onto an input that is also an output):

  • Upstream issue opened in pytorch/executorch: https://github.com/pytorch/executorch/issues/25774
  • Upstream PR submitted with fix and regression test: https://github.com/pytorch/executorch/pull/25775

themanoj-025 avatar Nov 27 '26 10:11 themanoj-025

@abaybektursun nice, thanks for linking them! the PR looks clean, I'll tick item 10 once it's merged, and once it ships in an executorch release you can open the transformers PR dropping our patch πŸ™Œ

IlyasMoutawwakil avatar Nov 27 '26 19:11 IlyasMoutawwakil

@themanoj-025 I really appreciate the drive, but this is the second ask: it's one item at a time across the four trackers, and yours is openvino item 2. items 1 and 3 here and both pytorch items aren't yours, so please close pytorch/executorch#25767, #25768, #25774, #25775 and pytorch/pytorch#206839, #206840, #206844, #206845. also please don't run merge commands on your PRs, the maintainers merge them. once your openvino one's merged you're very welcome to grab the next πŸ™

IlyasMoutawwakil avatar Nov 27 '26 19:11 IlyasMoutawwakil

@IlyasMoutawwakil thanks for this effort, this is great!

anyone working on xnnpack or kernel PRs can tag me in them and I will help review.

I would love to see how many of these we can burn down in time for 1.7 which will be cut sometime in mid December afaik

JakeStevens avatar Nov 30 '26 19:11 JakeStevens

@themanoj-025 you can keep the clone fold PR open (https://github.com/pytorch/executorch/pull/25775) as I had already taken a look at it but please do respect Ilyas' direction

JakeStevens avatar Nov 30 '26 20:11 JakeStevens

hi @IlyasMoutawwakil, i'd like to take item 6 if it's free

i ran the reproducer on main (035df438) and got GuardOnDataDependentSymNode on u5 < 1

i think its because u5 might be 0, so PyTorch can't decide, and theres a rule in K.__lt__ for "yes" but not for "no" for the comparison u5 < 1

i used claude to help trace it. if it's ok with you, i'll open an issue in pytorch/executorch with the repro, then a PR with a fix and a test

seo-joon avatar Dec 01 '26 04:12 seo-joon

@JakeStevens thank you, that's super helpful! I'll point people to you on XNNPACK and kernel PRs, and let's burn down as many as we can before 1.7. noted on pytorch/executorch#25775, I linked it next to item 3 πŸ™

@seo-joon item 6 is yours, added you next to it. go ahead with the issue then the PR, written by you: using Claude to trace it is fine πŸ™Œ

@samudraneel05 item 5 is yours (item 3 on the onnx tracker turned out already fixed upstream).

IlyasMoutawwakil avatar Dec 01 '26 11:12 IlyasMoutawwakil

@IlyasMoutawwakil update on item 6:

  • issue: pytorch/executorch#25961
  • PR: pytorch/executorch#25964 (CLA signed, waiting for review)

seo-joon avatar Dec 02 '26 04:12 seo-joon