interface implementation
| 9689 | // interface implementation |
| 9690 | // |
| 9691 | struct llama_model_params llama_model_default_params() { |
| 9692 | struct llama_model_params result = { |
| 9693 | /*.n_gpu_layers =*/ 0, |
| 9694 | /*.main_gpu =*/ 0, |
| 9695 | /*.vram_budget_gb =*/ -1.0, |
| 9696 | /*.tensor_split =*/ nullptr, |
| 9697 | /*.progress_callback =*/ nullptr, |
| 9698 | /*.progress_callback_user_data =*/ nullptr, |
| 9699 | /*.vocab_only =*/ false, |
| 9700 | /*.use_mmap =*/ true, |
| 9701 | /*.use_mlock =*/ false, |
| 9702 | }; |
| 9703 | |
| 9704 | #ifdef GGML_USE_METAL |
| 9705 | result.n_gpu_layers = 1; |
| 9706 | #endif |
| 9707 | |
| 9708 | return result; |
| 9709 | } |
| 9710 | |
| 9711 | struct llama_context_params llama_context_default_params() { |
| 9712 | struct llama_context_params result = { |
no outgoing calls