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

Module 'glue' doesn't exist on the Hugging Face Hub either. #574

Closed
enori opened this issue Apr 15, 2024 · 1 comment
Closed

Module 'glue' doesn't exist on the Hugging Face Hub either. #574

enori opened this issue Apr 15, 2024 · 1 comment

Comments

@enori
Copy link

enori commented Apr 15, 2024

I am a beginner at Hugging Face.

I am trying to run "huggingface/accelerate/examples/nlp_example.py", and this error happened.
What should I do to solve this error?

$ python accelerate/examples/nlp_example.py 
Traceback (most recent call last):
  File "/home/ubuntu/huggingface/accelerate/examples/nlp_example.py", line 208, in <module>
    main()
  File "/home/ubuntu/huggingface/accelerate/examples/nlp_example.py", line 204, in main
    training_function(config, args)
  File "/home/ubuntu/huggingface/accelerate/examples/nlp_example.py", line 122, in training_function
    metric = evaluate.load("glue", "mrpc")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/miniconda3/envs/ray_tutorial/lib/python3.11/site-packages/evaluate/loading.py", line 748, in load
    evaluation_module = evaluation_module_factory(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/miniconda3/envs/ray_tutorial/lib/python3.11/site-packages/evaluate/loading.py", line 681, in evaluation_module_factory
    raise FileNotFoundError(
FileNotFoundError: Couldn't find a module script at /home/ubuntu/huggingface/glue/glue.py. Module 'glue' doesn't exist on the Hugging Face Hub either.

(When I asked this issue at accelerate repository, they told me that this issue is related to this repository. here)
I apologize if there was already a similar issue.
Thanks for your help and kindness!!

@enori
Copy link
Author

enori commented Apr 16, 2024

I was able to solve it on my own.
I will share what I did for reference.

  • I removed the proxy settings.
  • Since I couldn't log in to Hugging Face, I logged in.

I apologize for the inconvenience and appreciate your help.

@enori enori closed this as completed Apr 16, 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

1 participant