Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.aten.arange.start_step to linalg #573

Closed
Tracked by #347
saienduri opened this issue Mar 28, 2024 · 1 comment
Closed
Tracked by #347

torch.aten.arange.start_step to linalg #573

saienduri opened this issue Mar 28, 2024 · 1 comment
Assignees

Comments

@saienduri
Copy link
Contributor

saienduri commented Mar 28, 2024

We are running into following issues when onnx is lowering into torch.aten.triu in these models (llama2-7b-hf). Repro instructions can be found here::

llama2-7b-hf.default.pytorch.torch.mlir:315:12: error: failed to legalize operation 'torch.aten.arange.start_step' that was explicitly marked illegal
    %306 = torch.aten.triu %304, %305 : !torch.vtensor<[8,8],f32>, !torch.int -> !torch.vtensor<[8,8],f32>
           ^
llama2-7b-hf.default.pytorch.torch.mlir:315:12: note: see current operation: %382 = "torch.aten.arange.start_step"(%325, %21, %327, %324, %324, %324, %324) : (!torch.int, !torch.int, !torch.int, !torch.none, !torch.none, !torch.none, !torch.none) -> !torch.vtensor
@AmosLewis AmosLewis changed the title torch.aten.triu torch.aten.arange.start_step to linalg Apr 19, 2024
@zjgarvey
Copy link
Collaborator

zjgarvey commented May 9, 2024

@saienduri I'm assuming this came about when running without --torchtolinalg, correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants