-
Notifications
You must be signed in to change notification settings - Fork 64
Support different dtype for LinearCombination #556
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
base: main
Are you sure you want to change the base?
Support different dtype for LinearCombination #556
Conversation
Fix for supporting different data type for LinearCombination Output and Compute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| typename TiledMMAHelper<MMA_Atom<XE_8x16x16_F32F16F16F32_TT>, Layout<Shape<_32, _128, _32>>, | ||
| Layout<Shape<_1, _4, _1>, Stride<_4, _1, _0>>>::TiledMMA, | ||
| XE_2D_U16x32x32_LD_N, XE_2D_U4x32x16_LD_T, XE_2D_U16x8x16_ST_N, | ||
| XE_2D_U16x32x32_LD_N, XE_2D_U4x32x16_LD_T, XE_2D_U32x8x16_ST_N, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think it's better to add copy_traits for both C and D for different data type. XE_2D_U16x8x16_ST_N here
means storing to D as F16, you shouldn't change it. If you want to store D as F32, you should add a new
GemmConfiguration for it. - can you refine the data type name in "FP16U4FP16F16FP16S4" according to your changes.
The data type " FP16U4FP16F16FP16S4 " in the name are: A, B, C, Mma, Scale, Zero
| using CollectiveEpilogue = cutlass::epilogue::collective::CollectiveEpilogue< | ||
| EpilogueDispatchPolicy, | ||
| TileShape, | ||
| ElementAccumulator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be ElementC, right?
Fix for supporting different data type for
LinearCombination Output and Compute.