-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve the precision of the FusedAddRMSNormKernel function (#587)
When `sizeof(T) == 2`, the sum of the read `input` and `residual` (float `x`) is split into two parts, high and low 16 bits, and saved to `input` and `residual` respectively. Later, `input` and `residual` are read out and combined to `x`, with the aim of improving the precision of the subsequent `x * rms_rcp` operation. Increase precision from 1e-2 to 1e-3.
- Loading branch information
Showing
2 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters