[Merged through #155] Add support for npu kernelize#146
[Merged through #155] Add support for npu kernelize#146zheliuyu wants to merge 9 commits intohuggingface:mainfrom zheliuyu:main
Conversation
|
@danieldk Hi, we have added support for npu to the kernels. This pr is ready for review. Thanks! |
|
Thanks for the PR! Are you also planning to add support to kernel-builder (since it's the best way to build compliant kernels)? |
danieldk
left a comment
There was a problem hiding this comment.
Bunch of suggestions, also some questions about compatibility between versions, etc.
Thanks for asking! Yes, we are actively working on adding npu support to |
Co-authored-by: Daniël de Kok <me@danieldk.eu>
|
On NPU: pytest -v ./kernels/tests/ |
|
@danieldk |
Nice! 🚀 I'll try to do another review pass today or Monday. |
Supplement test by transformers
script:output: |
This change add support for Huawei Ascend NPUs. This is #146 with some formatting/typing fixes. Co-authored-by: zheliuyu <15750543867@163.com>
What does this PR do?
Add support for npu kernelize.
Checklist Before Starting
Test
On GPU: pytest -v test_layer.py
On NPU: pytest -v test_layer.py