-
Notifications
You must be signed in to change notification settings - Fork 471
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
initial commit #1953
initial commit #1953
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1953
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c6fafc7 with merge base b5d2e63 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Hi @songhappy! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Hi @songhappy thanks for the PR. Is the purpose here to enable training on XPU in torchtune? If so, can you share more context in the summary (e.g. is the bf16 support check the only change that needs to be made)? |
@ebsmothers thank you very much for reviewing, I just rebased with new main branch, addressed in the summary that the only change needed is to verify bf16 support, it is very minor change. |
Hey @songhappy. Thanks for this PR. Could you please try run a recipe with |
Here is the command:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1953 +/- ##
==========================================
- Coverage 68.22% 64.26% -3.97%
==========================================
Files 323 326 +3
Lines 17962 18470 +508
==========================================
- Hits 12255 11870 -385
- Misses 5707 6600 +893 ☔ View full report in Codecov by Sentry. |
@songhappy could you please run our pre-commit hooks to lint your code? There's instructions here https://github.com/pytorch/torchtune/blob/main/CONTRIBUTING.md#coding-style |
many thanks, I have addressed all the comments, all ready to merger, please approve :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last thing and we're good to go. Stamping to unblock - thanks so much for adding this!
Context
What is the purpose of this PR? Is it to
Please link to any issues this PR addresses.
https://jira.devtools.intel.com/browse/IPB-2799
Changelog
What are the changes made in this PR?
*
Add xpu_support in verify_bf16_support, the only change needed is to verify if both torch.xpu.is_available() and torch.xpu.is_bf16_supported() are true.
Test plan
Please make sure to do each of the following if applicable to your PR. If you're unsure about any one of these just ask and we will happily help. We also have a contributing page for some guidance on contributing.
UX
If your function changed a public API, please add a dummy example of what the user experience will look like when calling it.
Here is a docstring example
and a tutorial example