aboutsummaryrefslogtreecommitdiff
path: root/examples/main
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/main
parentd2c59b8ba498ab01e65203dde6fe95236d20f6e7 (diff)
llama : add llama_init_backend() API (close #1527)
Diffstat (limited to 'examples/main')
-rw-r--r--examples/main/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp
index 4d886f8..47b418d 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -96,8 +96,7 @@ int main(int argc, char ** argv) {
params.prompt = gpt_random_prompt(rng);
}
-// params.prompt = R"(// this function checks if the number n is prime
-//bool is_prime(int n) {)";
+ llama_init_backend();
llama_context * ctx;
g_ctx = &ctx;