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

How to evaluate ppl? #77

Open
Jiawei-Yang opened this issue Mar 13, 2024 · 2 comments
Open

How to evaluate ppl? #77

Jiawei-Yang opened this issue Mar 13, 2024 · 2 comments

Comments

@Jiawei-Yang
Copy link

Hi, thanks for your amazing work!

I noticed that there's an evaluation script for perplexity. I wonder how to replicate the results in tables 1 and 2.
Are there any instructions for this?

@seeyourcell
Copy link

same question

@Zhuohao-Li
Copy link

i think just run CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python examples/eval_long_ppl.py --model_name_or_path lmsys/vicuna-13b-v1.3 should work.

but i still met some problems when running, it produces RuntimeError: stack expects a non-empty TensorList for ppl = torch.exp(torch.stack(nlls).mean()) in eval_long_ppl.py. it seems to have some bugs still in the impl.

hope that helps and I also look forward to the eval code

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