Skip to content

Query about Sparsity Implementation and Acceleration Mechanism #3

Description

@huchenz1

Hi, thank you for your wonderful work!

I’ve been exploring the implementation of sparsity in the codebase and noticed that sparsity is achieved through masks such as attn_weight_mask, mlp_weight_mask, and token_select. However, during the forward pass, these masks are represented as binary values (0s and 1s), and the tensor dimensions remain unchanged.

Could you kindly clarify how the actual acceleration effect is achieved during runtime?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions