Skip to content

[wip] unification of torchao.float8 with the rest of torchao #894

Open
@vkuzo

Description

@vkuzo

context

Today, torchao.float8 has a separate API from the rest of torchao. This is for historical reasons:

  1. float8 development started in https://github.com/pytorch-labs/float8_experimental, which is now archived
  2. 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
  3. float8 inference originally started in torchao.float8 but recently moved to quantize_ to better align with other inference APIs
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions