Skip to content

[TPU] Add tensor parallel support for TPU backend#14075

Draft
JingyaHuang wants to merge 42 commits into
huggingface:mainfrom
JingyaHuang:extend-tp-to-tpu
Draft

[TPU] Add tensor parallel support for TPU backend#14075
JingyaHuang wants to merge 42 commits into
huggingface:mainfrom
JingyaHuang:extend-tp-to-tpu

Conversation

@JingyaHuang

Copy link
Copy Markdown
Contributor

What does this PR do?

Following the addition of tensor parallelism in #13718, this PR extends the support to TPU.

This is a preparation based on TorchTPU beta before the official release.

The existing TP hook (TensorParallelConfig) already supported Neuron, this PR adds a TPU backend in tensor_parallel_tpu.py that is auto-selected when the DeviceMesh device type is "tpu".

Who can review?

Anyone in the community is free to review the PR once the tests have passed.

JingyaHuang and others added 30 commits March 18, 2026 11:15
@github-actions github-actions Bot added size/L PR with diff > 200 LOC documentation Improvements or additions to documentation models tests utils pipelines hooks and removed size/L PR with diff > 200 LOC labels Jun 26, 2026
@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation hooks models pipelines tests utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants