Split bf16 and fp16 out for CK fp8_rowwise #4419
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
While integrating AMD fp8 rowwise in torch, I noticed the library size is a lot larger than FBGEMM 1.2.0. The cause is we recently added support for fp16 output (in addition to bf16) in fp8 rowwise in D74770197, so this would cause the size to double. You can also see this in the nightly wheel - AMD goes from
This diff does 2 changes:
fp8_rowwise_common.h
, this will let us control which kernels to add in, e.g. only add bf16 out for torch.Differential Revision: D77544503