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

[TPU] Rename classes to use XLA instead of TPU #17383

Merged
merged 23 commits into from
Apr 28, 2023

Conversation

carmocca
Copy link
Contributor

@carmocca carmocca commented Apr 14, 2023

What does this PR do?

Part of #16130

Not only TPUs can be XLA devices (see #16130)

This PR renames:

  • (fabric, trainer) SingleTPUStrategy to SingleDeviceXLAStrategy (rhyme with XLAStrategy)
  • (fabric, Trainer) TPUAccelerator to XLAAccelerator
  • (trainer) TPUPrecisionPlugin to XLAPrecisionPlugin
  • (fabric) TPUPrecision to XLAPrecision
  • (trainer) TPUBf16PrecisionPlugin to XLABf16PrecisionPlugin
  • (fabric) TPUBf16Precision to XLABf16Precision

The deprecation is done through the graveyard. There's no removal version for the deprecations.
Please note that the XLA strategies are marked as experimental.
Still, there should be no breaking changes

cc @Borda @justusschock @awaelchli @tchaton @carmocca @JackCaoG @steventk-g @Liyang90

@carmocca carmocca added this to the 2.1 milestone Apr 14, 2023
@carmocca carmocca self-assigned this Apr 14, 2023
@github-actions github-actions bot added fabric lightning.fabric.Fabric pl Generic label for PyTorch Lightning package labels Apr 14, 2023
@carmocca carmocca changed the title Rename SingleTPUStrategy [TPU] Rename SingleTPUStrategy Apr 19, 2023
@carmocca carmocca added deprecation Includes a deprecation strategy: xla labels Apr 26, 2023
@carmocca carmocca changed the title [TPU] Rename SingleTPUStrategy [TPU] Rename classes to use XLA instead of TPU Apr 26, 2023
@carmocca carmocca force-pushed the carmocca/single-tpu-strategy-rename branch from 48e767b to b3a43b6 Compare April 27, 2023 01:35
@carmocca carmocca marked this pull request as ready for review April 27, 2023 01:36
@mergify mergify bot removed the has conflicts label Apr 27, 2023
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #17383 (567af25) into master (77889aa) will decrease coverage by 8%.
The diff coverage is 100%.

❗ Current head 567af25 differs from pull request most recent head 2ad0380. Consider uploading reports for the commit 2ad0380 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #17383     +/-   ##
=========================================
- Coverage      70%      62%     -8%     
=========================================
  Files         416      412      -4     
  Lines       31524    31523      -1     
=========================================
- Hits        21910    19541   -2369     
- Misses       9614    11982   +2368     

@mergify mergify bot removed the has conflicts label Apr 27, 2023
@mergify mergify bot removed the has conflicts label Apr 28, 2023
@mergify mergify bot added ready PRs ready to be merged has conflicts and removed ready PRs ready to be merged labels Apr 28, 2023
@mergify mergify bot added ready PRs ready to be merged and removed has conflicts ready PRs ready to be merged labels Apr 28, 2023
@carmocca carmocca requested a review from awaelchli April 28, 2023 16:22
@carmocca carmocca enabled auto-merge (squash) April 28, 2023 16:23
@carmocca carmocca merged commit 6ec9a6b into master Apr 28, 2023
@carmocca carmocca deleted the carmocca/single-tpu-strategy-rename branch April 28, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Includes a deprecation fabric lightning.fabric.Fabric pl Generic label for PyTorch Lightning package ready PRs ready to be merged refactor strategy: xla
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants