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

Evaluation results of llama2 with lm-evaluation-harness using wikitext-2 #1833

Open
l2002924700 opened this issue May 13, 2024 · 1 comment

Comments

@l2002924700
Copy link

l2002924700 commented May 13, 2024

hi, kindly helper,
I am a newer of lm-eval and I want to test the llama2 model with lm-evaluation-harness using wikitext-2 dataset. The setps are as follows:

  1. Download the llama2 model from hugfaceweb site.
  2. install the lm-eval as descriped in this github of https://github.com/EleutherAI/lm-evaluation-harness?tab=readme-ov-file#install.
  3. I downlaod the wikitext dataset from "https://huggingface.co/datasets/wikitext/tree/main/wikitext-2-raw-v1"
  4. Then I condigue the lm_eval parameters and execute the test using the command :
    "lm_eval --model hf --model_args pretrained=~/LLM-Models/Llama-2-7b-hf --tasks wikitext --device cuda --batch_size 1 --output_path ./eval_harness/Llama-2-7b-hf-16b".

Then I get the results as follows:
hf-auto (pretrained=LLM-Models/Llama-2-7b-hf), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: 1

Tasks Version Filter n-shot Metric Value Stderr
wikitext 2 none 0 word_perplexity 15.0550 ± N/A
none 0 byte_perplexity 1.6875 ± N/A
none 0 bits_per_byte 0.7549 ± N/A

Are the results nomal? I think the value is too high compared with the test results of "https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#quantization"
Conld anyone help me?

@l2002924700
Copy link
Author

about the dataset of wikitext, I downlaod from the url "https://huggingface.co/datasets/wikitext/tree/main/wikitext-2-raw-v1". The test results seem like not normal.

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