Skip to content

Enhance dense/sparse matrix handling with sparsify #21

@ZedongPeng

Description

@ZedongPeng

Currently, MPAX uses isinstance to distinguish between dense and sparse matrices. This could be improved by using jax.experimental.sparse.sparsify, which provides a more general and composable way to handle both types.

This depends on how mature the support is, but it’s worth exploring.

Related JAX issue: jax-ml/jax#28749

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions