aboutsummaryrefslogtreecommitdiff
path: root/examples/perplexity
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-05-20 11:06:11 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-05-20 11:06:37 +0300
commitec2e10c4443209da56b431b24dd0845b60e757fb (patch)
tree0a285ebbdd3efa99eb60042631ddd86ae6dedd00 /examples/perplexity
parentd2c59b8ba498ab01e65203dde6fe95236d20f6e7 (diff)
llama : add llama_init_backend() API (close #1527)
Diffstat (limited to 'examples/perplexity')
-rw-r--r--examples/perplexity/perplexity.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp
index 9d38626..e19c682 100644
--- a/examples/perplexity/perplexity.cpp
+++ b/examples/perplexity/perplexity.cpp
@@ -143,6 +143,8 @@ int main(int argc, char ** argv) {
params.prompt = gpt_random_prompt(rng);
}
+ llama_init_backend();
+
llama_context * ctx;
// load the model and apply lora adapter, if any