Skip to content

Commit

Permalink
[2/x] float8 cleanup: move roofline utils to testing
Browse files Browse the repository at this point in the history
Summary:

Moves `torchao/float8/roofline_utils.py` to `torchao/testing/float8`, as
this is only needed for tests/benchmarks.

Test Plan:

```
python benchmarks/float8/float8_roofline.py ~/local/tmp/20250223_test
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 8bfadd4a6a6e96d0d2c3175aa94279ac015fe18e
ghstack-comment-id: 2683402019
Pull Request resolved: #1780
  • Loading branch information
vkuzo committed Feb 26, 2025
1 parent 7d87946 commit bc40590
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/float8/float8_roofline.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
Float8LinearConfig,
convert_to_float8_training,
)
from torchao.float8.roofline_utils import (
from torchao.testing.float8.roofline_utils import (
get_float8_mem_sympy,
get_gemm_time_sympy,
)
Expand Down
File renamed without changes.

0 comments on commit bc40590

Please sign in to comment.