Skip to content

continue to fix distributed_type from TPU to XLA in LM examples (#38652)#38888

Open
PT0X0E wants to merge 1 commit intohuggingface:mainfrom
PT0X0E:fix_DistributedType_in_LM_examples
Open

continue to fix distributed_type from TPU to XLA in LM examples (#38652)#38888
PT0X0E wants to merge 1 commit intohuggingface:mainfrom
PT0X0E:fix_DistributedType_in_LM_examples

Conversation

@PT0X0E
Copy link
Copy Markdown

@PT0X0E PT0X0E commented Jun 18, 2025

What does this PR do?

In some language-modeling and image-pretraining examples, the _no_trainer version training scripts check whether accelerator.distributed_type is TPU. However, TPU is already deprecated in new Accelerator library. They should be changed to XLA.

This is a follow-up fix of #38652 .

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@Rocketknight1
Copy link
Copy Markdown
Member

cc @SunMarc

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.

2 participants