-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Backend]: Support device backend registration for a wide range of third-party hardware #20349
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
base: master
Are you sure you want to change the base?
Conversation
Examples here: https://github.com/uniartisan/RWKV-PEFT/blob/device-enhance/train.py#L499 There are a lot of things to be checked, I will try to do it later and make it more clear in documentation |
f863645
to
baf3e5c
Compare
ae3ae6b
to
ce680a2
Compare
8f0b3d6
to
2a89640
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20349 +/- ##
========================================
- Coverage 87% 86% -1%
========================================
Files 268 268
Lines 23442 23521 +79
========================================
- Hits 20394 20287 -107
- Misses 3048 3234 +186 |
1c83154
to
15595bf
Compare
for more information, see https://pre-commit.ci
c0a62ec
to
8cde331
Compare
bdb81d4
to
01a931d
Compare
01a931d
to
5cdd9e7
Compare
will you add DirectML? |
What I've added is the code for plug-in registration, which means you can register Direct ML by yourself. Just write a few simple function 🤓 |
Thank you @uniartisan! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://lightning.ai/docs/pytorch/latest/generated/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Discord. Thank you for your contributions. |
This pull request is going to be closed. Please feel free to reopen it or create a new one based on top of the 'master' branch. |
@lantiga Hello, since pytorch 2.3, it has started to support Intel's SYCL post-computing device, alias torch.xpu, so I wonder if we can promote the landing of this PR. Is there anything I can do? |
What does this PR do?
Thank you to the lightning team for providing such an easy-to-use, clearly designed library.
The pr draft hopes to provide better registration support for a wide range of third-party hardware, and the pr is designed to integrate third-party hardware with minimal intrusive changes, including intel XPU and more.
Fixes #<issue_number>
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--20349.org.readthedocs.build/en/20349/