Closed vkuzo closed 3 months ago
@vkuzo has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@vkuzo has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@vkuzo has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
This pull request has been merged in pytorch-labs/float8_experimental@214da1f88c986f97444f97c5aa09b2e45bef62ee.
Stack from ghstack (oldest at bottom):
351
350
349
348
347
346
344
Summary:
This is a start of a cleanup of private casting functions in preparation for rowwise scaling. In this PR:
float8_scaling_utils.py
to unify functions which take a high precision tensor and return a float8 tensor, taking care of scalingFloat8Tensor.to_float8
and move callsites toToFloat8ConstrFunc
, since the two functions do the same thingThe end result is a slightly cleaner state, future PRs will do more cleanups.
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Differential Revision: D60291448