Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'is_g2p_en_available' from 'transformers.utils' (/usr/local/lib/python3.10/dist-packages/transformers/utils/__init__.py) #28467

Closed
1 of 4 tasks
kli017 opened this issue Jan 12, 2024 · 3 comments

Comments

@kli017
Copy link

kli017 commented Jan 12, 2024

System Info

env: colab
python=3.10
trasformers=4.37.0.dev0

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

Hi, I was run the peft_bnb_whisper_large_v2_training.ipynb from peft project. Everything is good till I met the error when I run the code import evaluate. I also try transformers=4.27.4, 4.33,1 and 4.36.2 and get the same error.

Expected behavior

Anyone can help?

@ArthurZucker
Copy link
Collaborator

I don't know which section this is, but thefunction is defined here:

def is_g2p_en_available():

it was merged to transformers last week, so can't be there for earlier versions. Can you share a small reproducer?

@lz039
Copy link

lz039 commented Jan 27, 2024

I have the same problem following this example: https://github.com/huggingface/notebooks/blob/main/examples/image_classification.ipynb

at AutoImageProcessor.from_pretrained(model_checkpoint)

with transformers 4.37.1

Looks like there is also this issue: huggingface/peft#1351

Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@kli017 kli017 closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants