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

ModuleNotFoundError: No module named 'lm_eval.api' #16

Closed
yhyu13 opened this issue Dec 6, 2023 · 3 comments
Closed

ModuleNotFoundError: No module named 'lm_eval.api' #16

yhyu13 opened this issue Dec 6, 2023 · 3 comments

Comments

@yhyu13
Copy link

yhyu13 commented Dec 6, 2023

Hi,

I tried pip install lm_eval, but that package has no api module?

Which lm_eval should I install then?

MODEL_NAME=mamba-370m
MODEL_PATH=/media/hangyu5/Home/Documents/Hugging-Face/$MODEL_NAME
python evals/lm_harness_eval.py \
    --model mamba \
    --model_args pretrained=$MODEL_PATH \
    --tasks lambada_openai,hellaswag,piqa,arc_easy,arc_challenge,winogrande \
    --device cuda \
    --batch_size 64 \
    tee lm_eval.txt
Traceback (most recent call last):
  File "/home/hangyu5/Documents/Git-repoMy/AIResearchVault/repo/Architecture/mamba/evals/lm_harness_eval.py", line 8, in <module>
    from lm_eval.api.model import LM
ModuleNotFoundError: No module named 'lm_eval.api'

Thanks!

@yhyu13
Copy link
Author

yhyu13 commented Dec 6, 2023

Oh, I missed the submodule in 3rdParty

@yhyu13
Copy link
Author

yhyu13 commented Dec 6, 2023

Could you refine README a little bit, I did not find there was a submodule there

git submodule update --init && \
cd 3rdparty/lm-evaluation-harness && \
pip install -r requirements.txt && pip install -e .

@tridao
Copy link
Collaborator

tridao commented Dec 6, 2023

This was in the doc for Evaluation, did that not work?

@yhyu13 yhyu13 closed this as completed Dec 6, 2023
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

2 participants