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

feat: support torch npu #125

Merged
merged 16 commits into from
Aug 30, 2024
Merged

feat: support torch npu #125

merged 16 commits into from
Aug 30, 2024

Conversation

jingguo-st
Copy link
Contributor

deeplin_ext support torch_npu backend

@jingguo-st jingguo-st changed the title feat/support torch npu feat: support torch npu Aug 28, 2024
ApplyRotaryEmb, "npu", input_dtype, input_ext, cos, sin, interleaved
)
assert allclose(
output_ref, output_ext, rtol=1e-2, atol=5e-2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个误差太大了,有风险。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个精度在DIOPI中也不高,可能还要看一下怎么提升

@yangbofun
Copy link
Collaborator

后面可以统一下测例,并加一个针对不同平台的精度配置

@yangbofun yangbofun merged commit 7fd32dc into main Aug 30, 2024
7 checks passed
@yangbofun yangbofun deleted the feat/support-torch-npu branch August 30, 2024 08:41
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

Successfully merging this pull request may close these issues.

3 participants