diff options
author | Stephan Walter <stephan@walter.name> | 2023-03-26 13:14:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 16:14:01 +0300 |
commit | b391579db92f095666be1d979899b54ae0981573 (patch) | |
tree | 05df184c4075c805031e61dbbe4ec424d74d5bea /examples | |
parent | 7a87d31f4f0c37bbb2ea695929fa4fe3ad579cda (diff) |
Update README and comments for standalone perplexity tool (#525)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/perplexity/perplexity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index f617ba3..75d526d 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -19,7 +19,7 @@ std::vector<double> softmax(const std::vector<float>& logits) { void perplexity(llama_context * ctx, const gpt_params & params) { // Download: https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-2-raw-v1.zip?ref=salesforce-research - // Run `./main --perplexity -m models/7B/ggml-model-q4_0.bin -f wiki.test.raw` + // Run `./perplexity -m models/7B/ggml-model-q4_0.bin -f wiki.test.raw` // Output: `perplexity: 13.5106 [114/114]` auto tokens = ::llama_tokenize(ctx, params.prompt, true); |