Skip to content

ImportError: cannot import name 'top_k_top_p_filtering' from 'transformers' #25

@gabriel-gubert

Description

@gabriel-gubert

Starting from transformers>=4.39.0, the top_k_top_p_filtering method is DEPRECATED. transformers<4.39.0 has this method. However, for transformers<4.39.0, one gets "ValueError: The checkpoint you are trying to load has model type starcoder2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date."

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