MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_model_default_params

Function llama_model_default_params

llama.cpp:9691–9709  ·  view source on GitHub ↗

interface implementation

Source from the content-addressed store, hash-verified

9689// interface implementation
9690//
9691struct 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
9711struct llama_context_params llama_context_default_params() {
9712 struct llama_context_params result = {

Callers 12

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
to_llama_mparamsMethod · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 4

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40