diff options
author | klosax <131523366+klosax@users.noreply.github.com> | 2023-07-22 14:21:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 14:21:24 +0200 |
commit | b5fe67f8c69113bd9354bc1adcfe2df6be323740 (patch) | |
tree | 705c322554824091c35e885214ae19462773eab0 /examples/common.h | |
parent | 24baa54ac1ff3d4156a2360deb1473af04a9b1a2 (diff) |
Perplexity: Compute scores correlated to HellaSwag (#2312)
* Add parameter --perplexity-lines to perplexity.cpp
Diffstat (limited to 'examples/common.h')
-rw-r--r-- | examples/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/common.h b/examples/common.h index 69170dfc..c936de6f 100644 --- a/examples/common.h +++ b/examples/common.h @@ -82,6 +82,7 @@ struct gpt_params { bool instruct = false; // instruction mode (used for Alpaca models) bool penalize_nl = true; // consider newlines as a repeatable token bool perplexity = false; // compute perplexity over the prompt + bool perplexity_lines = false; // compute perplexity over each line of the prompt bool use_mmap = true; // use mmap for faster loads bool use_mlock = false; // use mlock to keep model in memory bool mem_test = false; // compute maximum memory usage |