Skip to content
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

Support FP8 mixed precision training for Ada Lovelace GPUs #1348

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

Dango233
Copy link
Contributor

As mentioned in NVIDIA/TransformerEngine#15 (comment)

Today a CUDA Toolkit 12.1 update 1 was released. It contains cuBLAS 12.1.3.1 enabling FP8 kernels for Ada. With this version of cuBLAS together with Transformer Engine 0.7 which added Ada to the compilation targets, FP8 computation is now supported on Ada.

GPUs with computation capacity 8.9, (Ada Lovelace, includes RTX4xxx and RTX6000ada) can now benifit from FP8 acceleration with CUDA Toolkit 12.1 update 1 and Transformer Engine 0.7.

This pull request reflects the change.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 22, 2023

The documentation is not available anymore as the PR was closed or merged.

@muellerzr muellerzr requested a review from sgugger April 22, 2023 18:45
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for your PR!

Comment on lines 1277 to 1278
"insufficient for FP8 mixed precision training (requires a GPU Hopper or higher, compute "
"capability of 9 or higher). Will use FP16 instead."
Copy link
Collaborator

Choose a reason for hiding this comment

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

The rest of the error message needs to be updated as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated! Thank you :D

@Dango233 Dango233 requested a review from sgugger April 24, 2023 15:50
@sgugger sgugger merged commit e06e7b3 into huggingface:main Apr 24, 2023
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