Skip to content

Support TF32 flag for MUSA backend#33187

Merged
SunMarc merged 6 commits intohuggingface:mainfrom
fmo-mt:main
Sep 2, 2025
Merged

Support TF32 flag for MUSA backend#33187
SunMarc merged 6 commits intohuggingface:mainfrom
fmo-mt:main

Conversation

@fmo-mt
Copy link
Copy Markdown
Contributor

@fmo-mt fmo-mt commented Aug 29, 2024

What does this PR do?

Since both accelerate and transformers have merged the supporting of MUSA backend (see #31913 ), we have trained several models on our MTGPU.

Recently we met an issue that if we enable TF32 by adding flag of --tf32 from accelerate or deepspeed, it would fail while we already support TF32 computing on MUSA (ref: here ), so we'd like to enable this feature from transformers.

cc @muellerzr @SunMarc @amyeroberts

@Rocketknight1
Copy link
Copy Markdown
Member

cc @SunMarc I think!

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

Nice PR, thanks for adding this !

@SunMarc SunMarc enabled auto-merge (squash) September 2, 2025 16:18
@SunMarc SunMarc merged commit d47ad91 into huggingface:main Sep 2, 2025
24 checks passed
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants