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

Add torch.float8_e4m3fn format dtype_byte_size #2945

Merged
merged 3 commits into from
Jul 20, 2024
Merged

Add torch.float8_e4m3fn format dtype_byte_size #2945

merged 3 commits into from
Jul 20, 2024

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Jul 18, 2024

What does this PR do?

This PR adds the torch.float8_e4m3fn in dtype_byte_size function, so that we can calculate the memory required for this specific datatype

@SunMarc SunMarc requested a review from muellerzr July 18, 2024 23: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

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Nice! Note we need a check here, this dtype was only added in torch 2.1.0: pytorch/pytorch@b64bd4a

@SunMarc SunMarc requested a review from muellerzr July 19, 2024 00:49
@SunMarc
Copy link
Member Author

SunMarc commented Jul 19, 2024

Nice! Note we need a check here, this dtype was only added in torch 2.1.0: pytorch/pytorch@b64bd4a

Thanks for checking !

Copy link
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Nice :) LG2M post quality pass ;)

@SunMarc SunMarc merged commit a5a3e57 into main Jul 20, 2024
28 checks passed
@SunMarc SunMarc deleted the add-fp8 branch July 20, 2024 01:07
@BenjaminBossan BenjaminBossan mentioned this pull request Jul 22, 2024
5 tasks
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