Skip to content

Sparsity training together with FP8 linear layer in torchao #1574

Open
@goldhuang

Description

@goldhuang

Is sparsity training compatible with FP8 linear layer provided in torchao? They both convert nn.Linear to a new linear layer.
from torchao.sparsity.training import ( SemiSparseLinear, swap_linear_with_semi_sparse_linear )

from torchao.float8 import convert_to_float8_training

Do you have suggestions how to apply both in the same training?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions