Skip to content

Add support for numpy 2.0+ #1581

@bpleshakov

Description

@bpleshakov

🚀 Feature

Actually, the title. Right now captum has a constraint numpy<2.0 for no apparent reason

Motivation

I want to use captum with modern versions of numpy in the same env.

Activity

aywi

aywi commented on Jun 11, 2025

@aywi

Related pull request: #1580
Captum itself has no problem supporting NumPy 2.x, as was the case with Captum v0.7.0. The major problem is that the current version of Captum still supports PyTorch <2.3.0, which is incompatible with NumPy 2.x and causes the test builds to fail.

linked a pull request that will close this issue on Jun 11, 2025
aobo-y

aobo-y commented on Jun 11, 2025

@aobo-y
Contributor

@aywi @bpleshakov thank you for the suggestion and investigating the reason.
we will consider stop supporting legacy deps in our next release

cc @craymichael @vivekmig

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

      Participants

      @aobo-y@bpleshakov@aywi

      Issue actions

        Add support for numpy 2.0+ · Issue #1581 · pytorch/captum