Skip to content

Conversation

fmo-mt
Copy link
Contributor

@fmo-mt fmo-mt commented Aug 31, 2025

What does this PR do?

Add BF16 support for MUSA backend.

We met an unsupported error when setting bf16: True in a sft config file, and found that is_torch_bf16_gpu_available doesn't check for torch_musa while MUSA do support that.

cc @muellerzr @SunMarc @amyeroberts

@fmo-mt fmo-mt changed the title add musa bf16 supported Add bf16 supported for MUSA backend Aug 31, 2025
@fmo-mt fmo-mt changed the title Add bf16 supported for MUSA backend Add BF16 support check for MUSA backend Aug 31, 2025
Copy link
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 ! Thanks for adding this !

@SunMarc SunMarc enabled auto-merge (squash) September 1, 2025 09:26
@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.

@fmo-mt
Copy link
Contributor Author

fmo-mt commented Sep 2, 2025

@SunMarc Hi, I see there're some ci failures, but I don't think this PR is related, can you help to take a look, please?

@SunMarc SunMarc merged commit 2a1eb5b into huggingface:main Sep 8, 2025
23 checks passed
@fmo-mt fmo-mt deleted the update-musa branch September 15, 2025 05:54
vijayabhaskar-ev pushed a commit to vijayabhaskar-ev/transformers that referenced this pull request Oct 2, 2025
add musa bf16 supported

Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
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