This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
How do I calculate perplexity? #4268
Unanswered
ShrimpLeopold
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Easiest way is to follow our teacher tutorial to create a dataset containing the phrases you wish to evaluate, and use eval_model with that dataset. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there! I need to check if my dialogue model's output is a valid English sentence. As far I'm concerned, it can be done by calculating perplexity of model's output.
I use transformer/generator model and create a agent with create_agent() function passing a model file into it.
I wonder whether I should create a Torch Generator Agent cause it has the forward method (the prolem is that I don't understand how to create it) or is there another way?
Beta Was this translation helpful? Give feedback.
All reactions