Open
Description
context
Today, torchao.float8
has a separate API from the rest of torchao. This is for historical reasons:
- float8 development started in https://github.com/pytorch-labs/float8_experimental, which is now archived
- in early 2024 float8_experimental was migrated to torchao in move float8_experimental to torchao/float8 #551, to set us up for eventually unifying float8 with the rest of torchao
- float8 inference originally started in
torchao.float8
but recently moved toquantize_
to better align with other inference APIs - there are some requirements which are important for float8 today and are not yet easy in other torchao APIs, such as: persistent state (delayed scaling), distributed integrations, extensibility to larger graphs than ops surrounding a linear layer
next steps
We need to figure out the requirements for training, inference, and known future use cases for both. Then, we should align on how to best structure the torchao APIs to meet these requirements. Stay tuned, we will get this going after PTC 2024.
Metadata
Metadata
Assignees
Labels
No labels