Skip to content

From Transformers V5 can no longer import find_pruneable_heads_and_indices #122

Description

@rootonchair

According to https://discuss.huggingface.co/t/importerror-for-function-find-pruneable-heads-and-indices/174317

find_pruneable_heads_and_indices have completely removed and the only way is to put its implementation in the source code

You can reference here for the fix: https://github.com/rootonchair/ImageReward.git

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