Skip to content

Fix distributed gather compatibility with PyTorch < 2.6#13993

Open
Whning0513 wants to merge 1 commit into
huggingface:mainfrom
Whning0513:fix-issue-13074
Open

Fix distributed gather compatibility with PyTorch < 2.6#13993
Whning0513 wants to merge 1 commit into
huggingface:mainfrom
Whning0513:fix-issue-13074

Conversation

@Whning0513

@Whning0513 Whning0513 commented Jun 19, 2026

Copy link
Copy Markdown

torch.accelerator.current_accelerator() is only available in PyTorch 2.6+. Added a fallback for older versions.

@github-actions github-actions Bot added size/L PR with diff > 200 LOC fixes-issue models and removed fixes-issue labels Jun 19, 2026
@Whning0513 Whning0513 changed the title Fix #13074: Distributed gather 在 PyTorch < 2.6 上崩溃 Fix distributed gather compatibility with PyTorch < 2.6 Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi @Whning0513, thanks for the PR! It does not appear to link an issue it fixes. If this PR addresses an existing issue, please add a closing keyword (e.g. Fixes #1234) to the PR description so the issue is linked. See the contribution guide for more details. If this PR intentionally does not fix a tracked issue, a maintainer can add the no-issue-needed label to silence this reminder.

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

Labels

models size/L PR with diff > 200 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant