Skip to content

4.54.0 bug: ImportError: cannot import name 'deterministic_g' from 'transformers.modeling_flash_attention_utils' #39694

@georgethrax

Description

@georgethrax

System Info

4.54.0 bug: ImportError: cannot import name 'deterministic_g' from 'transformers.modeling_flash_attention_utils'
4.53.3: import success
@ArthurZucker

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

  1. pip install transformers=4.54.0
  2. from transformers.modeling_flash_attention_utils import deterministic_g

Expected behavior

raise exception:

ImportError: cannot import name 'deterministic_g' from 'transformers.modeling_flash_attention_utils'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions