Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparsity training together with FP8 linear layer in torchao #1574

Open
goldhuang opened this issue Jan 17, 2025 · 2 comments
Open

Sparsity training together with FP8 linear layer in torchao #1574

goldhuang opened this issue Jan 17, 2025 · 2 comments
Labels
enhancement New feature or request sparsity

Comments

@goldhuang
Copy link

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?

@jerryzh168
Copy link
Contributor

cc @vkuzo @jcaip

@jcaip
Copy link
Contributor

jcaip commented Jan 17, 2025

@goldhuang Sorry, these two are not compatible currently. The fast sparsification routines we need for training are not available for FP8.

@vkuzo vkuzo added the sparsity label Jan 22, 2025
@supriyar supriyar added the enhancement New feature or request label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sparsity
Projects
None yet
Development

No branches or pull requests

5 participants