Skip to content

Decouple device_map='auto' and tp_plan='auto' #38942

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Jun 20, 2025

What does this PR do?

Fixes #38771.
This PR decouples device_map='auto' and tp_plan='auto'. Before, launching a distributed run when the device_map was set to "auto" triggered TP. We removed that and the user should instead pass tp_plan="auto" or tp_size to tigger TP.
Also, we warn/info that this might lead to an unexpected behavior with someone tries to run a distributed run with device_map = "auto".

@SunMarc SunMarc requested a review from ArthurZucker June 20, 2025 14:18
@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
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

as it is a bit breaking let's add warning to the title PR

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.

device_map='auto' coupled with tp_plan='auto'
3 participants