Skip to content

feat: added fine tuning example focused on TPUs#3847

Merged
tengomucho merged 3 commits intomainfrom
tpu-finetune-example
Nov 24, 2025
Merged

feat: added fine tuning example focused on TPUs#3847
tengomucho merged 3 commits intomainfrom
tpu-finetune-example

Conversation

@tengomucho
Copy link
Contributor

The example script is focused on showing off fine-tuning is possible with current version of accelerate and it is written to be run on TPUs. It has been successfully run and tested on a TPU v5 litepod-8, and it shows how it is possible to perform a fine-tuning task on such hardware thanks to accelerate and FSDPv2, using transformers and Torch XLA.

The example script is focused on showing off fine-tuning is possible
with current version of accelerate and it is written to be run on TPUs.
It has been successfully run and tested on a TPU v5 litepod-8, and it
shows how it is possible to perform a fine-tuning task on such hardware
thanks to accelerate and FSDPv2, using transformers and Torch XLA.
@tengomucho tengomucho requested a review from SunMarc November 24, 2025 15:26
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot ! Just a minor nit

@SunMarc
Copy link
Member

SunMarc commented Nov 24, 2025

@bot /style

@github-actions
Copy link
Contributor

Style fix is beginning .... View the workflow run here.

@tengomucho tengomucho merged commit 9a20895 into main Nov 24, 2025
29 checks passed
@tengomucho tengomucho deleted the tpu-finetune-example branch November 24, 2025 16:40
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.

3 participants