llama : add llama_init_backend() API (close #1527)
This commit is contained in:
parent
d2c59b8ba4
commit
ec2e10c444
7 changed files with 48 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue