Skip to content

Dependencies between kernels #304

@tobiasgrantner

Description

@tobiasgrantner

The mamba-ssm kernel currently still requires the causal-conv1d library to be installed for some operations, e.g. in the file selective_scan_interface.py functions are imported from the package:

try:
    from causal_conv1d import causal_conv1d_fn
    from causal_conv1d.causal_conv1d_interface import causal_conv1d_cuda
except ImportError:
    causal_conv1d_fn = None
    causal_conv1d_cuda = None

However, a kernel for causal-conv1d already exists. Is it possible/supported to instead load the functions from the causal-conv1d kernel to get rid of the dependency on the library?

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