pytorch-labs / float8_experimental

This repository contains the experimental PyTorch native float8 training UX
BSD 3-Clause "New" or "Revised" License
212 stars 20 forks source link

[8/x] make single linear profiling script work with Float8 scaling type #299

Closed vkuzo closed 3 months ago

vkuzo commented 3 months ago

Stack from ghstack (oldest at bottom):

Summary:

Makes benchmarks/bench_linear_float8.py support per-tensor scaling configurations.

Verified that performance is as we expect

Test Plan:

paste of testing for delayed -> dynamic, changing the tensors one by one: https://gist.github.com/vkuzo/9e8f995e51ef16f483347c0f86bb0ac3

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D59305789

vkuzo commented 3 months ago

@vkuzo has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 3 months ago

This pull request has been merged in pytorch-labs/float8_experimental@4fb0ada5a138d1c2d572cf73d225c8609e060f79.