llama : add llama_init_backend() API (close #1527)

This commit is contained in:
Georgi Gerganov committed 2023-05-20 11:06:37 +03:00
1 parent d2c59b8ba4
commit ec2e10c444
7 files changed
+48 -29

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ int main(int argc, char ** argv) {
params.prompt = gpt_random_prompt(rng);
}
llama_init_backend();
llama_context * ctx;
// load the model