No portable kernel or core-ATen decomposition for cummax / cummin
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend, machine-learning
Hướng nghiên cứu
Start by tracing how ExecuTorch handles Core ATen decompositions and portable kernels for aten.cummax.default; the issue does not name specific source files or tests. Reproduce the failure with the minimal torch.export.export example and to_edge_transform_and_lower. Done means export succeeds and produces a .pte through a supported decomposition or portable kernel.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is item 4 of the tracker for ExecuTorch export bugs hit by 🤗 Transformers models (Grounding DINO, MM Grounding DINO, ESMFold2, Qwen3-Omni-MoE):
https://github.com/huggingface/transformers/issues/51303
🐛 bug description
Exporting a model that uses torch.cummax fails in to_edge_transform_and_lower, because aten.cummax.default is not in the Core ATen opset and has no decomposition or portable kernel.
Minimal repro (no transformers needed):
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()
Observed error:
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.
Expected: the export succeeds and produces a .pte (e.g. via a decomposition into supported ops, or a portable kernel for cummax).
Versions
PyTorch version: 2.15.0
Is debug build: False
CUDA used to build PyTorch: None
ROCm SDK used to build PyTorch: N/A
HIP used to build PyTorch: N/A
OS: macOS 26.6.2 (arm64)
GCC version: Could not collect
Clang version: 21.0.0 (clang-2100.4.1.1)
CMake version: version 3.31.5
Libc version: N/A
Python version: 3.15.2 (main, Oct 25 2026, 16:57:51) [Clang 21.0.0 (clang-2100.3.34.2)] (64-bit runtime)
Python platform: macOS-26.6.2-arm64-arm-64bit-Mach-O
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Is XPU available: False
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: False
Caching allocator config: N/A
CPU:
Apple M1
Versions of relevant libraries:
[pip3] executorch==1.6.0
[pip3] numpy==2.5.5
[pip3] pytorch_tokenizers==1.6.0
[pip3] torch==2.15.0
[pip3] torchao==0.18.0
[conda] Could not collect
- Ngôn ngữ chính
- Python
- Star
- 5.2k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 644
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pytorch/executorch
-
to_edge_transform_and_lower ignores some ops_to_not_decompose requests: multi-output ops, and non-core ops without a decompositionCó thể đã có người làm @Eureka-Zhang đã nhận 7 ngày trước. Đang mởmodule: exir
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
pytorch/executorch#25620 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Qualcomm AI Engine Direct - fp16a8w quantization crashes on layer_normCó thể đã có người làm @psiddh đã nhận 21 ngày trước. Đang mởbug module: qnn partner: qualcomm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
pytorch/executorch#24434 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement triaged
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
pytorch/executorch#21640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
quantize_per_channel and dequantize_per_tensor.tensor abort the process on a float32 scaleCó thể đã có người làm @AxelNoun đã nhận hôm nay. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
pytorch/executorch#25873 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
XNNPACK INT4 linear returns incorrect per-channel outputs and fails groupwise FP16 on Apple M4 MaxCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug module: quantization module: xnnpack
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
pytorch/executorch#25854 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pytorch/executorch
Issue tương tự
-
Container fails to start when GitHub Releases is unavailable: uv run re-downloads the tvl wheelĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
trezor/trezor-user-env#421 ·
-
Support new version of pythonĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
tangentcode/tangentswarm#167 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày