Skip to content

Compatibility Notice: transformers dependency may require version constraint due to LogitsWarper deprecation #44

Description

@yearsyan

It appears the project's dependency on transformers library may need version constraints since v4.49.0.

In HuggingFace transformers v4.49.0 :
PR: https://github.com/huggingface/transformers/pull/32626/files

LogitsWarper and LogitsProcessor classes were unified

LogitsWarper was officially deprecated and removed

All warpers are now subclasses of LogitsProcessor

Impact:
Current requirement spec (without upper bound) may install versions ≥4.49.0 where:

from transformers import LlamaConfig, LogitsWarper
ImportError: cannot import name 'LogitsWarper' from 'transformers' (C:\Users\years\.conda\envs\chattts_plus\lib\site-packages\transformers\__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions