Skip to content

feat: added fine tuning example focused on TPUs#3847

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

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

Conversation

@tengomucho

Copy link
Copy Markdown
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

Copy link
Copy Markdown

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.

@SunMarc SunMarc left a comment

Copy link
Copy Markdown
Member

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

Comment thread examples/finetune_lm_tpu.py
@SunMarc

SunMarc commented Nov 24, 2025

Copy link
Copy Markdown
Member

@bot /style

@github-actions

Copy link
Copy Markdown
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