Knover
Knover copied to clipboard
PLATO-XL Perplexity
Hello, Can you suggest how to get the perplexity of a target response using your model? What is the score in the prediction about? Thanks!
Do you want to calcuate the ppl of a target response, or the ppl of a dataset?
The score in the prediction is the log likelihood of generated response (length average).
Perplexity of a dataset could be helpful. Thank you!
https://github.com/PaddlePaddle/Knover/pull/118
There is a demo about how to evaluate PLATO-XL on a dataset.
./scripts/local/job.sh ./projects/PLATO-XL/eval.conf
Because PLATO-XL is too large, you need to run distributed evaluation. And some instances are dropped if the number is less than batch_size * num_gpus
.