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

FileNotFoundError: Couldn't find a module script at /mnt/data/dingtian/exact_match/exact_match.py. Module 'exact_match' doesn't exist on the Hugging Face Hub either. #645

Open
Tiannn0703 opened this issue Oct 21, 2024 · 0 comments

Comments

@Tiannn0703
Copy link

I have installed evaluate manually using

git clone https://github.com/huggingface/evaluate.git
cd evaluate
pip install -e .

and my evaluate is under /mnt/data/dingtian/evaluate, I don't understand why it keeps looking for files in /mnt/data/dingtian/exact_match/exact_match.py, and if I change the dir in the load func, it can work:

# FileNotFoundError
python -c "import evaluate; print(evaluate.load('exact_match').compute(references=['hello'], predictions=['hello']))"
# work
python -c "import evaluate; print(evaluate.load('/mnt/data/dingtian/evaluate/metrics/exact_match/exact_match.py').compute(references=['hello'], predictions=['hello']))"
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